• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TagAdapter question

 
bernard savary
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
In HFS they say a classic Tag or BodyTag cannot have a simple parent because the setParent takes Tag as argument , But I find that from J2ee1.4 and JEE 1.5 they have TagAdapter through which all possible combinations of parent/child tags are possible. So In the exam If i'm asked a question on this , how should I answer?
 
Bod Toki
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I guess the answer would be that if you have:
<simple:bla>
<classic:blu></classic:blu>
</simple:bla>


Then a getParent() from the classic tag would get you to the simple tag - even though what you get is the simple tag wrapped in some tag adapter.

There's a question on this in the HFSJ book. I guess 'mock exam chapter 10, question 3'. Check it out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic