I don't think that's possible. If u want to have a common message u
should use the Application Catalog.

On Fri, Nov 13, 2009 at 1:26 PM, Stephan Windmüller
<[email protected]> wrote:
> 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