Hi, Would it not be easier to simply inject ComponentResources in your component class and use it for current page?
-- Chris On Mon, Dec 31, 2012 at 12:26 PM, fmaylinch <ferranmayli...@gmail.com>wrote: > Hello, > > This might be a stupid question but... can we access the page object from > the template (to pass it to a component, for example). Now we define a > getPage method: > > // MyPage.java > class MyPage { > public MyPage getPage() { > return this; > } > } > > // MyPage.tml > <t:myComponent t:page="page"/> > > Can we do something like this to avoid defining the getPage() method? > > // MyPage.tml > <t:myComponent t:page="this"/> > > > Thanks! > Ferran > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Access-this-page-object-from-the-template-tp5719073.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >