Thank you for the suggestion ! What I described in my last post works in version 3.0.1.
Instead of specifying the page title in the page specification, I have moved it to the page properties. And now I can retrieve the page title from the page properties in my border's finishLoad method. Shing --- "Muralidhar Y." <[EMAIL PROTECTED]> wrote: > Hi actually in loading phase only page loading is > done. At component level > too only loading is done. Their bindings are not > set. Try to move that from > finshLoad() to prepareForRender() and see.And also > you said it is working in > tapestry 3 do you mean that version is 3.0.3 or > prior version. > > > > > Muralidhar Y > Software Engineer, > Adastrum technologies-Nikai groups, > EmiratesGroup-I.T Division, > Dubai, UAE. > Mobile : 00971-50-2256149. > http://www.adastrumtech.com > http://www.mercator.aero > (Keep Smiling. Be happy All The Time.) > > -----Original Message----- > From: Shing Hing Man [mailto:[EMAIL PROTECTED] > Sent: 01 October 2005 06:38 > To: tapestry Tapestry > Subject: Accessing page property from component > (Tapestry 4) > > I am converting one of my Tapestry 3 application to > Tapestry 4 and run into > following problem. > > In all my page specification, I have a property for > the page title : > > <property name="pageTitle" > initial-value="literal:Welcome" /> > > > In the Java class of my border component, I try to > retrieve the pageTitle > property in finishLoad method : > > public void finishLoad(){ > > BasePage page = (BasePage) getPage(); > > String title = > page.getSpecification().getProperty("pageTitle"); > // do something with title > } > > But page.getSpecification().getProperty("pageTitle") > always return null. > This works in Tapestry 3. > > It would be appreciated if someone could point out > my mistake. > > Thanks ! > > Shing > > > > > Home page : > http://uk.geocities.com/matmsh/index.html > > > > > > ___________________________________________________________ > Yahoo! Messenger - NEW crystal clear PC to PC > calling worldwide with > voicemail http://uk.messenger.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > Home page : http://uk.geocities.com/matmsh/index.html ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
