• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session inconsistencies

 
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

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?
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Martin,
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.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seam can handle multiple conversations; I assume it's via an embedded key or something (never looked; keep meaning to).
 
Martin Vanyavchich
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@David
I've looked it up, and it seems promising, though I don't think we will be changing/adding new framewrosk to pur project.

@Jeanne
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.

Thank you both for your thoughts.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I wasn't suggested you *use* Seam, I was suggesting you use its technique for managing multiple conversations.
 
Water! People swim in water! Even tiny ads swim in water:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic