org.apache.cocoon.faces.taglib
Class UIComponentBodyTag

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.taglib.TagSupport
          extended by org.apache.cocoon.taglib.XMLProducerTagSupport
              extended by org.apache.cocoon.faces.taglib.UIComponentTag
                  extended by org.apache.cocoon.faces.taglib.UIComponentBodyTag
All Implemented Interfaces:
Poolable, Recyclable, Component, LogEnabled, BodyTag, IterationTag, Tag, XMLProducerTag, XMLProducer
Direct Known Subclasses:
VerbatimTag

public abstract class UIComponentBodyTag
extends UIComponentTag
implements BodyTag

Version:
CVS $Id: UIComponentBodyTag.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
protected  BodyContent content
           
 
Fields inherited from class org.apache.cocoon.taglib.XMLProducerTagSupport
xmlConsumer
 
Fields inherited from class org.apache.cocoon.taglib.TagSupport
objectModel, parameters, parent, resolver
 
Fields inherited from interface org.apache.cocoon.taglib.BodyTag
EVAL_BODY_BUFFERED
 
Fields inherited from interface org.apache.cocoon.taglib.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface org.apache.cocoon.taglib.Tag
EVAL_BODY, EVAL_PAGE, ROLE, SKIP_BODY
 
Constructor Summary
UIComponentBodyTag()
           
 
Method Summary
 int doAfterBody()
          Process body (re)evaluation.
 void doInitBody()
          Invoked after setBodyContent only when doStartTag returns EVAL_BODY_BUFFERED and tag has content
 int getDoAfterBody()
           
 void setBodyContent(BodyContent bodyContent)
          Invoked only when doStartTag returns EVAL_BODY_BUFFERED and tag has content
 
Methods inherited from class org.apache.cocoon.faces.taglib.UIComponentTag
createValueBinding, doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, evaluate, evaluateBoolean, evaluateDouble, evaluateInteger, evaluateLong, getApplication, getBinding, getComponentInstance, getComponentType, getCreated, getDoEndValue, getDoStartValue, getFacesContext, getId, getRendered, getRendererType, recycle, setBinding, setBooleanProperty, setId, setIntegerProperty, setProperties, setProperty, setRendered, setup
 
Methods inherited from class org.apache.cocoon.taglib.XMLProducerTagSupport
setConsumer
 
Methods inherited from class org.apache.cocoon.taglib.TagSupport
findAncestorWithClass, findAttribute, getParent, setParent
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.taglib.Tag
doEndTag, doStartTag, getParent, setParent, setup
 

Field Detail

content

protected BodyContent content
Constructor Detail

UIComponentBodyTag

public UIComponentBodyTag()
Method Detail

doAfterBody

public int doAfterBody()
                throws SAXException
Description copied from interface: IterationTag
Process body (re)evaluation. This method is invoked by the Taglib implementation object after every evaluation of the body into the BodyEvaluation object. The method is not invoked if there is no body evaluation.

If doAfterBody returns EVAL_BODY_AGAIN, a new evaluation of the body will happen (followed by another invocation of doAfterBody). If doAfterBody returns SKIP_BODY no more body evaluations will occur and then doEndTag will be invoked.

The method re-invocations may be lead to different actions because there might have been some changes to shared state, or because of external computation.

Specified by:
doAfterBody in interface IterationTag
Returns:
whether additional evaluations of the body are desired
Throws:
SAXException

getDoAfterBody

public int getDoAfterBody()

doInitBody

public void doInitBody()
                throws SAXException
Description copied from interface: BodyTag
Invoked after setBodyContent only when doStartTag returns EVAL_BODY_BUFFERED and tag has content

Specified by:
doInitBody in interface BodyTag
Throws:
SAXException

setBodyContent

public void setBodyContent(BodyContent bodyContent)
                    throws SAXException
Description copied from interface: BodyTag
Invoked only when doStartTag returns EVAL_BODY_BUFFERED and tag has content

Specified by:
setBodyContent in interface BodyTag
Throws:
SAXException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.