About persistent page properties: Tapestry is a little bit like a time sharing system. When you code sees a page instance, Tapestry has filled in the persistent properties with values previously stored for your session. It is maintaining the illusion that the page exists just for your session.
The reality is that the page instances are pooled and shared between sessions. There are endless variations, but basically you need to count on the fact that between request cycles, you will get two different page instances. In fact, when (in development mode) you turn caching off, you always get a fresh instance of a page on each request cycle. Your code doesn't know this; it just knows that the parts that count, the persistent page properties, are the same request cycle to request cycle (because those few values are, in fact, stored in the HttpSession between request cycles). ---- Howard Lewis Ship [EMAIL PROTECTED] http://tapestry.sf.net ----- Original Message ----- From: "Tom Davies" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 12, 2002 10:00 PM Subject: Re: [Tapestry-developer] StaleLink Problem > On Sat, 2002-07-13 at 12:25, Howard M. Lewis Ship wrote: > > The problem is that you have to understand a lot about Tapestry to get it to > > work right; other than that, it's fine (speed is not an issue). But the > > concept of repeatable renders (which, in turn, is which properties must be > > persistent so as to re-render the page a second time), it difficult to > > express. > > I use Action extensively, and so far it seems to work, but I'll admit > that I don't understand the finer points of persistent properties -- in > fact I don't even understand why there is a distinction -- is it to do > with a single page instance being used by several sessions? > > How can one use Direct as a substitute for Action? The only way I can > see to do that is to maintain my own Map of keys and listeners. > > Tom > > -- > "Optimism is a duty. The future is open. It is not predetermined. No one > can predict it, except by chance. We all contribute to determining it by > what we do. We are all equally responsible for its success." > Karl Popper > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Tapestry-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/tapestry-developer > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
