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

About Tags

 
Akshatha Nayak
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys ,
Question " When implementing a tag, if the tag just includes the body verbatim, or if it does not include the body, then the tag handler class must extend the BodyTagSupport class. Is this statement true of false. "

i got this question from a mock exam site ... i didnt get the question exactally .. Answer to this is "false. Such a class should extend the TagSupport class". i dont understand y cant it extend BodyTagSupport
 
Gabriel Forro
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Yes the answer is false, as it's enough to extend the TagSupport class.

You must extend the BodyTagSupport class, if You want to manipulate the body content. It is not the case from the question You qouted.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic