This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Bindu Lakhanpal
Ranch Hand
Posts: 171
Flex Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)...
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic