org.infoglue.cms.workflow.taglib
Class CategorySelector
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.infoglue.deliver.taglib.AbstractTag
org.infoglue.cms.workflow.taglib.WorkflowTag
org.infoglue.cms.workflow.taglib.ElementTag
org.infoglue.cms.workflow.taglib.CategorySelector
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
public class CategorySelector
- extends ElementTag
This class implements the <iw:categorySelector> tag, which presents an <select ... >...</select>
form element representing a category and where each option element represents a child of the root
category.
The value of the selected element is fetched (with the name of the select element as a key)
from the propertyset associated with the workflow.
- See Also:
- Serialized Form
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
pageContext |
| 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 |
|
Method Summary |
protected org.infoglue.cms.workflow.taglib.Element |
createElement()
Creates the element to use when constructing this tag. |
int |
doEndTag()
Process the end tag. |
void |
setCategoryPath(java.lang.String path)
Sets the path of the root category. |
void |
setDefaultLabel(java.lang.String label)
Sets the label of the first option element. |
void |
setName(java.lang.String name)
Sets the name attribute of the select element to the specified value. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CategorySelector
public CategorySelector()
- Default constructor.
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Process the end tag. Creates the option elements and writes the select
element to the output stream.
- Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doEndTag in class ElementTag
- Returns:
- indication of whether to continue evaluating the JSP page.
- Throws:
javax.servlet.jsp.JspException - if an I/O error occurs when writing to the output stream.
createElement
protected org.infoglue.cms.workflow.taglib.Element createElement()
- Creates the element to use when constructing this tag.
- Specified by:
createElement in class ElementTag
- Returns:
- the element to use when constructing this tag.
setDefaultLabel
public void setDefaultLabel(java.lang.String label)
- Sets the label of the first option element.
- Parameters:
label - the label to use.
setCategoryPath
public void setCategoryPath(java.lang.String path)
throws javax.servlet.jsp.JspException
- Sets the path of the root category.
- Parameters:
path - the path to use.
- Throws:
javax.servlet.jsp.JspException - if an error occurs when fetching the category.
setName
public void setName(java.lang.String name)
- Sets the name attribute of the select element to the specified value.
- Parameters:
name - the name to use.
Copyright © 2005 InfoGlue.org All Rights Reserved.