Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BodyTag Interface doubt

 
Srividhya Kiran
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose I give the body-content in tld as tagdependent. Is it necessary for the tag handler to implement BodyTag Interface?

Srividhya
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you want to access the body content and you want to use classic custom tag ,then you should implement.
 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by deepa raj:
if you want to access the body content and you want to use classic custom tag ,then you should implement.



You mean can't we access body content using Simple Tags.
I think we have getJspBody()in Simgle Tags API.
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



No.Atually i was trying to say

Body Content Access + Classic Custom tag means we have to use BodyTag.

We can access the body content using SimpleTagSupport by passing some writer object to the invoke method instead of passing null.



Please correct me if i am wrong.
 
Baddy Davay
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes simple tag doesn't need you to implement any BodyTag interface.Only the classic tag does need to implement if you need to access the body dentent as well,because SimpleTag is simplified version of classic tags .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic