Partial AJAX calls don't handle container session timeouts

UI Components for JSF
Post Reply
rodakr
Posts: 36
Joined: 17 Mar 2011, 00:50
Location: switzerland

12 Aug 2011, 22:53

I don't see the Point to handle Session Expired on Client Side for any possible Ajax components after Session is gone on server side...
When Session is gone, all states are gone. Game Over you need new Session given from Server side!

How it is implemented on Server Side is just question of preferences.
But I just would like to define what shoud hapen in one places. Using web.xml sound logic to me because you can use it allready to define what shoud happen on given HTTP Error Code.

And I'm not shure if it is possible to force browser to navigate to other URL from Ajax Request directly....probably some javascript hack will be needed..
Even primefaces doesn't support navigation from Ajax....
OSX 10.6.x , Fedora 14, XBuntu 10.x , majora 2.x, primefaces 3.0-snapshot, Tomcat 7.x , weblogic server 11.x, jboss 7.x , glassfish 3.x

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

13 Aug 2011, 10:35

@rodakr There are also other exceptions which can be handled on client side, it's not juse ViewExpired
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

rodakr
Posts: 36
Joined: 17 Mar 2011, 00:50
Location: switzerland

15 Aug 2011, 13:24

Can you provider one sinful example of other exception you would like to handel on client side...
OSX 10.6.x , Fedora 14, XBuntu 10.x , majora 2.x, primefaces 3.0-snapshot, Tomcat 7.x , weblogic server 11.x, jboss 7.x , glassfish 3.x

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

16 Aug 2011, 09:03

maybe for all unexpected exceptions...
i like the idea of a user friendly redirect or reload on error with dialog or else.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

rodakr
Posts: 36
Joined: 17 Mar 2011, 00:50
Location: switzerland

16 Aug 2011, 10:27

this means.... you would like to handel it for each single component which could get the exception..., on all pages ... when unexpected Exception happens :D
OSX 10.6.x , Fedora 14, XBuntu 10.x , majora 2.x, primefaces 3.0-snapshot, Tomcat 7.x , weblogic server 11.x, jboss 7.x , glassfish 3.x

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

16 Aug 2011, 14:46

my proposal (on page 2) could register an global error handler on your template... you could create an global error dialog which could be useful... IMO it's better to open an dialog with an error message and an reload button or else then redirect within an exceptionhandler...
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Matrium
Posts: 112
Joined: 16 May 2011, 08:27

16 Sep 2011, 13:38

any news on this topic? (maybe i missed something)
PrimeFaces (Elite) 4.0.13, Majorra 2.1.28, Tomcat 7.0.53
Testing with Firefox, Chrome and IE9+IE10
<3 Primefaces!!!

dehlers1000
Posts: 34
Joined: 09 Feb 2011, 20:44

26 Jan 2012, 05:49

I have been searching all over the internet and there are still no good solutions for primefaces to handle session timeout. There are great new components being added but this important issue still does not appear to be solved. Icefaces handles session timouts automatically which is nice and most others do also. I also would like a simple tag that can be placed in a global facelets template to redirect or any other simple solution. It is amazing that this important issue has not been addressed. I can't even find a working example for a global redirect solution. I have to use a idlemonitor to invalidate the session before it expires and popup a dialog that states the page is expired. If the server is rebooted, the session will expired and when a user clicks on any ajax components it will be frozen. Primefaces is the most intelligent web development framework I have ever seen for Java but it lacks a session timeout mechanism.

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

26 Jan 2012, 06:27

I would like to see the same, so I created a NEW FEATURE request in PrimeFaces Issue Tracker. Please go to this issue in issue tracker, click Star and vote for it, and receive email updates about this issue.

Issue 3397
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

26 Jan 2012, 13:41

There already was an feature request...
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests