partial-response shown instead of html, after refresh html is shown

1.2k views Asked by At

I have implemented the answer of this question: Session timeout and ViewExpiredException handling on JSF/PrimeFaces ajax request

When an AJAX request is done and there is a ViewExpiredException it renders my session expired page, which has a link to go to the login page. But when you login again it shows me this:

<partial-response id="j_id1">
    <changes>
        <update id="j_id1:javax.faces.ViewState:0">
            <![CDATA[ -4163638607746842558:-2237921975175382496 ]]>
        </update>
    </changes>
</partial-response>

When I press F5 the normal HTML content is shown. Why is this happening and how can I solve it?

Edit: To clarify, after logging in it takes me to the same page where the ViewExpiredException occurred.

0

There are 0 answers