com.opensymphony.webwork.components
Class OptGroup
java.lang.Object
com.opensymphony.webwork.components.Component
com.opensymphony.webwork.components.OptGroup
public class OptGroup - extends Component
Create a optgroup component which needs to resides within a select tag.
This component is to be used within a Select component.
<ww:select label="My Selection"
name="mySelection"
value="%{'POPEYE'}"
list="%{#{'SUPERMAN':'Superman', 'SPIDERMAN':'spiderman'}}">
<ww:optgroup label="Adult"
list="%{#{'SOUTH_PARK':'South Park'}}" />
<ww:optgroup label="Japanese"
list="%{#{'POKEMON':'pokemon','DIGIMON':'digimon','SAILORMOON':'Sailormoon'}}" />
</ww:select>
- Version:
- $Date: 2006-07-07 12:56:48 -0500 (Fri, 07 Jul 2006) $ $Id: OptGroup.java 2635 2006-07-07 17:56:48Z tmjee $
- Author:
- tm_jee
| Methods inherited from class com.opensymphony.webwork.components.Component |
addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, setId, start, toString, usesBody |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY
public static final String INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY
- See Also:
- Constant Field Values
req
protected HttpServletRequest req
res
protected HttpServletResponse res
internalUiBean
protected ListUIBean internalUiBean
OptGroup
public OptGroup(OgnlValueStack stack,
HttpServletRequest req,
HttpServletResponse res)
end
public boolean end(Writer writer,
String body)
- Description copied from class:
Component
- Callback for the end tag of this component.
Should the body be evaluated again?
NOTE: will pop component stack.
- Overrides:
end in class Component
- Parameters:
writer - the output writer.body - the rendered body.
- Returns:
- true if the body should be evaluated again
setLabel
public void setLabel(String label)
- Set the label attribute.
setDisabled
public void setDisabled(String disabled)
- Set the disable attribute.
setList
public void setList(String list)
- Set the list attribute.
setListKey
public void setListKey(String listKey)
- Set the listKey attribute.
setListValue
public void setListValue(String listValue)
- Set the listValue attribute.
|