252N/A<!--
252N/A
252N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
252N/A
252N/A Copyright (c) 2010-2011 Oracle and/or its affiliates. All rights reserved.
252N/A
252N/A The contents of this file are subject to the terms of either the GNU
252N/A General Public License Version 2 only ("GPL") or the Common Development
252N/A and Distribution License("CDDL") (collectively, the "License"). You
252N/A may not use this file except in compliance with the License. You can
252N/A obtain a copy of the License at
252N/A https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
252N/A or packager/legal/LICENSE.txt. See the License for the specific
252N/A language governing permissions and limitations under the License.
252N/A
252N/A When distributing the software, include this License Header Notice in each
252N/A file and include the License file at packager/legal/LICENSE.txt.
252N/A
252N/A GPL Classpath Exception:
252N/A Oracle designates this particular file as subject to the "Classpath"
5680N/A exception as provided by Oracle in the GPL Version 2 section of the License
5680N/A file that accompanied this code.
5425N/A
252N/A Modifications:
5680N/A If applicable, add the following below the License Header, with the fields
5680N/A enclosed by brackets [] replaced by your own identifying information:
5680N/A "Portions Copyright [year] [name of copyright owner]"
252N/A
252N/A Contributor(s):
5680N/A If you wish your version of this file to be governed by only the CDDL or
252N/A only the GPL Version 2, indicate your decision by adding "[Contributor]
252N/A elects to include this software in this distribution under the [CDDL or GPL
5865N/A Version 2] license." If you don't indicate a single choice of license, a
618N/A recipient has the option to distribute your version of this file under
844N/A either the CDDL, the GPL Version 2 or to extend the choice of license to
5865N/A its licensees as provided above. However, if you add GPL Version 2 code
5865N/A and therefore, elected the GPL Version 2 license, then the option applies
5865N/A only if the new code is made subject to such option by the copyright
1258N/A holder.
252N/A
5865N/A-->
2899N/A
5680N/A<sun:table id="sysPropsTable" style="padding: 10pt" title="$resource{i18n.common.AdditionalProperties}"
5680N/A deselectMultipleButton="$boolean{true}"
5680N/A deselectMultipleButtonOnClick="setTimeout('admingui.table.changeOneTableButton(\\\\\'#{pageSession.topActionGroup}\\\\\', \\\\\'#{pageSession.tableId}\\\\\');', 0)"
252N/A selectMultipleButton="$boolean{true}"
5680N/A selectMultipleButtonOnClick="setTimeout('admingui.table.changeOneTableButton(\\\\\'#{pageSession.topActionGroup}\\\\\', \\\\\'#{pageSession.tableId}\\\\\');', 0)" >
252N/A <!afterCreate
252N/A getClientId(component="$this{component}" clientId=>$page{tableId});
4090N/A />
4090N/A <!beforeCreate
252N/A createList(result="#{pageSession.tableList}", size="0");
252N/A
252N/A // get instance attrs
5680N/A gf.restRequest(endpoint="#{pageSession.parentUrl}", method="get", result="#{requestScope.result}");
5680N/A setPageSessionAttribute(key="configRef", value="#{requestScope.result.data.extraProperties.entity.configRef}");
252N/A
5680N/A // get config sys props
5680N/A gf.restRequest(endpoint="#{selfUrl}", method="GET", result="#{requestScope.results}");
252N/A setPageSessionAttribute(key="sysProps", value="#{requestScope.results.data.extraProperties.systemProperties}");
252N/A
252N/A foreach(var="prop", list="#{pageSession.sysProps}") {
252N/A createMap(result="#{row}");
5865N/A mapPut(map="#{row}", key="name", value="#{prop.name}");
252N/A mapPut(map="#{row}", key="currentValue", value="#{!empty prop.value ? prop.value : prop.defaultValue}");
5680N/A mapPut(map="#{row}", key="overrideValue", value="#{!empty prop.value ? prop.value : ''}");
252N/A listAdd(list="#{pageSession.tableList}", value="#{row}");
252N/A }
252N/A />
252N/A <!facet actionsTop>
252N/A <sun:panelGroup id="topActionsGroup1">
252N/A <!afterCreate
252N/A getClientId(component="$this{component}" clientId=>$page{topActionGroup});
790N/A />
790N/A <sun:button id="addSharedTableButton" disabled="#{false}" text="$resource{i18n.button.AddProperty}" >
790N/A <!command
790N/A getUIComponent(clientId="$pageSession{propertyTableRowGroupId}", component=>$attribute{tableRowGroup});
5636N/A addRowToTable(TableRowGroup="$attribute{tableRowGroup}", NameList={"name", "currentValue", "overrideValue"});
252N/A />
5636N/A </sun:button>
5636N/A <sun:button id="button1" text="$resource{i18n.button.DeleteProperties}" disabled="#{true}" primary="#{false}">
5636N/A <!command
5636N/A getUIComponent(clientId="$pageSession{propertyTableRowGroupId}", component=>$attribute{trg});
5636N/A getSelectedTableRowKeys(tableRowGroup="${trg}" rowKeys=>$attribute{rowKeys});
252N/A deleteTableRows(tableRowGroup="${trg}" rowKeys="${rowKeys}");
252N/A commitTableRowGroup(tableRowGroup="${trg}");
252N/A />
252N/A </sun:button>
252N/A </sun:panelGroup>
252N/A </facet>
252N/A <sun:tableRowGroup id="rowGroup1" selected="#{td.value.selected}" data={"$pageSession{tableList}", "$pageSession{tableList2}"} sourceVar="td">
252N/A <!beforeCreate
5680N/A // Add extra table properties...
5680N/A createList(size="0", result="#{pageSession.tableList2}");
252N/A foreach(var="row" list="#{pageSession.tableList}") {
3353N/A selectiveEncode(value="#{row.name}" result="#{requestScope.tlEncName}");
3353N/A gf.createAttributeMap(
3353N/A keys={"selected", "encodedName", "description"},
3353N/A values={"$boolean{false}", "$attribute{tlEncName}", ""},
5636N/A map="#{requestScope.tlMap}");
5636N/A listAdd(list="#{pageSession.tableList2}", value="#{requestScope.tlMap}");
5636N/A }
252N/A />
252N/A <!afterCreate
252N/A getClientId(component="$this{component}" clientId=>$page{propertyTableRowGroupId});
252N/A />
252N/A <sun:tableColumn selectId="select" rowHeader="$boolean{false}" id="col1">
252N/A <sun:checkbox id="select"
790N/A selected="#{td.value.selected}"
790N/A selectedValue="$boolean{true}"
252N/A onClick="setTimeout('admingui.table.changeOneTableButton(\\\\\'#{pageSession.topActionGroup}\\\\\', \\\\\'#{pageSession.tableId}\\\\\'); admingui.table.initAllRows(\\\\\'#{pageSession.tableId}\\\\\');', 0);"
252N/A />
4982N/A </sun:tableColumn>
252N/A <sun:tableColumn headerText="$resource{i18n.systemProps.colInstanceName}" sort="name" rowHeader="$boolean{false}" id="col2">
252N/A <sun:textField columns="$int{40}" maxLength="#{sessionScope.fieldLengths['maxLength.common.PropertyName']}" id="col1St" value="#{td.value.name}" />
252N/A </sun:tableColumn>
252N/A <sun:tableColumn id="currentValueCol" headerText="$resource{i18n.systemProps.ColCurrentValue}" sort="currentValue" rowHeader="$boolean{false}" id="col3">
252N/A <h:outputText id="currentVal" value="#{td.value.currentValue}" />
252N/A </sun:tableColumn>
252N/A <sun:tableColumn id="overrideValCol" headerText="$resource{i18n.inst.ColOverrideValue}" sort="overrideValue" rowHeader="$boolean{false}">
252N/A <sun:textField id="overrideVal" columns="$int{40}" maxLength="#{sessionScope.fieldLengths['maxLength.common.PropertyValue']}" value="#{td.value.overrideValue}"/>
252N/A </sun:tableColumn>
252N/A "<br/>
252N/A </sun:tableRowGroup>
252N/A</sun:table>
3817N/A