title: Handling ViewExpiredException (JSF 2.1, Seam2 , Primefaces 3.4.1, Omnifaces 1.3)
body: <p>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.</p>
  
  <p>Here you can see a full explanation of my problem I post in primefaces forum:
  <a href="http://forum.primefaces.org/viewtopic.php?f=3&amp;t=28215" rel="nofollow">http://forum.primefaces.org/viewtopic.php?f=3&amp;t=28215</a></p>
  
  <p>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.</p>
  
  <p>I add this to my faces-config.xml:</p>
  
  <pre><code>&lt;application&gt;
  &lt;...&gt;
  &lt;resource-handler&gt;org.omnifaces.resourcehandler.CombinedResourceHandler&lt;/resource-handler&gt; 
  &lt;...&gt;
  &lt;/application&gt;
  
  
  &lt;factory&gt;
  &lt;render-kit-factory&gt;org.omnifaces.renderkit.Html5RenderKitFactory&lt;/render-kit-factory&gt;
  &lt;exception-handler-factory&gt;org.omnifaces.exceptionhandler.FullAjaxExceptionHandlerFactory&lt;/exception-handler-factory&gt;
  &lt;/factory&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p>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): <a href="http://img831.imageshack.us/img831/7459/pic4w.png" rel="nofollow">http://img831.imageshack.us/img831/7459/pic4w.png</a></p>
  
  <p>Thanks in advance</p>