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:stephan.windmuel...@cs.tu-dortmund.de] > Sent: 13 November 2009 12:26 > To: users@tapestry.apache.org > 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: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org