I am having terrible problems trying to handle ViewexpiredException correctly using the frameworks JSF 2.1, Seam 2.3, Primefaces 3.4.1, Omnifaces 1.3.
Here you can see a full explanation of my problem I post in primefaces forum: http://forum.primefaces.org/viewtopic.php?f=3&t=28215
In this post I was told to try omnifaces (which I am trying to do now). So I configure it (not sure if correctly) in my project.
I add this to my faces-config.xml:
<application>
<...>
<resource-handler>org.omnifaces.resourcehandler.CombinedResourceHandler</resource-handler>
<...>
</application>
<factory>
<render-kit-factory>org.omnifaces.renderkit.Html5RenderKitFactory</render-kit-factory>
<exception-handler-factory>org.omnifaces.exceptionhandler.FullAjaxExceptionHandlerFactory</exception-handler-factory>
</factory>
Everything seems to work, the FullAjaxExceptionHandlerFactory seems to try to handle the expcetion and try to redirect to login page (see my last post on the primefaces forum) but the app gets frozen and nothing really happend, I am not quite sure if I made a mistake or something.
I've try almost every solution I found on the internet nothing seems to work for me, when something seems to work I get this page after a login (which I was redirect cause the session tomeout): http://img831.imageshack.us/img831/7459/pic4w.png
Thanks in advance