HDIV API 2.0.4

org.hdiv.components
Class OptGroupHDIV

java.lang.Object
  extended by org.apache.struts2.components.Component
      extended by org.apache.struts2.components.OptGroup
          extended by org.hdiv.components.OptGroupHDIV

public class OptGroupHDIV
extends org.apache.struts2.components.OptGroup

Create a optgroup component which needs to resides within a select tag.

This component is to be used within a Select component.

 

 <s:select label="My Selection"
            name="mySelection"
            value="%{'POPEYE'}"
            list="%{#{'SUPERMAN':'Superman', 'SPIDERMAN':'spiderman'}}">
    <s:optgroup label="Adult"
                 list="%{#{'SOUTH_PARK':'South Park'}}" />
    <s:optgroup label="Japanese"
                 list="%{#{'POKEMON':'pokemon','DIGIMON':'digimon','SAILORMOON':'Sailormoon'}}" />
 </s:select>

 
 

Author:
Gorka Vicente

Field Summary
static java.lang.String INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY
           
 
Fields inherited from class org.apache.struts2.components.OptGroup
internalUiBean, req, res
 
Fields inherited from class org.apache.struts2.components.Component
actionMapper, COMPONENT_STACK, id, parameters, stack
 
Constructor Summary
OptGroupHDIV(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 
Method Summary
 
Methods inherited from class org.apache.struts2.components.OptGroup
end, setContainer, setDisabled, setLabel, setList, setListKey, setListValue
 
Methods inherited from class org.apache.struts2.components.Component
addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, setActionMapper, setId, start, toString, usesBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY

public static final java.lang.String INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY
See Also:
Constant Field Values
Constructor Detail

OptGroupHDIV

public OptGroupHDIV(com.opensymphony.xwork2.util.ValueStack stack,
                    javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)

HDIV 2.0.4

Copyright © 2008 hdiv.org. All Rights Reserved.