org.hdiv.taglib.html
Class OptionTagHDIV
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.struts.taglib.html.OptionTag
org.hdiv.taglib.html.OptionTagHDIV
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
- ELOptionTagHDIV
public class OptionTagHDIV
- extends org.apache.struts.taglib.html.OptionTag
Render an HTML <option> element, representing one of the choices for
an enclosing <select> element. The text displayed to the user comes
from either the body of this tag, or from a message string looked up based on the
bundle, locale, and key attributes. The value attribute is the value returned to
the server if this option is selected.
If the value of the corresponding bean property matches the specified value, this
option will be marked selected. This tag is only valid when nested inside a
<html:select> tag body.
- Author:
- Gorka Vicente
- See Also:
OptionTag,
Serialized Form
|
Field Summary |
protected java.lang.String |
valueWithoutEncrypt
The message text to be displayed to the user for this tag if no body text and no
key to lookup so display the value |
| Fields inherited from class org.apache.struts.taglib.html.OptionTag |
bundle, defaultLocale, disabled, key, locale, messages, styleId, text, value |
| 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 |
|
Method Summary |
int |
doEndTag()
Process the end of this tag. |
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 |
renderOptionElement()
Generate an HTML %lt;option> element. |
protected java.lang.String |
text()
Return the text to be displayed to the user for this option (if any). |
| Methods inherited from class org.apache.struts.taglib.html.OptionTag |
doAfterBody, doStartTag, getBundle, getDisabled, getKey, getLocale, getStyle, getStyleClass, getStyleId, getValue, release, setBundle, setDisabled, setKey, setLocale, setStyle, setStyleClass, setStyleId, setValue |
| 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 |
valueWithoutEncrypt
protected java.lang.String valueWithoutEncrypt
- The message text to be displayed to the user for this tag if no body text and no
key to lookup so display the value
- See Also:
org.hdiv.composer.IDataComposer#compose(String, String, boolean)
OptionTagHDIV
public OptionTagHDIV()
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Process the end of this tag.
- Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doEndTag in class org.apache.struts.taglib.html.OptionTag
- Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred
text
protected java.lang.String text()
throws javax.servlet.jsp.JspException
- Return the text to be displayed to the user for this option (if any).
- Overrides:
text in class org.apache.struts.taglib.html.OptionTag
- Throws:
javax.servlet.jsp.JspException - if an error occurs
renderOptionElement
protected java.lang.String renderOptionElement()
throws javax.servlet.jsp.JspException
- Generate an HTML %lt;option> element.
- Overrides:
renderOptionElement in class org.apache.struts.taglib.html.OptionTag
- Throws:
javax.servlet.jsp.JspException- Since:
- Struts 1.1
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.
Copyright © 2008 hdiv.org. All Rights Reserved.