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.
<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>
Modifier and Type | Field and Description |
---|---|
static String |
INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY |
protected ListUIBean |
internalUiBean |
protected javax.servlet.http.HttpServletRequest |
req |
protected javax.servlet.http.HttpServletResponse |
res |
actionMapper, COMPONENT_STACK, devMode, parameters, stack, standardAttributesMap, throwExceptionOnELFailure
Constructor and Description |
---|
OptGroup(ValueStack stack,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
Modifier and Type | Method and Description |
---|---|
boolean |
end(Writer writer,
String body)
Callback for the end tag of this component.
|
void |
setContainer(Container container) |
void |
setDisabled(String disabled) |
void |
setLabel(String label) |
void |
setList(String list) |
void |
setListKey(String listKey) |
void |
setListValue(String listValue) |
addAllParameters, addParameter, altSyntax, completeExpressionIfAltSyntax, copyParams, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, getStandardAttributes, isValidTagAttribute, popComponentStack, setActionMapper, setDevMode, setThrowExceptionsOnELFailure, setUrlHelper, start, stripExpressionIfAltSyntax, toString, usesBody
public static final String INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY
protected javax.servlet.http.HttpServletRequest req
protected javax.servlet.http.HttpServletResponse res
protected ListUIBean internalUiBean
public OptGroup(ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
public void setContainer(Container container)
public boolean end(Writer writer, String body)
Component
public void setLabel(String label)
public void setDisabled(String disabled)
public void setList(String list)
public void setListKey(String listKey)
public void setListValue(String listValue)
Copyright © 2000–2018 Apache Software Foundation. All rights reserved.