Hello Frits,
I did look through your notes. Kudos on creating them - they are pretty thorough & extensive.
However, related to my question, I could just find this info (quoting from your notes):
SimpleTagSupport has a method:
· static JspTag findAncestorWithClass(JspTag from, Class aClass)
which resembles:
· static Tag findAncestorWithClass(Tag from, Class aClass)
from the TagSupport class
The SimpleTagSupport method however will look for simple classes: if a TagAdapter is found on
the way it will compare the class against the Adaptee of the TagAdapter(getAdaptee())
I may be missing something here, but trying to figure this out:
--> Does ancestor in findAncestorWithClass(...) refer to ancestor in class hierarchy? as in super type, or super's super & so on? [This is all the more confusing because the Parent in getParent(...) refers to the nesting tag, not the parent as in class hierarchy.]
-->What is the role of the second argument, class?
-->When would you ever use this method?