<!--
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 
 Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
 
 The contents of this file are subject to the terms of either the GNU
 General Public License Version 2 only ("GPL") or the Common Development
 and Distribution License("CDDL") (collectively, the "License").  You
 may not use this file except in compliance with the License. You can obtain
 a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
 or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific
 language governing permissions and limitations under the License.
 
 When distributing the software, include this License Header Notice in each
 file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
 Sun designates this particular file as subject to the "Classpath" exception
 as provided by Sun in the GPL Version 2 section of the License file that
 accompanied this code.  If applicable, add the following below the License
 Header, with the fields enclosed by brackets [] replaced by your own
 identifying information: "Portions Copyrighted [year]
 [name of copyright owner]"
 
 Contributor(s):
 
 If you wish your version of this file to be governed by only the CDDL or
 only the GPL Version 2, indicate your decision by adding "[Contributor]
 elects to include this software in this distribution under the [CDDL or GPL
 Version 2] license."  If you don't indicate a single choice of license, a
 recipient has the option to distribute your version of this file under
 either the CDDL, the GPL Version 2 or to extend the choice of license to
 its licensees as provided above.  However, if you add GPL Version 2 code
 and therefore, elected the GPL Version 2 license, then the option applies
 only if the new code is made subject to such option by the copyright
 holder.
-->
<!-- configuration/realmAttrs.inc -->


    <sun:propertySheet id="propertySheet">			 
        <sun:propertySheetSection id="propertySectionTextField">
            <sun:property id="NameProp"  rendered="#{edit}" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.common.Name}" >
                <sun:staticText id="NameStatic" text="#{name}"/> 
            </sun:property> 

            <sun:property id="NameTextProp"  rendered="#{!edit}" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.common.Name}">
                <sun:textField id="NameText" styleClass="required"  text="#{attrMap.name}" columns="$int{55}" required="#{true}" /> 
            </sun:property> 

            <sun:property id="cp"  labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.Classname}" helpText="$resource{i18n.realm.ClassnameHelp}<br /><br />">                           
                <sun:radioButton id="optA"  name="classnameOption" selected="#{classnameOption}" selectedValue="predefine" 
                    onClick="enableClassnameFields('predefine'); "
                />                              
                <sun:dropDown id="Classname" labels="$pageSession{realmClasses}" selected="#{attrMap.classname}" 
                    disabled="#{!attrMap.predefinedClassname}" 
                    onChange=" showDisplay(''); ">
                    <!afterCreate
                        getClientId(component="$this{component}" clientId=>$page{classnameDropdownId});
                    />
                </sun:dropDown>
                "<br /><br />

                <sun:radioButton id="optB"  name="classnameOption" selected="#{classnameOption}" selectedValue="input"
                    onClick="javascript: enableClassnameFields('input');"
                />                                 
                <sun:textField id="ClassnameText" text="#{attrMap.classnameInput}" columns="$int{57}" >
                    <!afterCreate
                        getClientId(component="$this{component}" clientId=>$page{classnameTextId});
                    />
                </sun:textField>
                <!afterCreate
                    getClientId(component="$this{component}" clientId=>$page{rbPropId});
                />
            </sun:property> 
        </sun:propertySheetSection>
    </sun:propertySheet>

    <sun:propertySheetSection id="fileSection" visible="#{false}" label="$resource{i18n.realm.specificProps}" >
        <!afterCreate
            getClientId(component="$this{component}" clientId=>$page{fileSectionId});
        />
        <sun:property id="jaax" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.jaax}" helpText="$resource{i18n.realm.jaaxHelp}" >
            <sun:textField id="jaax" columns="$int{40}" text="#{attrMap.fileJaax}" required="#{true}" />      
        </sun:property>
        <sun:property id="keyFile" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.keyFile}" helpText="$resource{i18n.realm.keyFileHelp}" >
            <sun:textField id="keyFile" columns="$int{40}" text="#{attrMap.file}" required="#{true}" />      
        </sun:property>
        <sun:property id="asgroup" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.asgroup}" helpText="$resource{i18n.realm.asgroupHelp}" >
            <sun:textField id="asgroups" columns="$int{40}" text="#{attrMap.fileAsGroups}"  />      
        </sun:property> 
    </sun:propertySheetSection>

    <sun:propertySheetSection id="certSection" visible="#{false}" label="$resource{i18n.realm.specificProps}">
        <!afterCreate
            getClientId(component="$this{component}" clientId=>$page{certSectionId});
        />  
        <sun:property id="asgroup" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.asgroup}" helpText="$resource{i18n.realm.asgroupHelp}" >
            <sun:textField id="asgroup" columns="$int{40}" text="#{attrMap.certAsGroups}"  />      
        </sun:property> 
    </sun:propertySheetSection>

    <sun:propertySheetSection id="ldapSection" visible="#{false}" label="$resource{i18n.realm.specificProps}">
        <!afterCreate
            getClientId(component="$this{component}" clientId=>$page{ldapSectionId});
        />
         <sun:property id="jaax" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.jaax}" helpText="$resource{i18n.realm.jaaxHelp}" >
            <sun:textField id="jaax" columns="$int{40}" text="#{attrMap.ldapJaax}" required="#{true}" />      
        </sun:property>
        <sun:property id="directory" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.directory}" helpText="$resource{i18n.realm.directoryHelp}" >
            <sun:textField id="directory" columns="$int{40}" text="#{attrMap.directory}" required="#{true}" />      
        </sun:property>
        <sun:property id="baseDn" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.baseDn}" helpText="$resource{i18n.realm.baseDnHelp}" >
            <sun:textField id="baseDn" columns="$int{40}" text="#{attrMap.baseDn}" required="#{true}" />      
        </sun:property> 
        <sun:property id="asgroup" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.asgroup}" helpText="$resource{i18n.realm.asgroupHelp}" >
            <sun:textField id="asgroup" columns="$int{40}" text="#{attrMap.ldapAsGroups}"  />      
        </sun:property> 
    </sun:propertySheetSection>

    <sun:propertySheetSection id="solarisSection" visible="#{false}" label="$resource{i18n.realm.specificProps}">
        <!afterCreate
            getClientId(component="$this{component}" clientId=>$page{solarisSectionId});
        />  
        <sun:property id="jaax" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.jaax}" helpText="$resource{i18n.realm.jaaxHelp}" >
            <sun:textField id="jaax" columns="$int{40}" text="#{attrMap.solarisJaax}" required="#{true}" />      
        </sun:property> 
        <sun:property id="asgroup" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.asgroup}" helpText="$resource{i18n.realm.asgroupHelp}" >
            <sun:textField id="asgroup" columns="$int{40}" text="#{attrMap.solarisAsGroups}"  />      
        </sun:property> 
    </sun:propertySheetSection>

    <sun:propertySheetSection id="jdbcSection" visible="#{false}" label="$resource{i18n.realm.specificProps}">
        <!afterCreate
            getClientId(component="$this{component}" clientId=>$page{jdbcSectionId});
        />  
        <sun:property id="jaax" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.jaax}" helpText="$resource{i18n.realm.jaaxHelp}" >
            <sun:textField id="jaax" columns="$int{40}" text="#{attrMap.jdbcJaax}" required="#{true}" />      
        </sun:property> 
        <sun:property id="jndi" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.jndi}" helpText="$resource{i18n.realm.jndiHelp}" >
            <sun:textField id="jndi" columns="$int{40}" text="#{attrMap.datasourceJndi}" required="#{true}" />      
        </sun:property>
        <sun:property id="userTable" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.userTable}" helpText="$resource{i18n.realm.userTableHelp}" >
            <sun:textField id="userTable" columns="$int{40}" text="#{attrMap.userTable}" required="#{true}" />      
        </sun:property>
        <sun:property id="userName" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.userName}" helpText="$resource{i18n.realm.userNameHelp}" >
            <sun:textField id="userName" columns="$int{40}" text="#{attrMap.userNameColumn}" required="#{true}" />      
        </sun:property>
        <sun:property id="pswd" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.pswd}" helpText="$resource{i18n.realm.pswdHelp}" >
            <sun:textField id="pswd" columns="$int{40}" text="#{attrMap.passwordColumn}" required="#{true}" />      
        </sun:property>
        <sun:property id="groupTable" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.groupTable}" helpText="$resource{i18n.realm.groupTableHelp}" >
            <sun:textField id="groupTable" columns="$int{40}" text="#{attrMap.groupTable}" required="#{true}" />      
        </sun:property>
        <sun:property id="groupName" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.groupName}" helpText="$resource{i18n.realm.groupNameHelp}" >
            <sun:textField id="groupName" columns="$int{40}" text="#{attrMap.groupNameColumn}" required="#{true}" />      
        </sun:property>
        <sun:property id="asgroup" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.asgroup}" helpText="$resource{i18n.realm.asgroupHelp}" >
            <sun:textField id="asgroup" columns="$int{40}" text="#{attrMap.jdbcAsGroups}"  />      
        </sun:property> 
        <sun:property id="dbUser" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.dbUser}" helpText="$resource{i18n.realm.dbUserHelp}" >
            <sun:textField id="dbUser" columns="$int{40}" text="#{attrMap.dbUser}"  />      
        </sun:property> 
        <sun:property id="dbPswd" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.dbPswd}" helpText="$resource{i18n.realm.dbPswdHelp}" >
            <sun:textField id="dbPswd" columns="$int{40}" text="#{attrMap.dbPassword}"  />      
        </sun:property> 
        <sun:property id="digest" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.digest}" helpText="$resource{i18n.realm.digestHelp}" >
            <sun:textField id="digest" columns="$int{40}" text="#{attrMap.digestAlgorithm}"  />      
        </sun:property> 
        <sun:property id="encoding" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.encoding}" helpText="$resource{i18n.realm.encodingHelp}" >
            <sun:textField id="encoding" columns="$int{40}" text="#{attrMap.encoding}"  />      
        </sun:property> 
        <sun:property id="charset" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18n.realm.charset}" helpText="$resource{i18n.realm.charsetHelp}" >
            <sun:textField id="charset" columns="$int{40}" text="#{attrMap.charset}"  />      
        </sun:property> 
    </sun:propertySheetSection>
