-
1. Re: A question about the Conversation Context
amitev Mar 16, 2010 3:34 PM (in response to xzerolin)What kind of thing?
-
2. Re: A question about the Conversation Context
xzerolin Mar 17, 2010 2:29 AM (in response to xzerolin)as described in the book
Seam Action
:Consider the case in which the session is used to store the golf course entity instance while the record is being updated in an editor. If you select a course to be edited in one browser tab (or window) and then select a different course to be edited in another browser tab, when you click Save in the first tab, you may inadvertently apply the changes to the wrong course instance. Things get even tricker if you are working with a multi-page wizard, since the leakage of data can be less apparent. It's possible to work around these problems by using the session carefully or putting in extra validation checks to ensure that cross-tab leakage is not occurring, but that is more of a burden on you as a developer.
Could the upper sence happen in seam,if not,what's the reason.
Thanks
-
3. Re: A question about the Conversation Context
jethroborsje.j.borsje.dji.minjus.nl Mar 17, 2010 9:06 AM (in response to xzerolin)The idea behing Seam is that such a thing doesn't happen. Seam uses
conversations
which are actively destroyed when the conversation ends, either via a call to a method with the @End annotation or via a timeout. The timeout can be configured in the components.xml file. -
4. Re: A question about the Conversation Context
xzerolin Mar 17, 2010 2:11 PM (in response to xzerolin)After read the subsequence of the book I have a new understanding of seam and thank you for your answer