JSF Multiple Tab Session Scoped Bean
A common problem with JSF apps is that if you have a session scoped bean and you have multiple tabs open, the sessions are shared between all the tabs by default.
If you add the snippet below to your web.xml file, each tab stores it's session information therefore avoiding the common problem of tabs sharing the same session.
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
Written by Tom Caflisch
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Session
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#