look for that, that should helps you
http://pastebin.com/f2a26b195

2008/8/21 Daniel Alonso Sanchez <[EMAIL PROTECTED]>

>
>
>
> Andy Pahne-3 wrote:
> >
> >
> >> Thanks a lot for your response, but the problem still remains :-((. I
> >> have
> >> insert this code
> >> ---------
> >> @Inject
> >>     private ComponentResources resources;
> >> ------------
> >>
> >>
> >> and
> >>
> >> -------------
> >> resources.getMessages().get("hibernateexception");
> >> ------------
> >>
> >> but i get a null value for "resources" object. Am i missing something in
> >> AppModule.java?
> >>
> >
> > This works in component classes, pages and mixins. Basicly in all your
> > applications classes that get "enhanced" by Tapestry IOC.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> Thanks, Sven. I think that is my problem. I inject the Resource in a class
> that is not a page, nor a component or mixin. Maybe is that, isn't it?
>
> Now the key is how i can do what i need... I will give a hard thought.
>
> Thanks a lot
>
> --
> View this message in context:
> http://www.nabble.com/-t5--Use-messages-from-app.properties-in-java-classes-tp19085534p19086406.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
with regards
Sven Homburg
http://www.chenillekit.org
http://tapestry5-components.googlecode.com

Reply via email to