OOOOO.... that sounds *VERY* nice. I must say having to manually manage page state was something that struck me as odd when I first hit Tapestry (coming from WO). I just saw having to repeately fireObservedChange and set the var to a default value in detach(). I came around to the Page pool idea after a while, but this takes it to a whole new level. One place, one declaration, no "code".
Very nice... I await with great anticipation.... Craig On Thu, 2002-12-12 at 04:46, [EMAIL PROTECTED] wrote: > We're looking to make it very easy for first time. > > Planned for 2.4 is a feature where, in your specification you say something > like: > > <persistent-property name="pageNumber"/> > > And Tapestry does the rest. > > -- > [EMAIL PROTECTED] > > http://tapestry.sf.net > > Yes, it works, thanks for great helps (it's a wow, only 1 day, after > > seeking way to solve my problem for couple weeks ;)) > > and now i understand what fireObservedChange() does. > > > > Tapestry : Hard for firsttime, easy when everyone help.... ;) > > > > Regards > > > > Edy Toha > > > > Howard M. Lewis Ship wrote: > > > You need to make the currentPage property a persistant property. > > > > > > Invoke fireObservedChange() from its setter method. > > > > > > Clear it out in detach(). Alternately, implement an initialize(). See the > > > JavaDoc for more details. > > > > > > Tapestry stores persistent properties between request cycles within the > > > user's HttpSession. When the page is next accessed, the properties are > > > restored. > > > > > > ----- Original Message ----- > > > From: "Edy Toha" <[EMAIL PROTECTED]> > > > To: "Malcolm Edgar" <[EMAIL PROTECTED]>; "tapestry-developer" > > > <[EMAIL PROTECTED]> > > > Sent: Wednesday, December 11, 2002 2:14 AM > > > Subject: Re: [Tapestry-developer] Cache problem > > > > > > > > > > > >>Malcom, > > >> > > >>I have this : > > >> > > >> > > >>private int _currentPage = 1; > > >>private int _resultCount; > > >>private int _pageCount; > > >> > > >>public void detach(){ > > >> // _currentPage = 1; > > >> // _resultCount= 0; > > >> // _pageCount=0; > > >> super.detach(); > > >>} > > >> > > >>I can't set _currentPage to 1 in detach() because when I click to next > > >>page, it will goes to the page 1. > > >>I took some code from vlib, the differences that vlib uses 'Browser' > > >>component, and I take some browser code without component. > > >> > > >>Is there another way? or should I code just like vlib? > > >> > > >>Thanks > > >> > > >>Regards > > >> > > >>Edy Toha > > >> > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Tapestry-developer mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/tapestry-developer > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Tapestry-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/tapestry-developer ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
