Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Body content type for custom tags

 
tanzeel rais
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am referring to HFSJ 2nd edition pdf version.

In chapter 9 ,it says that body content of a custom tag can have either of the four values
1.empty 2.scriptless 3.tagdependent 4.jsp

But in chapter 10 ,while dealing with tag handlers for these custom tags , for a Simple tag handler ,the tag body is processed using the setJspBody(JspFragment) method.And it says that JspFragment cannot have scripting elements.

Does this imply ,that only tag bodies invoked by a Classic handler can have all 4 types of body content , and while with Simple handler only 3 types excluding jsp type as no scripting elements allowed.
 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tanzeel rais wrote:Does this imply ,that only tag bodies invoked by a Classic handler can have all 4 types of body content , and while with Simple handler only 3 types excluding jsp type as no scripting elements allowed.

Yes that's correct...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic