org.apache.struts.taglib.html
public class RadioTag extends BaseHandlerTag
Version: $Rev: 190779 $ $Date: 2005-06-15 18:04:44 +0100 (Wed, 15 Jun 2005) $
Field Summary | |
---|---|
protected String | idName
Name of the bean (in some scope) that will return the
value of the radio tag.
|
protected static MessageResources | messages
The message resources for this package. |
protected String | name
The name of the bean containing our underlying property. |
protected String | property
The property name for this field. |
protected String | text
The body content of this tag (if any). |
protected String | value
The server value for this option. |
Method Summary | |
---|---|
String | currentValue()
Acquire the current value of the bean specified by the name
attribute and the property specified by the property attribute.
|
int | doAfterBody()
Save the associated label from the body content.
|
int | doEndTag()
Optionally render the associated label from the body content.
|
int | doStartTag()
Generate the required input tag.
|
String | getIdName()
Return the idName. |
String | getName() |
String | getProperty()
Return the property name. |
String | getValue()
Return the server value. |
protected String | prepareName()
Prepare the name element |
void | release()
Release any acquired resources. |
protected String | renderRadioElement(String serverValue, String checkedValue)
Renders an HTML <input type="radio"> element. |
String | serverValue()
Return the String to be used in the radio tag's value attribute
that gets sent to the server on form submission. |
void | setIdName(String idName)
Set the idName. |
void | setName(String name) |
void | setProperty(String property)
Set the property name.
|
void | setValue(String value)
Set the server value.
|
If an iterator is used to render a series of radio tags,
this field may be used to specify the name of the bean
exposed by the iterator. In this case, the value attribute is
used as the name of a property on the idName
bean
that returns the value of the radio tag in this iteration.
name
attribute and the property specified by the property
attribute.
This radio button with this value will be checked.Throws: JspException
Throws: JspException if a JSP exception has occurred
Throws: JspException if a JSP exception has occurred
Throws: JspException if a JSP exception has occurred
Since: Struts 1.1
Returns: The element name.
Parameters: serverValue The data to be used in the tag's value
attribute and sent to the server when the form is submitted. checkedValue If the serverValue equals this value the radio button
will be checked.
Returns: A radio input element.
Throws: JspException
Since: Struts 1.1
value
attribute
that gets sent to the server on form submission.Throws: JspException
Parameters: idName The new idName
Since: Struts 1.1
Parameters: property The new property name
Parameters: value The new server value