org.apache.struts.taglib.html
public class OptionTag extends BodyTagSupport
Version: $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
Field Summary | |
---|---|
protected String | bundle
The name of the servlet context attribute containing our message
resources. |
protected static Locale | defaultLocale
The default locale for our server. |
protected boolean | disabled
Is this option disabled? |
protected String | key
The key used to look up the text displayed to the user for this
option, if any. |
protected String | locale
The name of the attribute containing the Locale to be used for
looking up internationalized messages. |
protected static MessageResources | messages
The message resources for this package. |
String | style
The style associated with this tag. |
String | styleClass
The named style class associated with this tag. |
protected String | styleId
The identifier associated with this tag. |
protected String | text
The message text to be displayed to the user for this tag (if any) |
protected String | value
The server value for this option, also used to match against the
current property value to determine whether this option should be
marked as selected. |
Method Summary | |
---|---|
int | doAfterBody()
Process the body text of this tag (if any).
|
int | doEndTag()
Process the end of this tag.
|
int | doStartTag()
Process the start of this tag.
|
String | getBundle() |
boolean | getDisabled() |
String | getKey() |
String | getLocale() |
String | getStyle() |
String | getStyleClass() |
String | getStyleId()
Return the style identifier for this tag. |
String | getValue() |
void | release()
Release any acquired resources. |
protected String | renderOptionElement()
Generate an HTML %lt;option> element. |
SelectTag | selectTag()
Acquire the select tag we are associated with. |
void | setBundle(String bundle) |
void | setDisabled(boolean disabled) |
void | setKey(String key) |
void | setLocale(String locale) |
void | setStyle(String style) |
void | setStyleClass(String styleClass) |
void | setStyleId(String styleId)
Set the style identifier for this tag.
|
void | setValue(String value) |
protected String | text()
Return the text to be displayed to the user for this option (if any).
|
Deprecated: Use Locale.getDefault() directly.
The default locale for our server.Throws: JspException if a JSP exception has occurred
Throws: JspException if a JSP exception has occurred
Throws: JspException if a JSP exception has occurred
Throws: JspException
Since: Struts 1.1
Throws: JspException
Parameters: styleId The new style identifier
Throws: JspException if an error occurs