aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Sequence of steps which occur when a classic tag handler extends BodyTagSupport? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Sequence of steps which occur when a classic tag handler extends BodyTagSupport?" Watch "Sequence of steps which occur when a classic tag handler extends BodyTagSupport?" New topic
Author

Sequence of steps which occur when a classic tag handler extends BodyTagSupport?

Bindu Lakhanpal
Ranch Hand

Joined: Oct 17, 2008
Posts: 165

What exactly happens when doStartTag() returns EVAL_BODY_BUFFERED.
I know first setBodyContent() is invoked then doInitBody().But how the pushBody() and popBody() methods are involved?
I tried to find the answer but could not visualize clearly what is happening.

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

Read this. The pushBody and popBody are not part of the normal life cycle of a custom tag. They are called manually to send the output to somewhere else (a buffer etc)...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
jQuery in Action, 2nd edition
 
subject: Sequence of steps which occur when a classic tag handler extends BodyTagSupport?