org.apache.myfaces.tobago.internal.taglib.extension
Class TextareaExtensionTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.myfaces.tobago.internal.taglib.extension.TobagoExtensionBodyTagSupport
              extended by org.apache.myfaces.tobago.internal.taglib.extension.TextareaExtensionTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspIdConsumer, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class TextareaExtensionTag
extends TobagoExtensionBodyTagSupport

Renders a multi line text input control with a label.
Short syntax of:

 <tc:panel>
   <f:facet name="layout">
     <tc:gridLayout columns="auto;*"/>
   </f:facet>
   <tc:label value="#{label}" for="@auto"/>
   <tc:textarea value="#{value}">
     ...
   </tc:in>
 </tc:panel>
 

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.myfaces.tobago.internal.taglib.extension.TobagoExtensionBodyTagSupport
PREFIX
 
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
TextareaExtensionTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setBinding(javax.el.ValueExpression binding)
          The value binding expression linking this component to a property in a backing bean.
 void setConverter(javax.el.ValueExpression converter)
          An expression that specifies the Converter for this component.
 void setConverterMessage(javax.el.ValueExpression converterMessage)
          An expression that specifies the converter message
 void setDisabled(javax.el.ValueExpression disabled)
          Flag indicating that this element is disabled.
 void setFieldId(String fieldId)
          The component identifier for the input field component inside of the container.
 void setFocus(javax.el.ValueExpression focus)
          Flag indicating this component should receive the focus.
 void setId(String id)
          The component identifier for this component.
 void setLabel(javax.el.ValueExpression label)
          Text value to display as label.
 void setLabelWidth(javax.el.ValueExpression labelWidth)
          The width for the label component.
 void setMarkup(javax.el.ValueExpression markup)
          Indicate markup of this component.
 void setOnchange(javax.el.ValueExpression onchange)
          Clientside script function to add to this component's onchange handler.
 void setReadonly(javax.el.ValueExpression readonly)
          Flag indicating that this component will prohibit changes by the user.
 void setRendered(javax.el.ValueExpression rendered)
          Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
 void setRequired(javax.el.ValueExpression required)
          Flag indicating that a value is required.
 void setRequiredMessage(javax.el.ValueExpression requiredMessage)
          An expression that specifies the required message
 void setTabIndex(javax.el.ValueExpression tabIndex)
           
 void setTip(javax.el.ValueExpression tip)
          Text value to display as tooltip.
 void setValidator(javax.el.MethodExpression validator)
          A method binding EL expression, accepting FacesContext, UIComponent, and Object parameters, and returning void, that validates the component's local value.
 void setValidatorMessage(javax.el.ValueExpression validatorMessage)
          An expression that specifies the validator message
 void setValue(javax.el.ValueExpression value)
          The current value of this component.
 void setValueChangeListener(javax.el.MethodExpression 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 org.apache.myfaces.tobago.internal.taglib.extension.TobagoExtensionBodyTagSupport
createStringValueExpression, nextJspId, setJspId
 
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, 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

TextareaExtensionTag

public TextareaExtensionTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class TobagoExtensionBodyTagSupport

setValue

public void setValue(javax.el.ValueExpression value)
The current value of this component.


setValueChangeListener

public void setValueChangeListener(javax.el.MethodExpression valueChangeListener)
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.

Parameters:
valueChangeListener -

setLabel

public void setLabel(javax.el.ValueExpression label)
Text value to display as label. If text contains an underscore the next character is used as accesskey.


setFocus

public void setFocus(javax.el.ValueExpression focus)
Flag indicating this component should receive the focus.


setBinding

public void setBinding(javax.el.ValueExpression binding)
The value binding expression linking this component to a property in a backing bean.


setRendered

public void setRendered(javax.el.ValueExpression rendered)
Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.


setConverter

public void setConverter(javax.el.ValueExpression converter)
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.


setValidator

public void setValidator(javax.el.MethodExpression validator)
A method binding EL expression, accepting FacesContext, UIComponent, and Object parameters, and returning void, that validates the component's local value.


setOnchange

public void setOnchange(javax.el.ValueExpression onchange)
Clientside script function to add to this component's onchange handler.


setMarkup

public void setMarkup(javax.el.ValueExpression markup)
Indicate markup of this component. Possible value is 'none'. But this can be overridden in the theme.


setReadonly

public void setReadonly(javax.el.ValueExpression readonly)
Flag indicating that this component will prohibit changes by the user.


setDisabled

public void setDisabled(javax.el.ValueExpression disabled)
Flag indicating that this element is disabled.


setRequired

public void setRequired(javax.el.ValueExpression required)
Flag indicating that a value is required. If the value is an empty string a ValidationError occurs and a Error Message is rendered.


setTip

public void setTip(javax.el.ValueExpression tip)
Text value to display as tooltip.


setLabelWidth

public void setLabelWidth(javax.el.ValueExpression labelWidth)
The width for the label component. Default: 'auto'. This value is used in the gridLayouts columns attribute. See gridLayout tag for valid values.


setTabIndex

public void setTabIndex(javax.el.ValueExpression tabIndex)

setValidatorMessage

public void setValidatorMessage(javax.el.ValueExpression validatorMessage)
An expression that specifies the validator message


setConverterMessage

public void setConverterMessage(javax.el.ValueExpression converterMessage)
An expression that specifies the converter message


setRequiredMessage

public void setRequiredMessage(javax.el.ValueExpression requiredMessage)
An expression that specifies the required message


setFieldId

public void setFieldId(String fieldId)
The component identifier for the input field component inside of the container. This value must be unique within the closest parent component that is a naming container.


setId

public void setId(String id)
The component identifier for this component. This value must be unique within the closest parent component that is a naming container. For tx components the id will be set to the container (e. g. the panel). To set the id of the input field, you have to use the attribute "fieldId".

Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport


Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.