org.apache.myfaces.tobago.taglib.extension
Class SelectOneChoiceExtensionTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.myfaces.tobago.taglib.extension.SelectOneChoiceExtensionTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, Tag, HasBinding, HasConverter, HasId, HasLabel, HasOnchange, HasTip, HasValidator, HasValue, HasValueChangeListener, IsDisabled, IsInline, IsReadonly, IsRendered

public class SelectOneChoiceExtensionTag
extends BodyTagSupport
implements HasId, HasValue, HasValueChangeListener, IsDisabled, IsReadonly, HasOnchange, IsInline, HasLabel, IsRendered, HasBinding, HasTip, HasValidator, HasConverter

Render a single selection dropdown list with a label.

See Also:
Serialized Form

Field Summary
 
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
SelectOneChoiceExtensionTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setBinding(String binding)
          The value binding expression linking this component to a property in a backing bean.
 void setConverter(String converter)
          An expression that specifies the Converter for this component.
 void setDisabled(String disabled)
          Flag indicating that this element is disabled.
 void setInline(String inline)
          Flag indicating this component should rendered as an inline element.
 void setLabel(String label)
          Text value to display as label.
 void setOnchange(String onchange)
          Clientside script function to add to this component's onchange handler.
 void setReadonly(String readonly)
          Flag indicating that this component will prohibit changes by the user.
 void setRendered(String rendered)
          Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
 void setRequired(String required)
           
 void setTip(String tip)
          Text value to display as tooltip.
 void setValidator(String validator)
          A method binding EL expression, accepting FacesContext, UIComponent, and Object parameters, and returning void, that validates the component's local value.
 void setValue(String value)
          The current value of this component.
 void setValueChangeListener(String valueChangeListener)
          MethodBinding representing a value change listener method that will be notified when a new value has been set for this input component.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, 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 org.apache.myfaces.tobago.taglib.decl.HasId
setId
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

SelectOneChoiceExtensionTag

public SelectOneChoiceExtensionTag()
Method Detail

doStartTag

public int doStartTag()
               throws JspException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class BodyTagSupport
Throws:
JspException

doEndTag

public int doEndTag()
             throws JspException
Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class BodyTagSupport
Throws:
JspException

release

public void release()
Specified by:
release in interface Tag
Overrides:
release in class BodyTagSupport

setRequired

public void setRequired(String required)

setValue

public void setValue(String value)
Description copied from interface: HasValue
The current value of this component.

Specified by:
setValue in interface HasValue

setValueChangeListener

public void setValueChangeListener(String valueChangeListener)
Description copied from interface: HasValueChangeListener
MethodBinding representing a value change listener method that will be notified when a new value has been set for this input component. The expression must evaluate to a public method that takes a ValueChangeEvent parameter, with a return type of void.

Specified by:
setValueChangeListener in interface HasValueChangeListener

setValidator

public void setValidator(String validator)
Description copied from interface: HasValidator
A method binding EL expression, accepting FacesContext, UIComponent, and Object parameters, and returning void, that validates the component's local value.

Specified by:
setValidator in interface HasValidator

setDisabled

public void setDisabled(String disabled)
Description copied from interface: IsDisabled
Flag indicating that this element is disabled.

Specified by:
setDisabled in interface IsDisabled

setReadonly

public void setReadonly(String readonly)
Description copied from interface: IsReadonly
Flag indicating that this component will prohibit changes by the user.

Specified by:
setReadonly in interface IsReadonly

setOnchange

public void setOnchange(String onchange)
Description copied from interface: HasOnchange
Clientside script function to add to this component's onchange handler.

Specified by:
setOnchange in interface HasOnchange

setConverter

public void setConverter(String converter)
Description copied from interface: HasConverter
An expression that specifies the Converter for this component. If the value binding expression is a String, the String is used as an ID to look up a Converter. If the value binding expression is a Converter, uses that instance as the converter. The value can either be a static value (ID case only) or an EL expression.

Specified by:
setConverter in interface HasConverter

setInline

public void setInline(String inline)
Description copied from interface: IsInline
Flag indicating this component should rendered as an inline element.

Specified by:
setInline in interface IsInline

setLabel

public void setLabel(String label)
Description copied from interface: HasLabel
Text value to display as label. If text contains an underscore the next character is used as accesskey.

Specified by:
setLabel in interface HasLabel

setRendered

public void setRendered(String rendered)
Description copied from interface: IsRendered
Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.

Specified by:
setRendered in interface IsRendered

setBinding

public void setBinding(String binding)
Description copied from interface: HasBinding
The value binding expression linking this component to a property in a backing bean.

Specified by:
setBinding in interface HasBinding

setTip

public void setTip(String tip)
Description copied from interface: HasTip
Text value to display as tooltip.

Specified by:
setTip in interface HasTip


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.