Maybe stupid question but what is difference between detach and pageDetach? What should I use in Page?
tomas 2005/9/15, Joe Trewin <[EMAIL PROTECTED]>: > Had a similar problem, where we have id's being posted back into a > component or page from a form that are used to look up and prepare some > data for elements within the page. > > We now do this by a bit of lazy initialisation in the accessors and by > then implementing the pageDetach method (and implementing > PageDetachListener) so that we can clean up anything we've lazily > initialised when the page/component render ends. > > -----Original Message----- > From: Nick Stuart [mailto:[EMAIL PROTECTED] > Sent: 14 September 2005 22:30 > To: Tapestry users > Subject: Persistent properties and components > > I swear I've run into this before, but can seem to find it in the > archives. All I want to do is to set some persistent properties up that > rely on the parameters coming into the component. I can't do it in > pageBeginRender because the parameters have been set yet. > > And apparently I can't do it in prepareForRender either. When I try to > set the property I get a nice message stating: > Persistent properties may only be changed prior to the rendering of the > response page. > > Well, I'm trying to set it before rendering!! Hence the 'prepareFor'. > So what gives here? How do I set up persistent properties that rely on > parameters being passed into the component? > > thanks for the help! > -Nick > > --------------------------------------------------------------------- > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
