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

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.LabelExtensionTag
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 LabelExtensionTag
extends TobagoExtensionBodyTagSupport

Renders a label to any component.
Short syntax of:

 <tc:panel>
   <f:facet name="layout">
     <tc:gridLayout columns="auto;*"/>
   </f:facet>
   <tc:label value="#{label}" for="@auto"/>
     ...
 </tc:panel>
 
This is the universal version of the special versions: <tx:in>, etc. In other words:
 <tx:label>
   <tc:in/>
 </tx:label>
 
does the same like
   <tx:in/>
 

See Also:
Serialized Form

Field Summary
static String DEFAULT_COLUMNS
           
 
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
LabelExtensionTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setLabelWidth(javax.el.ValueExpression labelWidth)
          The width for the label component.
 void setMarkup(javax.el.ValueExpression markup)
          Indicate markup of this component.
 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 setTip(javax.el.ValueExpression tip)
          Text value to display as tooltip.
 void setValue(javax.el.ValueExpression value)
          The current value of this 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, 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
 

Field Detail

DEFAULT_COLUMNS

public static final String DEFAULT_COLUMNS
See Also:
Constant Field Values
Constructor Detail

LabelExtensionTag

public LabelExtensionTag()
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.


setTip

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


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.


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.


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.



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