|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport com.bea.content.manager.servlets.jsp.taglib.ForEachNestedPropertyTag
public class ForEachNestedPropertyTag
Tag to iterate through multi valued nested properties.
A Collection containing nested properties(ie. Property[]) must be set as an attribute of the page context with the id specified in this tag.
If an invalid Id is used and failOnError is set to true, then an exception will be thrown.
Example:
Field Summary | |
---|---|
protected boolean |
failOnError
Determines if we supposed to throw an exception on an error. |
protected Property[] |
nestedProperty
The id of the script variable to put the result into. |
protected Collection |
properties
|
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 | |
---|---|
ForEachNestedPropertyTag()
|
Method Summary | |
---|---|
int |
doAfterBody()
|
int |
doStartTag()
Start the tag. |
String |
getFailOnError()
Get the value of failOnError as a string. |
Property[] |
getNestedProperty()
Get the #nestedPropId . |
Collection |
getProperties()
|
Property |
getPropertyValue(String propName)
|
void |
release()
Release the tag. |
void |
setFailOnError(boolean b)
Set the value of failOnError . |
void |
setFailOnError(String s)
Set the value of failOnError . |
void |
setNestedProperty(Property[] nestedProperty)
Set the #nestedPropId . |
void |
setProperties(Collection properties)
|
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doEndTag, 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 |
---|
protected Property[] nestedProperty
protected Collection properties
protected boolean failOnError
Constructor Detail |
---|
public ForEachNestedPropertyTag()
Method Detail |
---|
public Property[] getNestedProperty()
#nestedPropId
.
public void setNestedProperty(Property[] nestedProperty)
#nestedPropId
.
public Collection getProperties()
public void setProperties(Collection properties)
public String getFailOnError()
failOnError
as a string.
public void setFailOnError(String s)
failOnError
.
public void setFailOnError(boolean b)
failOnError
.
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public Property getPropertyValue(String propName)
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |