Primefaces AjaxErrorHandler

Community Driven Extensions Project
smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

17 Oct 2012, 00:24

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! :)
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

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

17 Oct 2012, 00:28

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

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest