OK, thanks for the info Igor. I guess the idea is that Pages themselves are considered to be disposable (unless a reference is passed around) and if their "state" is important, any underlying model(s) should be maintained by the app and used to set the Page's components' model state, as appropriate, when the page is revisited. It just seems a bit unintuitive that a new instance of the Page is created by default (if the reference to the original instance is not passed around) even though there is possibly an instance/instances already sitting in the PageMap, just waiting to be evicted - I expect there is some stuff going on to encourage this Wicket design decision that I haven't totally appreciated yet.
igor.vaynberg wrote: > > pagamap is mostly an internal construct. you are not meant to pull pages > out > of it yourself. > > best thing is to pass references around. if you dont want to then keep a > list of previously used pages in session yourself. you should rather even > keep references to page.getpagemapentry() which is what pagemap keeps, > that > way when serialized if the page is in the pagemap and in your list it will > not be serialized twice so there wont be any memory overhead. > > -igor > > > On 6/20/07, howzat <[EMAIL PROTECTED]> wrote: >> >> >> There is indeed a little bit of info in the javadoc (but on the Page >> class). >> Is there something more you can help with to below questions? >> >> howzat wrote: >> > >> > I didn't find anything to read describing how and when to use PageMap >> and >> > how it works? >> > Are there any examples showing what can be done with it? >> > If I have a page that has some user input, and I don't want to pass a >> > reference to that page to all other pages the user may navigate to >> before >> > returning to complete her input (on the original page/instance), would >> a >> > PageMap be something to look at? >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/PageMap-single-instance-of-a-user-input-page-to-remember-input-tf3949400.html#a11212831 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/PageMap-single-instance-of-a-user-input-page-to-remember-input-tf3949400.html#a11219560 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user