You could give both pages a base class (assuming that the app catalog is not an 
appropriate solution) then the base class has the properties and they can be 
referenced by both pages. (note that the pages shouldn't have prop files)

> -----Original Message-----
> From: Stephan Windmüller [mailto:[email protected]]
> Sent: 13 November 2009 12:26
> To: [email protected]
> Subject: Getting I18n messages from another page
> 
> Hello!
> 
> One quick question: Is it possible to retrieve the I18n messages from
> another page? I tried this:
> 
> ---
> 
> class SomePage {
>       private Messages messages;
> 
>       public String getTitle() {
>               return messages.get("title");
>       }
> }
> 
> class AnotherPage {
>       @InjectPage
>       private SomePage somePage;
> 
>       public void printTitle() {
>               System.out.println(somePage.getTitle);
>       }
> }
> 
> 
> ---
> 
> But I always get the title of anotherPage.
> 
> TIA
>  Stephan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to