org.apache.myfaces.tobago.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.taglib.extension.LabelExtensionTag
All Implemented Interfaces:
java.io.Serializable, BodyTag, IterationTag, JspTag, Tag, HasTip, HasValue

public class LabelExtensionTag
extends BodyTagSupport
implements HasValue, HasTip

Renders a label to any component.
Short syntax of:

 <tc:panel>
   <f:facet name="layout">
     <tc:gridLayout columns="fixed;*"/>
   </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 java.lang.String DEFAULT_COLUMNS
           
 
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 setMarkup(java.lang.String markup)
           
 void setRendered(java.lang.String rendered)
           
 void setTip(java.lang.String tip)
          Text value to display as tooltip.
 void setValue(java.lang.String value)
          The current value of this 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 javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

DEFAULT_COLUMNS

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

LabelExtensionTag

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

setValue

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

Specified by:
setValue in interface HasValue

setTip

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

Specified by:
setTip in interface HasTip

setRendered

public void setRendered(java.lang.String rendered)

setMarkup

public void setMarkup(java.lang.String markup)


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