# com.bea.wlw.netui.tags.html
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`

## Field Summary

`protected `String`` | `defaultRadio` String
`protected `String`` | `labelStyle` String
`protected `String`` | `labelStyleClass` String
`protected `String`` | `match` The actual values we will match against, calculated in doStartTag().
`public static final `String`` | `RADIOBUTTONGROUP_KEY` String
`protected `String`` | `saveBody` The saved body content of this 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``

Fields from javax.servlet.jsp.tagext`.`BodyTagSupport``
`bodyContent`

Fields from javax.servlet.jsp.tagext`.`TagSupport``
`id, pageContext`

Fields from interface javax.servlet.jsp.tagext`.`BodyTag``
`EVAL_BODY_BUFFERED, EVAL_BODY_TAG`

Fields from interface javax.servlet.jsp.tagext`.`IterationTag``
`EVAL_BODY_AGAIN`

Fields from interface javax.servlet.jsp.tagext`.`Tag``
`EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE`

## Constructor Summary

RadioButtonGroup()

## Method Summary

`public int` | `doAfterBody`() Save the body content of the RadioButtonGroup.
`public int` | `doEndTag`() Render the set of RadioButtonOptions.
`public int` | `doStartTag`() Determine the match for the RadioButtonGroup
`protected `Object`` | `evaluateOptionsDataSource`() This method will evalute the optionsDataSource and return an object.
`public `String`` | `getDisabled`() Returns the boolean value or expression indicating the disable state of the RadioButtonGroup.
`public `String`` | `getLabelStyle`() Return the label style for each contained CheckBoxOption..
`public `String`` | `getLabelStyleClass`() Return the label style class for each contained CheckBoxOption..
`public `String`` | `getStyle`() Gets the style of the rendered html tag.
`public `String`` | `getStyleClass`() Gets the style class of the rendered html tag.
`public `String`` | `getTagId`() Return the ID of the radiobutton group.
`public `String`` | `getTagName`() Return the name of the Tag.
`protected void` | `localRelease`() Release any acquired resources.
`public `String`` | `qualifyDataSource`()
`public void` | `setDisabled`(`String` disabled) Set the disable state either with the literal "true" or "false" or with an expression.
`public void` | `setLabelStyle`(`String` labelStyle) Set the label style for each contained CheckBoxOption..
`public void` | `setLabelStyleClass`(`String` labelStyleClass) Set the label style class for each contained CheckBoxOption..
`public void` | `setStyle`(`String` style) Sets the style of the rendered html tag.
`public void` | `setStyleClass`(`String` styleClass) Sets the style class of the rendered html tag.
`public void` | `setTagId`(`String` tagId) Set the ID of the radiobutton group.

Methods from `com.bea.wlw.netui.tags.`OptionsDataSourceTag``
``getOptionsDataSource`, `setOptionsDataSource``

Methods from `com.bea.wlw.netui.tags.`DefaultableDataSourceTag``
``getDefaultValue`, `localRelease`, `setDefaultValue``

Methods from `com.bea.wlw.netui.tags.`DataSourceTag``
``getDataSource`, `localRelease`, `setDataSource``

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.`BodyTagSupport``
`doInitBody, getBodyContent, getPreviousOut, release, setBodyContent`

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`

Methods from interface `javax.servlet.jsp.tagext.`BodyTag``
`doInitBody, setBodyContent`

Methods from interface `javax.servlet.jsp.tagext.`IterationTag``
`doAfterBody`

Methods from interface `javax.servlet.jsp.tagext.`Tag``
`doEndTag, doStartTag, getParent, release, setPageContext, setParent`

## Field Detail

### 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.

## Constructor Detail

### RadioButtonGroup

    public RadioButtonGroup()

## Method Detail

### 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.