This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
how can we control session consistency in a multitabed browsers? I face a problem where my clients work on same JSP page in different tabs, on different data sets. For example they are editing two or more item description pages. Since there is validation of input, forms current data is held in a bean in session until such form is properly filled. There is only one bean per session, so the data between tabs that are submitted multiple times and fail to validate gets all mixed up, inconsistent and one data set fills all tabs of the browser. A lot of input can get lost that way.
Is there something that can be done to that regard?
Why does the user need to be able to fill out the same form in multiple tabs?
I suppose you could use a map to give each tab a key and control things yourself. It seems awkward though. I think it is easier to enforce that the user doesn't use multiple tabs - you could do this with a unique token to make sure all requests come from the generated HTML.
Seam can handle multiple conversations; I assume it's via an embedded key or something (never looked; keep meaning to).
Joined: Sep 16, 2008
I've looked it up, and it seems promising, though I don't think we will be changing/adding new framewrosk to pur project.
Users actualy don't need to be able to fill out multiple forms. That's why we will probably go with a variation of your proposal, using some kind of flag witch form is currently in edit mode and the rest of forms will be in a kind of read only mode.