|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.webapp.UIComponentTag
javax.faces.webapp.UIComponentBodyTag
UIComponentBodyTag is a base class for all JSP custom actions, related to a UIComponent, that need to process their tag bodies.
| Field Summary | |
protected BodyContent |
bodyContent
The bodyContent for this tag handler. |
| Fields inherited from class javax.faces.webapp.UIComponentTag |
context, id, pageContext, rendered, renderedSet |
| 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 | |
UIComponentBodyTag()
|
|
| Method Summary | |
int |
doAfterBody()
Handle the ending of the nested body content for this tag. |
void |
doInitBody()
Prepare for evaluation of the body. |
BodyContent |
getBodyContent()
Return the BodyContent for this tag handler. |
protected int |
getDoAfterBodyValue()
Return the flag value that should be returned from the doAfterBody() method when it is called. |
protected int |
getDoStartValue()
Return the flag value that should be returned from the doStart() method when it is called. |
JspWriter |
getPreviousOut()
Get the JspWriter from our BodyContent. |
void |
release()
Called on a Tag handler to release state. |
void |
setBodyContent(BodyContent bodyContent)
Set the bodyContent for this tag handler. |
| Methods inherited from class javax.faces.webapp.UIComponentTag |
doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildIndex, getComponent, getComponentType, getCreated, getDoEndValue, getFacetName, getParent, getParentUIComponentTag, getRendererType, incrementChildIndex, isSuppressed, overrideProperties, setId, setPageContext, setParent, setRendered, setupResponseWriter |
| 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 |
doEndTag, doStartTag, getParent, setPageContext, setParent |
| Field Detail |
protected BodyContent bodyContent
The bodyContent for this tag handler.
| Constructor Detail |
public UIComponentBodyTag()
| Method Detail |
public int doAfterBody()
throws JspException
Handle the ending of the nested body content for this tag. The
default implementation simply calls getDoAfterBodyValue()
to retrieve the flag value to be returned.
doAfterBody in interface IterationTagJspException - if an error is encountered
public void doInitBody()
throws JspException
Prepare for evaluation of the body. This method is invoked by the
JSP page implementation object after setBodyContent()
and before the first time the body is to be evaluated. This method
will not be invoked for empty tags or for non-empty tags whose
doStartTag() method returns SKIP_BODY
or EVAL_BODY_INCLUDE.
doInitBody in interface BodyTagJspException - if an error is encounteredIterationTag.doAfterBody()public void release()
Tag
release in interface Tagrelease in class UIComponentTagpublic void setBodyContent(BodyContent bodyContent)
Set the bodyContent for this tag handler. This method
is invoked by the JSP page implementation object at most once per
action invocation, before doInitiBody(). This method
will not be invoked for empty tags or for non-empty tags whose
doStartTag() method returns SKIP_BODY or
EVAL_BODY_INCLUDE.
setBodyContent in interface BodyTagbodyContent - The new BodyContent for this tagBodyTag.doInitBody(),
IterationTag.doAfterBody()public BodyContent getBodyContent()
Return the BodyContent for this tag handler.
public JspWriter getPreviousOut()
Get the JspWriter from our BodyContent.
protected int getDoAfterBodyValue()
throws JspException
Return the flag value that should be returned from the
doAfterBody() method when it is called. Subclasses
may override this method to return the appropriate value.
JspException
protected int getDoStartValue()
throws JspException
UIComponentTagReturn the flag value that should be returned from the
doStart() method when it is called. Subclasses
may override this method to return the appropriate value.
getDoStartValue in class UIComponentTagJspException - to cause doStart() to
throw an exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||