Page 1 of 1

About Question enthuware.jwpv6.2.886 :

Posted: Tue Sep 24, 2013 2:22 pm
by Jkike79
Hi,

the explanation for the incorrect answer
Define a method addName() in BandTag. In the doStartTag() of InstrumentTag, get a reference to BandTag through pageContext.getAncesterWithClass() and call the addName() method.
stats:
findAncesterWithClass() method is defined by TagSupport. It is not available in pageContext.
The TagSupport API does not have a findAncesterWithClass method, but it has the findAncestorWithClass

It's just a typing mistake or the method exists in another class?

Thank you
Barbara

Re: About Question enthuware.jwpv6.2.886 :

Posted: Tue Sep 24, 2013 2:33 pm
by admin
That is a typo. It has now been fixed.

thank you for your feedback!
Paul.