You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Dhanji R. Prasanna" <dh...@gmail.com> on 2007/03/16 07:05:37 UTC

page lifecycle listener

Hi

Im playing around with t5--loving it so far. I am interested in finding out
if there is some way I can register a global lifecycle listener for all
pages? Something like @PageAttached but as a global?

What I am trying to do is run custom injection on a t5 page object. Please
let me know if this is the wrong list for this question.
Thanks--really love t5 so far.

Dhanji.

Re: page lifecycle listener

Posted by Howard Lewis Ship <hl...@gmail.com>.
Devise an @InjectGuice annotation and a corresponding
InjectGuiceEnhancementWorker.  Guice is the odd-man out because it
wants to identify the service to inject based on additional
annotations on the field.  I will look into a way to expose that
information inside the Tapestry APIs.

On 3/18/07, Dhanji R. Prasanna <dh...@gmail.com> wrote:
> Hi Howard
>
> Thanks for your reply. I am trying to use Guice to inject t5 pages. The
> service configuration is also giving me some grief--took awhile to realize
> you need to deploy the app as a jar in lib to tomcat. Maybe I should wait
> till the codebase is a bit more mature.
> In the meantime any ideas on how to use guice annotations on t5 pages
> without a t5 @InjectService?
>
> thanks
> Dhanji
>
> On 3/19/07, Howard Lewis Ship <hl...@gmail.com> wrote:
> >
> > There really isn't a facility for that, certainly not without digging
> > into the internals side of Tapestry.  More about your use case?  The
> > normal way to do injection is via the ComponentClassEnhancementWorker
> > service configuration.
> >
> > On 3/15/07, Dhanji R. Prasanna <dh...@gmail.com> wrote:
> > > Hi
> > >
> > > Im playing around with t5--loving it so far. I am interested in finding
> > out
> > > if there is some way I can register a global lifecycle listener for all
> > > pages? Something like @PageAttached but as a global?
> > >
> > > What I am trying to do is run custom injection on a t5 page object.
> > Please
> > > let me know if this is the wrong list for this question.
> > > Thanks--really love t5 so far.
> > >
> > > Dhanji.
> > >
> >
> >
> > --
> > Howard M. Lewis Ship
> > TWD Consulting, Inc.
> > Independent J2EE / Open-Source Java Consultant
> > Creator and PMC Chair, Apache Tapestry
> > Creator, Apache HiveMind
> >
> > Professional Tapestry training, mentoring, support
> > and project work.  http://howardlewisship.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: dev-help@tapestry.apache.org
> >
> >
>


-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: page lifecycle listener

Posted by "Dhanji R. Prasanna" <dh...@gmail.com>.
Hi Howard

Thanks for your reply. I am trying to use Guice to inject t5 pages. The
service configuration is also giving me some grief--took awhile to realize
you need to deploy the app as a jar in lib to tomcat. Maybe I should wait
till the codebase is a bit more mature.
In the meantime any ideas on how to use guice annotations on t5 pages
without a t5 @InjectService?

thanks
Dhanji

On 3/19/07, Howard Lewis Ship <hl...@gmail.com> wrote:
>
> There really isn't a facility for that, certainly not without digging
> into the internals side of Tapestry.  More about your use case?  The
> normal way to do injection is via the ComponentClassEnhancementWorker
> service configuration.
>
> On 3/15/07, Dhanji R. Prasanna <dh...@gmail.com> wrote:
> > Hi
> >
> > Im playing around with t5--loving it so far. I am interested in finding
> out
> > if there is some way I can register a global lifecycle listener for all
> > pages? Something like @PageAttached but as a global?
> >
> > What I am trying to do is run custom injection on a t5 page object.
> Please
> > let me know if this is the wrong list for this question.
> > Thanks--really love t5 so far.
> >
> > Dhanji.
> >
>
>
> --
> Howard M. Lewis Ship
> TWD Consulting, Inc.
> Independent J2EE / Open-Source Java Consultant
> Creator and PMC Chair, Apache Tapestry
> Creator, Apache HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>

Re: page lifecycle listener

Posted by Howard Lewis Ship <hl...@gmail.com>.
There really isn't a facility for that, certainly not without digging
into the internals side of Tapestry.  More about your use case?  The
normal way to do injection is via the ComponentClassEnhancementWorker
service configuration.

On 3/15/07, Dhanji R. Prasanna <dh...@gmail.com> wrote:
> Hi
>
> Im playing around with t5--loving it so far. I am interested in finding out
> if there is some way I can register a global lifecycle listener for all
> pages? Something like @PageAttached but as a global?
>
> What I am trying to do is run custom injection on a t5 page object. Please
> let me know if this is the wrong list for this question.
> Thanks--really love t5 so far.
>
> Dhanji.
>


-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org