You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andrea Chiumenti <ki...@gmail.com> on 2009/03/04 19:13:34 UTC
Services injection and decoration problems
Hello,
I'm trying to integrate dojo into Tapestry5
For this purpose I've crated a DojoPage annotation that handels dojo
initializations script and then I've decorated
PageMarkupRenderer renderPageMarkup method, and this works.
I'm finding the next step more difficult also because I'm new to T5.
What I need is do create a DojoRequire annotation for components and pages.
Then I don't know how and where to inspect component and page classes
for this annotation.
I've tried to
@Inject
public ComponentResources componentResources;
unfortunately this doesn't work inside my decorator work because it's
per-thread... I think.
So I'd appreciate any help very much.
Thanks in advance,
Andrea Chiumenti
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Services injection and decoration problems
Posted by Andrea Chiumenti <ki...@gmail.com>.
Thank you, this solves a lot of things
kiuma
On Wed, Mar 4, 2009 at 7:36 PM, Thiago H. de Paula Figueiredo
<th...@gmail.com> wrote:
> Em Wed, 04 Mar 2009 15:13:34 -0300, Andrea Chiumenti <ki...@gmail.com>
> escreveu:
>
>> What I need is do create a DojoRequire annotation for components and
>> pages.
>
> Wouldn't a mixin be a better way to do that? You can inject the component
> using @InjectContainer.
>
>> Then I don't know how and where to inspect component and page classes
>> for this annotation.
>
> Again, a mixin is very likely to be what you need.
>
>>
>> I've tried to
>> @Inject
>> public ComponentResources componentResources;
>
> ComponentResources is not a Tapestry-IoC service, so you can't inject it in
> your service. It is specially handled by Tapestry.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
>
> ---------------------------------------------------------------------
> 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: Services injection and decoration problems
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Wed, 04 Mar 2009 15:13:34 -0300, Andrea Chiumenti <ki...@gmail.com>
escreveu:
> What I need is do create a DojoRequire annotation for components and
> pages.
Wouldn't a mixin be a better way to do that? You can inject the component
using @InjectContainer.
> Then I don't know how and where to inspect component and page classes
> for this annotation.
Again, a mixin is very likely to be what you need.
>
> I've tried to
> @Inject
> public ComponentResources componentResources;
ComponentResources is not a Tapestry-IoC service, so you can't inject it
in your service. It is specially handled by Tapestry.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org