Thanks a lot, I was exactly looking for it but for some reason I igonored
that annotation

PS I hoped  the order was as you wrote but I had to use
resources.getContainerMessages() instead


Shing Hing Man wrote:
> 
> Have you tried the following ?
> 
>    @Inject
>       private ComponentResources resources;
>       resources.getMessages().get("keyInPropertiesFile")
> 
> I think Tapestry search the .properties file in the 
> following order.
> 1) the component .properties
> 2) The page, which contains the component,
> .properties.
> 3) The application .properties.
> 
> Shing 
> 
> 
> --- ra <[EMAIL PROTECTED]> wrote:
> 
>> 
>> Yes, of course, but that case is not described and I
>> don't know t5 internals
>> I think I've to inject kind of message provider to
>> get message bundle by
>> page name
>> 
>> 
>> 
>> Shing Hing Man wrote:
>> > 
>> > Have you checked out 
>> >
>>
> http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
>> > ? 
>> > Shing
>> > 
>> > --- ra <[EMAIL PROTECTED]> wrote:
>> > 
>> >> 
>> >> how to load messages for the specific page in a
>> >> component ?
>> >> I've a kind of border component used by many
>> pages
>> >> and would like get for
>> >> example page-label value which is defined for
>> each
>> >> page in its bundle
>> >> -- 
>> >> View this message in context:
>> >>
>> >
>>
> http://www.nabble.com/t5-how-to-load-messages-tf4254673.html#a12108897
>> >> Sent from the Tapestry - User mailing list
>> archive
>> >> at Nabble.com.
>> >> 
>> >> 
>> >>
>> >
>>
> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail:
>> >> [EMAIL PROTECTED]
>> >> For additional commands, e-mail:
>> >> [EMAIL PROTECTED]
>> >> 
>> >> 
>> > 
>> > 
>> > Home page : http://www.lombok.demon.co.uk/
>> > 
>> > 
>> > 
>> >      
>>
> ___________________________________________________________
>> > Yahoo! Answers - Got a question? Someone out there
>> knows the answer. Try
>> > it
>> > now.
>> > http://uk.answers.yahoo.com/ 
>> > 
>> >
>>
> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> > For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/t5-how-to-load-messages-tf4254673.html#a12109529
>> Sent from the Tapestry - User mailing list archive
>> at Nabble.com.
>> 
>> 
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> 
>> 
> 
> 
> Home page : http://www.lombok.demon.co.uk/
> 
> 
> 
>       ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try
> it
> now.
> http://uk.answers.yahoo.com/ 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5-how-to-load-messages-tf4254673.html#a12112450
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to