Persist=session will persist the property for the current user's session. It won't be shared across sessions. Persist=session will do the trick nicely for you.
Robert Mazhar, Osman (Home Office) wrote: > OK - that was very helpful. It's a new instance of pageA at the time > listernerA is fired. > > But now if I declare that parameter as persist="session" would it not make > that parameter common for all requests (i.e. for all users)? > > If that is correct, then the only other option would be persist="client" > which would require cookies enabled on the browser - correct? > > -----Original Message----- > From: Patrick Casey [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 04, 2006 12:19 AM > To: 'Tapestry users' > Subject: RE: passing parameters between pages > > > How are you getting into the listener of page A? Usually a listener > method gets called in response to a user submission e.g. > > Page Zed is up. > User pushes button/link. > ListenerZed fires. > You push parameters into page A. > Page A renders. > User pushes button/link. > ListenerA fires. *** > > At the point marked with an asterix, Page A isn't the same page A > that you pushed parameters into. It's a fresh instanace of page A, all nice > and shiny from the page pool. If you want a parameter that you set during > render to be available in subsequent listener methods, you have to declare > the parameter persistent. > > --- Pat > > >>-----Original Message----- >>From: Mazhar, Osman (Home Office) [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, January 03, 2006 7:57 PM >>To: Tapestry users >>Subject: passing parameters between pages >> >>I am trying to pass parameters between 2 tapestry pages as follows: >> >> >> >>PageA pageA = (PageA) cycle.getPage("PageA"); >> >>pageA.setMyParam(myParam); >> >>cycle.activate(pageA); >> >> >> >>However, the myParam parameter is always null when I try to access it in >>the >>listener method of the form of pageA. >> >> >> >>I also have the following defined in my page spec: >> >> >> >><property name="myParam"/> >> >> >> >>With abstract getter/setter methods for the above property. >> >> >> >>What am I missing here? >> >> >> >>Osman Mazhar >> >>Sr Technical Architect >> >>The Leukemia & Lymphoma Society >> >>1311 Mamaroneck Avenue >> >>White Plains, NY 10605 >> >>914-821-8210 >> >> >> >> >> >> >> >>NOTICE: This message, including all attachments transmitted with it, is >>for >>the use of the addressee only. It may contain proprietary, confidential >>and/or legally privileged information. No confidentiality or privilege is >>waived or lost by any mistransmission. If you are not the intended >>recipient, you must not, directly or indirectly, use, disclose, >>distribute, >>print or copy any part of this message. If you believe you have received >>this message in error, please delete it and all copies of it from your >>system and notify the sender immediately by reply e-mail. Thank you. >>REF#38293.51942 >> >> >>______________________________________________________________________ >>This e-mail has been scanned by The Leukemia & Lymphoma Society Managed >>Email Content Service, provided by MCI and Message Labs. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > NOTICE: This message, including all attachments transmitted with it, is for > the use of the addressee only. It may contain proprietary, confidential > and/or legally privileged information. No confidentiality or privilege is > waived or lost by any mistransmission. If you are not the intended > recipient, you must not, directly or indirectly, use, disclose, distribute, > print or copy any part of this message. If you believe you have received > this message in error, please delete it and all copies of it from your > system and notify the sender immediately by reply e-mail. Thank you. > REF#38293.51942 > > ______________________________________________________________________ > This e-mail has been scanned by The Leukemia & Lymphoma Society Managed Email > Content Service, provided by MCI and Message Labs. > > --------------------------------------------------------------------- > 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]
