4 Replies Latest reply on Mar 17, 2010 2:11 PM by xzerolin

    A question about the Conversation Context

    xzerolin

      I want to know whether it is possible to occur http session conflict in seam. If not, what cause this kind of thing, is it because of the temporary conversation?
      merci beaucoup!

        • 1. Re: A question about the Conversation Context
          amitev

          What kind of thing?

          • 2. Re: A question about the Conversation Context
            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

              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

                After read the subsequence of the book I have a new understanding of seam and thank you for your answer