Instance Variables in Web Page of Wicket Portlet

2008-08-25 Thread prabha77

Hi All,

If instance variables are defined in a subclass of WebPage, would they be
thread-safe?  For convenience, we're passing a reference to the parent page
to it's child components.  We are seeing these instance variables
overwritten by other users and then those changes are reflected in the
original user's session.  Is it incorrect to define any instance variables
in a WebPage?

Thanks
Prabhu
-- 
View this message in context: 
http://www.nabble.com/Instance-Variables-in-Web-Page-of-Wicket-Portlet-tp19151581p19151581.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Instance Variables in Web Page of Wicket Portlet

2008-08-31 Thread Timo Rantalaiho
On Mon, 25 Aug 2008, prabha77 wrote:
> If instance variables are defined in a subclass of WebPage, would they be
> thread-safe?  For convenience, we're passing a reference to the parent page
> to it's child components.  We are seeing these instance variables
> overwritten by other users and then those changes are reflected in the
> original user's session.  Is it incorrect to define any instance variables
> in a WebPage?

I don't know about portlets, but normally the Component
(including (Web)Page) instances should be specific to a
session. So this sounds like strange.

Recently some session leakage problems have come up on the
mailing list, and something was fixed in version 1.3.4. You
might want to search the mailing list to find the whole
discussion.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

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