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

last SCWCD question

 
Joe Man
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
12.8 Identify methods that return an outer tag handler from within an inner tag handler.
question:
the answer is the "Tag getParent()" from TagSupport class? is this correct or more?
 
Sam Cala
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getParent returns immediate outer tag. findAncestorWithClass may also work if you do not want the immediate parent...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic