The session. Because the property exp is used when you ask for the value

On 1/21/08, Martijn Lindhout <[EMAIL PROTECTED]> wrote:
> you're right. It contains a shoppingcart. What is stored in the
> propertymodel, the session? Or the result of evaluating the expression
> s.cart -> session.getCart().
>
> And if the session isn't thread safe, where do I store my temporal data?
>
> 2008/1/21, Johan Compagner <[EMAIL PROTECTED]>:
> >
> > What would you like to detach?
> > What is inside that card object? I guess thats a temp storage object
> > of shopping items?
> >
> > Do remenber that getting the card object from the session isnt thread
> > safe! (mutating it can be done from more then one thread if different
> > pagemaps and so on are used)
> >
> > On 1/21/08, Martijn Lindhout <[EMAIL PROTECTED]> wrote:
> > > Hi all,
> > >
> > > I wonder if this will work:
> > >
> > > add(new CartPanel("cart", new PropertyModel(s, "cart")));
> > >
> > > where 's' is my app specific session, containing the method getCart()
> > which
> > > checks the session for an existing cart, and if not found creates one.
> > >
> > > Is this enough to handle load/detach? Or do I have to write my own
> > > LoadableModel....
> > >
> > > --
> > > Martijn Lindhout
> > > JointEffort IT Services
> > > http://www.jointeffort.nl
> > > [EMAIL PROTECTED]
> > > +31 (0)6 18 47 25 29
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Martijn Lindhout
> JointEffort IT Services
> http://www.jointeffort.nl
> [EMAIL PROTECTED]
> +31 (0)6 18 47 25 29
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to