Page 2 of 2

Re: Primefaces AjaxErrorHandler

Posted: 17 Oct 2012, 00:24
by smithh032772
Oleg wrote:I don't use pe:ajaxErrorHandler in my apps. I use error handler from OmniFaces. I will ping our team member that implemented pe:ajaxErrorHandler. Maybe he can tell you more than we.
Smiling... interesting response Oleg. Same here. I really like the GUI of pe:ajaxErrorHandler, but currently using OmniFaces. Now that I'm using PrimeFaces Extensions, trust/believe me... pe:ajaxErrorHandler is very very tempting! :)

Re: Primefaces AjaxErrorHandler

Posted: 17 Oct 2012, 00:28
by smithh032772
Nozi wrote:I also tried PhaseListener and my own ViewExceptionHandler. Both solutions don't work when Session on jboss expires. What is more importantly, pe:AjaxErrorHandler or my own ViewExceptionHandler are never actually be called when its AJAX request.
There was another/older topic in PrimeFaces Core that discussed this, maybe 4 to 6 pages long. Anyway, I used a combination of things I learned from BalusC on stackoverflow.com (LoginFilter and session timeout in header meta tag that forwards to login or viewExpired page), and this works perfectly for me. Also, I have many many non-AJAX commandLink/Buttons so enduser will will not complain that i got timed out 2 hrs after i logged in.