Hi Guys,

I have a problem in using SessionState.

Here is the thing:
@SessionState
private Sales salesItem;

@SessionState
private SalesSessionInfo ssi;

SalesSessionInfo contains a list of Sales objects. However, every time when
I add the updated salesItem to ssi, it seems that the last element in the
Sales list of ssi is pointed the salesItem.

For example, I add salesItem A to ssi, then I have
[A] 
Add B, I got
[B, B]
Add C, I got
[B, C, C]

This is really weird. If I change salesItem back to like @property, it works
fine in adding, but not work for my purpose. I know SessionState is differed
by class, but in my case should I be OK?

Does anyone knows what I am missing in using SesstionState?

Regards,
Leo

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/SessionState-problem-tp4873622p4873622.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to