You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Martin Strand <do...@gmail.com> on 2007/01/05 03:45:20 UTC
ComponentBeginRenderListener?
Hi guys.
I want to initialize some stuff before a certain component renders, but
there's no ComponentBeginRenderListener.
What alternatives do I have? I don't want to use pageBeginRender, because
that gets invoked regardless of whether the component is used on the page
or not (perhaps it's in an @If block) :\
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: ComponentBeginRenderListener?
Posted by Martin Strand <do...@gmail.com>.
Thanks, works great!
On Fri, 05 Jan 2007 10:22:47 +0100, <Ma...@bmw.ch> wrote:
> how about AbstractComponent.prepareForRender() ?
>
>> -----Original Message-----
>> From: Martin Strand [mailto:do.not.eat.yellow.snow@gmail.com]
>> Sent: Friday, January 05, 2007 6:08 AM
>> To: Tapestry users
>> Subject: Re: ComponentBeginRenderListener?
>>
>> Thanks, but finishLoad() is also invoked regardless of
>> whether the component is used or not. :(
>>
>> Martin
>>
>> On Fri, 05 Jan 2007 03:53:44 +0100, Daniel Tabuenca
>> <dt...@gmail.com>
>> wrote:
>>
>> > I haven't done this but just from looking at the IComponent
>> interface
>> > you could probably just override the finishLoad() method. Simply do
>> > your initialization and then call super.finishLoad().
>> >
>> > On 1/4/07, Martin Strand <do...@gmail.com> wrote:
>> >> Hi guys.
>> >> I want to initialize some stuff before a certain component
>> renders,
>> >> but there's no ComponentBeginRenderListener.
>> >> What alternatives do I have? I don't want to use pageBeginRender,
>> >> because that gets invoked regardless of whether the
>> component is used
>> >> on the page or not (perhaps it's in an @If block) :\
>> >>
>> >> Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: ComponentBeginRenderListener?
Posted by Ma...@bmw.ch.
how about AbstractComponent.prepareForRender() ?
> -----Original Message-----
> From: Martin Strand [mailto:do.not.eat.yellow.snow@gmail.com]
> Sent: Friday, January 05, 2007 6:08 AM
> To: Tapestry users
> Subject: Re: ComponentBeginRenderListener?
>
> Thanks, but finishLoad() is also invoked regardless of
> whether the component is used or not. :(
>
> Martin
>
> On Fri, 05 Jan 2007 03:53:44 +0100, Daniel Tabuenca
> <dt...@gmail.com>
> wrote:
>
> > I haven't done this but just from looking at the IComponent
> interface
> > you could probably just override the finishLoad() method. Simply do
> > your initialization and then call super.finishLoad().
> >
> > On 1/4/07, Martin Strand <do...@gmail.com> wrote:
> >> Hi guys.
> >> I want to initialize some stuff before a certain component
> renders,
> >> but there's no ComponentBeginRenderListener.
> >> What alternatives do I have? I don't want to use pageBeginRender,
> >> because that gets invoked regardless of whether the
> component is used
> >> on the page or not (perhaps it's in an @If block) :\
> >>
> >> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: ComponentBeginRenderListener?
Posted by Martin Strand <do...@gmail.com>.
Thanks, but finishLoad() is also invoked regardless of whether the
component is used or not. :(
Martin
On Fri, 05 Jan 2007 03:53:44 +0100, Daniel Tabuenca <dt...@gmail.com>
wrote:
> I haven't done this but just from looking at the IComponent interface
> you could probably just override the finishLoad() method. Simply do
> your initialization and then call super.finishLoad().
>
> On 1/4/07, Martin Strand <do...@gmail.com> wrote:
>> Hi guys.
>> I want to initialize some stuff before a certain component renders, but
>> there's no ComponentBeginRenderListener.
>> What alternatives do I have? I don't want to use pageBeginRender,
>> because
>> that gets invoked regardless of whether the component is used on the
>> page
>> or not (perhaps it's in an @If block) :\
>>
>> Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: ComponentBeginRenderListener?
Posted by Daniel Tabuenca <dt...@gmail.com>.
I haven't done this but just from looking at the IComponent interface
you could probably just override the finishLoad() method. Simply do
your initialization and then call super.finishLoad().
On 1/4/07, Martin Strand <do...@gmail.com> wrote:
> Hi guys.
> I want to initialize some stuff before a certain component renders, but
> there's no ComponentBeginRenderListener.
> What alternatives do I have? I don't want to use pageBeginRender, because
> that gets invoked regardless of whether the component is used on the page
> or not (perhaps it's in an @If block) :\
>
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org