org.appfuse.webapp.taglib
Class LabelTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.appfuse.webapp.taglib.LabelTag
- All Implemented Interfaces:
- IterationTag, JspTag, Serializable, Tag
- public class LabelTag
- extends TagSupport
This class is designed to render a
It is designed to be used as follows:
<tag:label key="userForm.username" />
- See Also:
- Serialized Form
- JSP Tag:
- name="label" bodycontent="empty"
|
Method Summary |
int |
doStartTag()
|
void |
release()
Release all allocated resources. |
void |
setColon(boolean colon)
Setter for specifying whether to include colon |
void |
setErrorClass(String errorClass)
Setter for assigning a CSS class when errors occur,
defaults to labelError. |
void |
setKey(String key)
|
void |
setStyleClass(String styleClass)
Setter for assigning a CSS class, default is label. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, 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 |
log
protected org.apache.commons.logging.Log log
key
protected String key
styleClass
protected String styleClass
errorClass
protected String errorClass
colon
protected boolean colon
LabelTag
public LabelTag()
doStartTag
public int doStartTag()
throws JspException
- Throws:
JspException
setKey
public void setKey(String key)
- JSP Attribute:
- required="true"
setColon
public void setColon(boolean colon)
- Setter for specifying whether to include colon
- JSP Attribute:
- required="false"
setStyleClass
public void setStyleClass(String styleClass)
- Setter for assigning a CSS class, default is label.
- JSP Attribute:
- required="false"
setErrorClass
public void setErrorClass(String errorClass)
- Setter for assigning a CSS class when errors occur,
defaults to labelError.
- JSP Attribute:
- required="false"
release
public void release()
- Release all allocated resources.
Copyright © 2002-2004