Yes in 3.0. No in 4.0. On 7/20/05, Patrick Casey <[EMAIL PROTECTED]> wrote: > > Can't he use concrete properties and just use > Tapestry.fireObservedChange(<Page>, <Property>) in his set method? At one > point that's how I was doing persistence on one of my apps and I never had > any problems with it. > > http://jakarta.apache.org/tapestry/3.0.3/doc/TapestryUsersGuide/state.manual > -page-properties.html > > --- Pat > > > -----Original Message----- > > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, July 20, 2005 6:17 AM > > To: Tapestry users > > Subject: Re: Strange timeout behavior > > > > You are not making your properties abstract; you are therefore having > > problems because user data is stored in properties of pages (stored > > within the page pool), not within the HttpSession as they should be. > > > > When the pages are culled from the page pool, you lose your server side > > data. > > > > You MUST use abstract accessor methods and mark the properties as > > persistent. Only in this way will properties be stored into the > > HttpSession. This can be done in 3.0 using XML and in 4.0 using > > annotations (or XML). > > > > The fact that your application works at all in development is a > > feature. It will neither scale to more users on a single server, or > > work in properly in a cluster. > > > > Not a single example piece of code in TiA or in the Quick Start > > tutorial tries to do such an "end run" around Tapestry. Do so at your > > own peril. > > > > The only times I don't use abstract properties is when I want to cache > > an expensive object that is not client- or request- dependent. For > > example, I may cache an IPropertySelection model, lazily creating it > > as necessary. > > > > > > On 7/18/05, Edward Scanzano <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > > > I have a situtation where my application runs normally > > > as I click through it. Parameters are being passed to > > > components correctly, etc. However, if I let the > > > application sit idle for a short time (maybe 10 > > > minutes, not sure of the exact time) then when I click > > > on those same links I get exceptions that are caused > > > by component parameters being null. The session has > > > not timed out yet. > > > > > > What is causing this? > > > > > > Thanks > > > E > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Howard M. Lewis Ship > > Independent J2EE / Open-Source Java Consultant > > Creator, Jakarta Tapestry > > Creator, Jakarta HiveMind > > > > Professional Tapestry training, mentoring, support > > and project work. http://howardlewisship.com > > > > --------------------------------------------------------------------- > > 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] > >
-- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Jakarta Tapestry Creator, Jakarta HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
