i have the same problem but using
jsf 1.2 (mojarra)
jboss seam 2.2
primefaces 1.2 snapshot
i want to do a page-redirect after session timeout (@topic -> the observed error is: ViewExpiredException). so i installed a sessionlistener + sessiontimeoutfilter. next step is to send a redirect like:
httpServletResponse.sendRedirect(httpServletRequest.getContextPath() + "/home.seam");
to send the user to the default loginpage after timeout.
everything is triggered well and works, except i use ajax.
i got a <p:commandButton ...> for example. if it is triggered after sessiontimeout the code above is executed, but since the button got ajax support, there is no redirect made.
if i explicit say <p:commandButton ajax="false" ...> then the redirect works (but.. ajax would be nice to have
in the filter i have no access to the FacesContext so i cant go the way described for jsf 2.0
i also can't use the <exception-handler-factory> (not available in jsf 1.2)
so... is there a way to use the benefits of ajax support + get propperly redirected using jsf 1.2?
(i found a "hack" here.. http://stackoverflow.com/questions/199099/how-to-manage-a-redirect-request-after-a-jquery-ajax-call
but (still? i try to look into that deeper) don't know where to apply it
thanks in advance