wicket-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matej Knopp" <matej.kn...@gmail.com>
Subject Re: Component.onBeforeRender() vs. IBehavior.beforeRender
Date Tue, 04 Sep 2007 12:23:11 GMT
Hi, semantically the IBehavior.beforeRender() and Component.onBeforeRender()
are two different things.
IBehavior.beforeRender() and afterRender() are used to wrap component output
in custom markup, while Component.onBeforeRender() is place to initialize
component, build it's children, etc.


On 9/4/07, Bart Molenkamp <b.molenkamp@bizzdesign.nl> wrote:
> Hi,
> I found out that IBehavior.beforeRender() is called within
> Component.render(), while Component.onBeforeRender() is called
> before the rendering phase.
> Is this correct behavior? There is a difference in this, because
> a component.onBeforeRender() can change the hierarchy, while
> IBehavior.beforeRender() cannot. Both names suggest that they
> should be called at the same time (that is, right before or after
> the Component.onBeforeRender() is called I would expect that
> IBehavior.beforeRender() is called).
> Thanks,
> Bart.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message