| |
|
| org.apache.struts.taglib.html.BaseHandlerTag org.apache.struts.taglib.html.RadioTag
All known Subclasses: org.apache.struts.taglib.nested.html.NestedRadioTag, org.apache.strutsel.taglib.html.ELRadioTag,
RadioTag | public class RadioTag extends BaseHandlerTag (Code) | | Tag for input fields of type "radio".
version: $Rev: 471754 $ $Date: 2005-06-14 14:26:17 -0400 (Tue, 14 Jun 2005) version: $ |
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. |
idName | protected String idName(Code) | | Name of the bean (in some scope) that will return the value of the
radio tag. 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 | protected String name(Code) | | The name of the bean containing our underlying property.
|
property | protected String property(Code) | | The property name for this field.
|
text | protected String text(Code) | | The body content of this tag (if any).
|
value | protected String value(Code) | | The server value for this option.
|
doAfterBody | public int doAfterBody() throws JspException(Code) | | Save the associated label from the body content.
throws: JspException - if a JSP exception has occurred |
doEndTag | public int doEndTag() throws JspException(Code) | | Optionally render the associated label from the body content.
throws: JspException - if a JSP exception has occurred |
doStartTag | public int doStartTag() throws JspException(Code) | | Generate the required input tag. [Indexed property since Struts 1.1]
throws: JspException - if a JSP exception has occurred |
getIdName | public String getIdName()(Code) | | Return the idName.
since: Struts 1.1 |
getProperty | public String getProperty()(Code) | | Return the property name.
|
getValue | public String getValue()(Code) | | Return the server value.
|
release | public void release()(Code) | | Release any acquired resources.
|
renderRadioElement | protected String renderRadioElement(String serverValue, String checkedValue) throws JspException(Code) | | Renders an HTML <input type="radio"> element.
Parameters: serverValue - The data to be used in the tag's value attribute and sent to the server when the form issubmitted. Parameters: checkedValue - If the serverValue equals this value the radiobutton will be checked. A radio input element. throws: JspException - since: Struts 1.1 |
setIdName | public void setIdName(String idName)(Code) | | Set the idName.
Parameters: idName - The new idName since: Struts 1.1 |
setProperty | public void setProperty(String property)(Code) | | Set the property name.
Parameters: property - The new property name |
setValue | public void setValue(String value)(Code) | | Set the server value.
Parameters: value - The new server value |
|
|
|