Eelco Hillenius wrote: > >> How would i go about fetching a page (so as to access an attirbute within >> it >> e.g. LoginPage with userId in it) > > You don't. Keep pages and components for representing your user > interface, and work with regular objects to carry your 'business > state'. > > I GET your point, but what about scenarios where one has regular objects > (e.g. Person) mapped as a model using CompoundPropertyModel on a page, > wouldnt it be reasonable to access/use the same object (which would > already be stored in session since its part of the page)..rather than > storing it seperately ? to access it at other pages.. > >> which wicket by default stores in pageMap >> (which in turn is stored in Session). I mean i think it wouldn't be a >> good >> idea to store something in a session (even if its frequenly >> accessed/used) >> given that is already being kept in session...like attributes on >> every-page. > > You typically don't store anything in the session directly, unless it > is something you'll readily want to have available throughout (like a > User object that represents the currently logged in user). > > WELL i feel like there could be a lot of scenarios where one might need to > store things in session, just for the sake of example..like a cart in case > of a shopping-cart app (i know there can be other means to achieve the > same)..similarly there could be various other scenarios, just wondering if > there is a specific reason (with respect to wicket..) because of which u > are saying that one shouldnt store anything in the session ? > > Take a look at for instance wicket-phonebook > (http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-phonebook) > for a more 'real life' example of what an application with Wicket can > look like. And/ or buy this book: http://www.manning.com/dashorst/ :-) > > CERTAINLY plan to...thanks > > Eelco > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > >
-- View this message in context: http://www.nabble.com/Accessing-PageMap---tf4668934.html#a13338269 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
