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]
