RadioButtonGroup Class
- public class RadioButtonGroup
extends OptionsDataSourceTag
Groups a collection of RadioButtonOptions, and handles databinding of their values.
If RadioButtonGroup uses any Format tags, it must have those tags come before above any nested
RadioButtonOption tags.
Attribute Descriptions |
Attribute | Required | Runtime Expression Evaluation | Data Bindable |
dataSource | Yes | No | Read / Write |
The name of a form bean property or an expression that contains the RadioButtonGroup state |
defaultValue | No | No | Read Only |
A literal value or an expression that is used to set the RadioButtonGroup's initial state |
disabled | No | No | Read Only |
A boolean value which if true will cause the RadioButtonGroup to be disabled. |
labelStyle | No | No | No |
The style of the label for each contained RadioButtonOption |
labelStyleClass | No | No | No |
The style class of the label for each contained RadioButtonOption |
optionsDataSource | No | No | Read Only |
An expression which is used to generate a set of dynamic RadioButtonOptions |
tagId | No | No | No |
The ID of this radioButtonGroup used by the enclosing html tag to get the tag's name for javascript purposes |
Related Topics
<netui:radionButton> Tag Samples
RadioButtonOption
-
Hierarchy
-
Object
TagSupport
BodyTagSupport
AbstractBaseTag
DataSourceTag
DefaultableDataSourceTag
OptionsDataSourceTag
RadioButtonGroup
-
All Implemented Interfaces
-
BodyTag
, IterationTag
, Serializable
, Tag
Fields from com.bea.wlw.netui.tags.AbstractBaseTag |
ATTR_GENERAL , ATTR_GENERAL_EXPRESSION , ATTR_JAVASCRIPT , ATTR_STYLE , CLASS , ID , JAVASCRIPT_STATUS , NAME , NETUI_UNIQUE_CNT , ONCLICK , ONDBLCLICK , ONKEYDOWN , ONKEYPRESS , ONKEYUP , ONMOUSEDOWN , ONMOUSEMOVE , ONMOUSEOUT , ONMOUSEOVER , ONMOUSEUP , STYLE , TABINDEX
|
Methods from com.bea.wlw.netui.tags.AbstractBaseTag |
addTagIdMapping , evaluateAttributeToString , filter , filter , getJavaScriptUtils , getNearestForm , getScriptReporter , getUserLocale , localRelease , registerTagError , release , renderAttribute , rewriteName , write
|
Methods from javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultRadio
protected String
defaultRadio
labelStyle
protected String
labelStyle
labelStyleClass
protected String
labelStyleClass
match
protected String
match
- The actual values we will match against, calculated in doStartTag().
RADIOBUTTONGROUP_KEY
public static final String
RADIOBUTTONGROUP_KEY
saveBody
protected String
saveBody
- The saved body content of this tag.
RadioButtonGroup
public RadioButtonGroup()
doAfterBody() Method
public int doAfterBody()
throws JspException
Save the body content of the RadioButtonGroup.
-
Overrides
-
BodyTagSupport.doAfterBody()
Exceptions
-
JspException
- if a JSP exception has occurred
doEndTag() Method
public int doEndTag()
throws JspException
Render the set of RadioButtonOptions.
-
Overrides
-
BodyTagSupport.doEndTag()
Exceptions
-
JspException
- if a JSP exception has occurred
doStartTag() Method
public int doStartTag()
throws JspException
Determine the match for the RadioButtonGroup
-
Overrides
-
BodyTagSupport.doStartTag()
Exceptions
-
JspException
- if a JSP exception has occurred
evaluateOptionsDataSource() Method
protected Object
evaluateOptionsDataSource()
throws JspException
This method will evalute the optionsDataSource and return
an object. If the object return from evaluating the
expression results in a Map that is returned. Otherwise we
will return an iterator. This routine will always return
either a valid Iterator or Map.
-
Overrides
-
OptionsDataSourceTag.evaluateOptionsDataSource()
Exceptions
-
JspException
getDisabled() Method
public String
getDisabled()
Returns the boolean value or expression indicating the
disable state of the RadioButtonGroup.
Returns
- the disabled state (true or false) or an expression
getLabelStyle() Method
public String
getLabelStyle()
Return the label style for each contained CheckBoxOption..
Returns
- the label style
getLabelStyleClass() Method
public String
getLabelStyleClass()
Return the label style class for each contained CheckBoxOption..
Returns
- the label style
getStyle() Method
public String
getStyle()
Gets the style of the rendered html tag.
Returns
- the style.
getStyleClass() Method
public String
getStyleClass()
Gets the style class of the rendered html tag.
Returns
- the style class.
getTagId() Method
public String
getTagId()
Return the ID of the radiobutton group.
Returns
- the ID.
getTagName() Method
public String
getTagName()
Return the name of the Tag.
-
Overrides
-
AbstractBaseTag.getTagName()
localRelease() Method
protected void localRelease()
Release any acquired resources.
-
Overrides
-
OptionsDataSourceTag.localRelease()
qualifyDataSource() Method
public String
qualifyDataSource()
throws JspException
Exceptions
-
JspException
setDisabled(String) Method
public void setDisabled(String
disabled)
Set the disable state either with the literal "true" or "false"
or with an expression.
Parameters
-
disabled
- - true or false or an expression
setLabelStyle(String) Method
public void setLabelStyle(String
labelStyle)
Set the label style for each contained CheckBoxOption..
Parameters
-
labelStyle
- - the label style
setLabelStyleClass(String) Method
public void setLabelStyleClass(String
labelStyleClass)
Set the label style class for each contained CheckBoxOption..
Parameters
-
labelStyleClass
- - the label style
setStyle(String) Method
public void setStyle(String
style)
Sets the style of the rendered html tag.
Parameters
-
style
- - the html style.
setStyleClass(String) Method
public void setStyleClass(String
styleClass)
Sets the style class of the rendered html tag.
Parameters
-
styleClass
- - the html style class.
setTagId(String) Method
public void setTagId(String
tagId)
Set the ID of the radiobutton group.
Parameters
-
tagId
- - the ID.