HDIV API 2.0.4

org.hdiv.taglib.html
Class RadioTagHDIV

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.struts.taglib.html.BaseHandlerTag
              extended by org.apache.struts.taglib.html.RadioTag
                  extended by org.hdiv.taglib.html.RadioTagHDIV
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
ELRadioTagHDIV, NestedRadioTagHDIV

public class RadioTagHDIV
extends org.apache.struts.taglib.html.RadioTag

Renders an HTML <input> element of type radio, populated from the specified property of the bean associated with our current form. This tag is only valid when nested inside a form tag body.

If an iterator is used to render a series of radio tags, the idName attribute 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.

Author:
Gorka Vicente
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.taglib.html.RadioTag
idName, messages, name, property, text, value
 
Fields inherited from class org.apache.struts.taglib.html.BaseHandlerTag
accesskey, defaultLocale, doDisabled, doReadonly, indexed, tabindex
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
RadioTagHDIV()
           
 
Method Summary
protected  void renderAttribute(java.lang.StringBuffer handlers, java.lang.String name, java.lang.Object value)
          Prepares an attribute if the value is not null, appending it to the the given StringBuffer.
protected  java.lang.String renderRadioElement(java.lang.String serverValue, java.lang.String checkedValue)
          Renders an HTML <input type="radio"> element.
 
Methods inherited from class org.apache.struts.taglib.html.RadioTag
doAfterBody, doEndTag, doStartTag, getIdName, getName, getProperty, getValue, prepareName, release, setIdName, setName, setProperty, setValue
 
Methods inherited from class org.apache.struts.taglib.html.BaseHandlerTag
doErrorsExist, getAccesskey, getAlt, getAltKey, getBundle, getDisabled, getElementClose, getErrorKey, getErrorStyle, getErrorStyleClass, getErrorStyleId, getIndexed, getIndexValue, getLocale, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getReadonly, getStyle, getStyleClass, getStyleId, getTabindex, getTitle, getTitleKey, isXhtml, lookupProperty, message, prepareAttribute, prepareEventHandlers, prepareFocusEvents, prepareIndex, prepareKeyEvents, prepareMouseEvents, prepareOtherAttributes, prepareStyles, prepareTextEvents, setAccesskey, setAlt, setAltKey, setBundle, setDisabled, setErrorKey, setErrorStyle, setErrorStyleClass, setErrorStyleId, setIndexed, setLocale, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setStyleId, setTabindex, setTitle, setTitleKey
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

RadioTagHDIV

public RadioTagHDIV()
Method Detail

renderRadioElement

protected java.lang.String renderRadioElement(java.lang.String serverValue,
                                              java.lang.String checkedValue)
                                       throws javax.servlet.jsp.JspException
Renders an HTML <input type="radio"> element.

Overrides:
renderRadioElement in class org.apache.struts.taglib.html.RadioTag
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:
javax.servlet.jsp.JspException
Since:
Struts 1.1
See Also:
org.hdiv.composer.IDataComposer#compose(String, String, boolean)

renderAttribute

protected void renderAttribute(java.lang.StringBuffer handlers,
                               java.lang.String name,
                               java.lang.Object value)
Prepares an attribute if the value is not null, appending it to the the given StringBuffer.

Parameters:
handlers - The StringBuffer that output will be appended to.

HDIV 2.0.4

Copyright © 2008 hdiv.org. All Rights Reserved.