Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Daniel Alonso Sanchez
Sven Homburg wrote: > > look for that, that should helps you > http://pastebin.com/f2a26b195 > > - > best regards > Sven > Thanks a lot again, Sven. Your help is very much aprecciated ;D. The Proxy in my lan is deniying me of accessing to that link, so i will check it when i arrive at h

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Sven Homburg
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 > >>

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Daniel Alonso Sanchez
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("hibernateexcept

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Sven Homburg
>Basicly in all your applications classes that get "enhanced" by Tapestry IOC. thats not right the @Inject annotation only works in components, pages and mixins 2008/8/21 Andy Pahne <[EMAIL PROTECTED]> > > Thanks a lot for your response, but the problem still remains :-((. I have >> insert this

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Andy Pahne
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" obje

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Sven Homburg
the MessagesBean class dont looks like a tapestry component, if so, you cant inject via the @Inject annotation 2008/8/21 Daniel Alonso Sanchez <[EMAIL PROTECTED]> > > Hi again to everybody, sorry for dsiturbing again, but i have spent at > least > two hours reading the docs, wiki, Tapestry in Act

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Daniel Alonso Sanchez
Andy Pahne-3 wrote: > > > First of all you inject ComponentResources: > > @Inject > private ComponentResources resources; > > > Then, you can do this: > > String message = resources.getMessages().get("some-message"); > > > I am not aware if you can inject Messages directly,

Re: [t5] Use messages from app.properties in java classes

2008-08-21 Thread Andy Pahne
First of all you inject ComponentResources: @Inject private ComponentResources resources; Then, you can do this: String message = resources.getMessages().get("some-message"); I am not aware if you can inject Messages directly, but I would not be surprised if you could somehow.