Use the Administration Console property sheet template, adminConsolePropertySheet.tpl, to specify a property sheet that adds support for manipulating an AMXConfig object. (AMX refers to Appserver Management EXtensions.) The loading and saving of values, including the retrieval of default values, is automatic with this template.
propertySheetTemplate.tpl
The adminConsolePropertySheet.tpl file takes the following parameters, in addition to those specified in Base Template and Property Sheet Template.
The id of the Enterprise Server configuration.
A List detailing which attributes of the AMXConfig object are to be handled on this page.
See defines for Base Template and Property Sheet Template.
The following page uses the Administration Console property sheet template to specify a property sheet.
<!initPage setResourceBundle(key="web" bundle="org.glassfish.web.admingui.Strings") /> <!composition template="/templates/adminConsolePropertySheet.tpl" pageTitle="$resource{web.monitoring.Title}" helpText="$resource{web.monitoring.PageHelp}" helpBundle="org.glassfish.web.admingui.Helplinks" amxConfigName="monitoringServiceConfig.moduleMonitoringLevelsConfig" amxConfigAttributes={"HTTPService","webContainer", "JVM", "threadPool"}> <!define name="properties"> <sun:property id="httpProp" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{web.monitoring.Http}"> <sun:dropDown id="Http" selected="#{configMap['HTTPService']}" labels={"$resource{web.monitoring.Low}" "$resource{web.monitoring.High}" "$resource{web.monitoring.Off}"} values={"LOW" "HIGH" "OFF"} /> </sun:property> <sun:property id="webProp" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{web.monitoring.Web}"> <sun:dropDown id="Web" selected="#{configMap['webContainer']}" labels={"$resource{web.monitoring.Low}" "$resource{web.monitoring.High}" "$resource{web.monitoring.Off}"} values={"LOW" "HIGH" "OFF"} /> </sun:property> <sun:property id="jvm" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{web.monitoring.Jvm}"> <sun:dropDown id="Http" selected="#{configMap['JVM']}" labels={"$resource{web.monitoring.Low}" "$resource{web.monitoring.High}" "$resource{web.monitoring.Off}"} values={"LOW" "HIGH" "OFF"} /> </sun:property> <sun:property id="threadPool" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{web.monitoring.ThreadPool}"> <sun:dropDown id="Web" selected="#{configMap['threadPool']}" labels={"$resource{web.monitoring.Low}" "$resource{web.monitoring.High}" "$resource{web.monitoring.Off}"} values={"LOW" "HIGH" "OFF"} /> </sun:property> "<br /><br /> </define> </composition>