So the sub-class setupRender() overrides the base-class setupRender()? The method setupRender() is still invoked at the appropriate time. The difference is that it is not invoked twice, as it was before 5.0.13.
In coding terms, what happens is that Tapestry provides an implementation of the method void setupRender(MarkupWriter writer, Event event) in the base class that invokes the base class' setupRender() method. The sub class also gets an implementation of void setupRender(MarkupWriter writer, Event event) ... the first thing it does is invoke the super implementation. In 5.0.11 and earlier, the subclass implementation of setupRender(...) would invoke the subclass' override of setupRender(). Thus, the base class would invoke it once, then the subclass would invoke it again. In 5.0.13 this was changed so that the subclass implementation of setupRender(...) would *NOT* invoke the setupRender() method; because setupRender() overrides a base class method; the base class is responsible for invoking it. This is what that documentation is referring to when it mentions the "timing" of the method invocation. Thus if you want the base classes' implementation to be invoked, the method override must call super.setupRender(). Hope this is a bit clearer. Then end result is that overriding render phase methods should now fit better, conceptually, with how method overrides work in ordinary Java, which is a good thing. On Fri, Jun 20, 2008 at 5:55 PM, Bill Holloway <[EMAIL PROTECTED]> wrote: > The JIRA on this states that the "overridden method will be invoked > only by the parent class, not the subclass." So I have a page that > inherits from a base page class. Both have setupRender() on them. I > have no code in the parent class that actually invokes setupRender, > but I hope it will be invoked. Will it? > > -- > Bill @ PeoplePad > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]