-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PAYARA-1713 Add occupied context roots to virtual server list #1709
Merged
smillidge
merged 13 commits into
payara:master
from
michaelranaldo:PAYARA-1713-Add-Occupied-Context-Roots-to-Virtual-Server-List
Jul 5, 2017
Merged
Changes from 8 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ffabff2
PAYARA-1713 Added context roots to Virtual Servers page
michaelranaldo 704de85
Merge branch 'master' of https://github.com/payara/payara into PAYARA…
michaelranaldo d0e37fb
PAYARA-1713 Removed irrelevant files
michaelranaldo ba652c9
PAYARA-1713 Removed unused imports
michaelranaldo 530b65b
PAYARA-1713 Removed comment
michaelranaldo cd47746
PAYARA-1713 Fixed issue with default config displaying server's appli…
michaelranaldo 6a967b4
Added Copyright Header amendment
michaelranaldo b1ee28c
Removed random character addition
michaelranaldo 37bf2f5
PAYARA-1713 Added capacity for multiple virtual servers per application
michaelranaldo 90db42d
Merge branch 'PAYARA-1713-Add-Occupied-Context-Roots-to-Virtual-Serve…
michaelranaldo 45f46a8
PAYARA-1713 Added context root to strings.properties
michaelranaldo bd0afc8
PAYARA-1713 Added strings.properties
michaelranaldo c37e5f7
PAYARA-1713 Fixed requested changes
michaelranaldo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,87 +40,94 @@ | |
|
||
--> | ||
|
||
<!-- Portions Copyright [2017] [Payara Foundation and/or its affiliates.] --> | ||
|
||
<!-- configuration/virtualServers.jsf --> | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add Payara coyright |
||
<!initPage | ||
setResourceBundle(key="i18n_web" bundle="org.glassfish.web.admingui.Strings"); | ||
setResourceBundle(key="help_web" bundle="org.glassfish.web.admingui.Helplinks"); | ||
/> | ||
setResourceBundle(key="help_web" bundle="org.glassfish.web.admingui.Helplinks"); | ||
/> | ||
<!composition template="/templates/default.layout" | ||
guiTitle="$resource{i18n_web.vs.ListPageTitle}" | ||
guiTemplateOnLoad="admingui.nav.refreshTree('treeForm:tree:configurations:#{pageSession.configName}:virtualServers');"> | ||
|
||
<!define name="content"> | ||
<event> | ||
<event> | ||
<!beforeCreate | ||
getRequestValue(key="configName" value=>$page{configName} ); | ||
urlencode(value="#{pageSession.configName}" encoding="UTF-8" result="#{pageSession.encodedConfigName}"); | ||
setPageSessionAttribute(key="childType" value="virtual-server"); | ||
setPageSessionAttribute(key="parentUrl", value="#{sessionScope.REST_URL}/configs/config/#{pageSession.encodedConfigName}/http-service"); | ||
setPageSessionAttribute(key="selfUrl", value="#{pageSession.parentUrl}/#{pageSession.childType}"); | ||
setPageSessionAttribute(key="rest-api" value="true"); | ||
gf.getChildList(parentEndpoint="#{pageSession.parentUrl}", childType="#{pageSession.childType}", id="id", result="#{requestScope.listOfRows}"); | ||
createMap(result="#{pageSession.valueMap}"); | ||
mapPut(map="#{pageSession.valueMap}" key="target" value="#{pageSession.configName}"); | ||
setPageSessionAttribute(key="confirmDeleteMsg" value="$resource{i18n_web.msg.JS.confirmDeleteVS}"); | ||
setPageSessionAttribute(key="createLink" value="#{request.contextPath}/web/configuration/virtualServerNew.jsf?configName=#{configName}"); | ||
setPageSessionAttribute(key="listLink" value="#{request.contextPath}/web/configuration/virtualServers.jsf?configName=#{configName}"); | ||
setPageSessionAttribute(key="editLink" value="#{request.contextPath}/web/configuration/virtualServerEdit.jsf?configName=#{configName}"); | ||
setPageSessionAttribute(key="tableTitle" value="$resource{i18n_web.vs.TableTitle}"); | ||
setPageSessionAttribute(key="additionalDeleteHandler" value="checkVsOfAppRef"); | ||
setPageSessionAttribute(key="additionalDeleteHandlerArgs" value=""); | ||
urlencode(value="#{pageSession.configName}" encoding="UTF-8" result="#{pageSession.encodedConfigName}"); | ||
setPageSessionAttribute(key="childType" value="virtual-server"); | ||
setPageSessionAttribute(key="parentUrl", value="#{sessionScope.REST_URL}/configs/config/#{pageSession.encodedConfigName}/http-service"); | ||
setPageSessionAttribute(key="selfUrl", value="#{pageSession.parentUrl}/#{pageSession.childType}"); | ||
setPageSessionAttribute(key="rest-api" value="true"); | ||
createMap(result="#{pageSession.valueMap}"); | ||
mapPut(map="#{pageSession.valueMap}" key="target" value="#{pageSession.configName}"); | ||
setPageSessionAttribute(key="confirmDeleteMsg" value="$resource{i18n_web.msg.JS.confirmDeleteVS}"); | ||
setPageSessionAttribute(key="createLink" value="#{request.contextPath}/web/configuration/virtualServerNew.jsf?configName=#{configName}"); | ||
setPageSessionAttribute(key="listLink" value="#{request.contextPath}/web/configuration/virtualServers.jsf?configName=#{configName}"); | ||
setPageSessionAttribute(key="editLink" value="#{request.contextPath}/web/configuration/virtualServerEdit.jsf?configName=#{configName}"); | ||
setPageSessionAttribute(key="tableTitle" value="$resource{i18n_web.vs.TableTitle}"); | ||
setPageSessionAttribute(key="additionalDeleteHandler" value="checkVsOfAppRef"); | ||
setPageSessionAttribute(key="additionalDeleteHandlerArgs" value=""); | ||
py.getVirtualServersAttributes(configName="#{pageSession.configName}" sessionScopeRestURL="#{sessionScope.REST_URL}", parentEndpoint="#{pageSession.parentUrl}", childType="#{pageSession.childType}", id="id", result="#{requestScope.newListOfRows}"); | ||
/> | ||
</event> | ||
" <script type="text/javascript">admingui.nav.selectTreeNodeById(admingui.nav.TREE_ID+":configurations:#{pageSession.encodedConfigName}:virtualServers");</script> | ||
|
||
</event> | ||
"<script type="text/javascript">admingui.nav.selectTreeNodeById(admingui.nav.TREE_ID + ":configurations:#{pageSession.encodedConfigName}:virtualServers");</script>" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Possibly this one, but there's a " at the top of the virtual servers page! |
||
|
||
<sun:form id="propertyForm"> | ||
<sun:form id="propertyForm"> | ||
#include "/common/shared/alertMsg.inc" | ||
<sun:title id="propertyContentPage" title="$resource{i18n_web.vs.ListPageTitle}" | ||
helpText="$resource{i18n_web.vs.ListPageHelp}" /> | ||
<sun:title id="propertyContentPage" title="$resource{i18n_web.vs.ListPageTitle}" | ||
helpText="$resource{i18n_web.vs.ListPageHelp}" /> | ||
#include "/common/shared/configNameSection.inc" | ||
<sun:table id="configs" title="#{tableTitle}" | ||
deselectMultipleButton="$boolean{true}" | ||
deselectMultipleButtonOnClick="setTimeout('admingui.table.changeOneTableButton(\\\\\'#{pageSession.topActionGroup}\\\\\', \\\\\'#{pageSession.tableId}\\\\\');', 0)" | ||
selectMultipleButton="$boolean{true}" | ||
selectMultipleButtonOnClick="setTimeout('admingui.table.changeOneTableButton(\\\\\'#{pageSession.topActionGroup}\\\\\', \\\\\'#{pageSession.tableId}\\\\\');', 0)" > | ||
<!afterCreate | ||
getClientId(component="$this{component}" clientId=>$page{tableId}); | ||
/> | ||
<sun:table id="configs" title="#{tableTitle}" | ||
deselectMultipleButton="$boolean{true}" | ||
deselectMultipleButtonOnClick="setTimeout('admingui.table.changeOneTableButton(\\\\\'#{pageSession.topActionGroup}\\\\\', \\\\\'#{pageSession.tableId}\\\\\');', 0)" | ||
selectMultipleButton="$boolean{true}" | ||
selectMultipleButtonOnClick="setTimeout('admingui.table.changeOneTableButton(\\\\\'#{pageSession.topActionGroup}\\\\\', \\\\\'#{pageSession.tableId}\\\\\');', 0)" > | ||
<!afterCreate | ||
getClientId(component="$this{component}" clientId=>$page{tableId}); | ||
/> | ||
|
||
#include "/common/shared/listTableConfigButtons.inc" | ||
|
||
<sun:tableRowGroup id="rowGroup1" selected="#{td.value.selected}" data={"$attribute{listOfRows}"} sourceVar="td"> | ||
<!afterCreate | ||
getClientId(component="$this{component}" clientId=>$page{tableRowGroupId}); | ||
/> | ||
<sun:tableRowGroup id="rowGroup1" selected="#{td.value.selected}" data={"$attribute{newListOfRows}"} sourceVar="td"> | ||
<!afterCreate | ||
getClientId(component="$this{component}" clientId=>$page{tableRowGroupId}); | ||
/> | ||
<sun:tableColumn headerText="$resource{i18n.common.SelectHeader}" selectId="select" rowHeader="$boolean{false}" id="col0"> | ||
<sun:checkbox id="select" | ||
toolTip="$resource{i18n.common.select}" | ||
selected="#{td.value.selected}" | ||
selectedValue="$boolean{true}" | ||
onClick="setTimeout('admingui.table.changeOneTableButton(\\\\\'#{pageSession.topActionGroup}\\\\\', \\\\\'#{pageSession.tableId}\\\\\'); admingui.table.initAllRows(\\\\\'#{pageSession.tableId}\\\\\');', 0);" | ||
/> | ||
<sun:checkbox id="select" | ||
toolTip="$resource{i18n.common.select}" | ||
selected="#{td.value.selected}" | ||
selectedValue="$boolean{true}" | ||
onClick="setTimeout('admingui.table.changeOneTableButton(\\\\\'#{pageSession.topActionGroup}\\\\\', \\\\\'#{pageSession.tableId}\\\\\'); admingui.table.initAllRows(\\\\\'#{pageSession.tableId}\\\\\');', 0);" | ||
/> | ||
</sun:tableColumn> | ||
|
||
<sun:tableColumn headerText="$resource{i18n.common.name.header}" sort="name" rowHeader="$boolean{true}" id="col1"> | ||
<sun:hyperlink id="link" text="#{td.value.name}" | ||
url="#{pageSession.editLink}&name=#{td.value.name}" /> | ||
url="#{pageSession.editLink}&name=#{td.value.name}" /> | ||
</sun:tableColumn> | ||
|
||
<sun:tableColumn headerText="$resource{i18n_web.vs.StateTableColumn}" sort="state" rowHeader="$boolean{false}" id="col2"> | ||
<sun:tableColumn headerText="$resource{i18n_web.vs.StateTableColumn}" sort="state" rowHeader="$boolean{false}" id="col2"> | ||
<staticText id="stateCol" value="#{td.value.state}" /> | ||
</sun:tableColumn> | ||
|
||
<sun:tableColumn headerText="$resource{i18n_web.vs.DefaultWebTableColumn}" sort="defaultWebModule" rowHeader="$boolean{false}" id="col3"> | ||
<staticText id="stateCol" value="#{td.value.defaultWebModule}" /> | ||
</sun:tableColumn> | ||
|
||
<sun:tableColumn headerText="Context Root" sort="contextRoot" rowHeader="$boolean{false}" id="col4"> | ||
<staticText id="contextCol" value="#{td.value.contextRoot}" /> | ||
</sun:tableColumn> | ||
</sun:tableRowGroup> | ||
</sun:table> | ||
</sun:table> | ||
|
||
<sun:hidden id="helpKey" value="$resource{help_web.virtualServers}" /> | ||
</sun:form> | ||
"<br> | ||
<sun:hidden id="helpKey" value="$resource{help_web.virtualServers}" /> | ||
</sun:form> | ||
"<br> | ||
#include "/common/shared/changeButtonsJS.inc" | ||
</define> | ||
</composition> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploying to multiple virtual servers causes nothing to be displayed! I would split the get(virtualservers) statement on commas and check each value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done :)