I´m capturing the viewExpiredException this way in pages.xml
<exception class="javax.faces.application.ViewExpiredException">
<redirect view-id="/error.xhtml">
<message>#{messages['ViewExpiredException']}</message>
</redirect>
</exception>
and on the other hand I have this event in my components.xml
<event type="org.jboss.seam.security.loginSuccessful">
<action execute="#{redirect.returnToCapturedView}"/>
</event>
All my pages have login required :
<page login-required="true" view-id="/home.xhtml">
<page/>
All works fine with a full postback request but with an ajax request, after the login page, i was redirect to a xml page :
Aucune information de style ne semble associée à ce fichier XML. L'arbre du document est affiché ci-dessous.
<partial-response>
<error>
<error-name>class javax.faces.application.ViewExpiredException</error-name>
<error-message>viewId:/subject.seam - La vue «/subject.seam» n’a pas pu être restaurée</error-message>
</error>
</partial-response>
How I can fix the problem? thanks for help. My configuration project : seam 2.3 final, jsf 2.1, primefaces 3.4 and jbossas7.0.2