JSF redirect doesn't work

Posted by user319331 on Stack Overflow See other posts from Stack Overflow or by user319331
Published on 2010-04-17T17:48:07Z Indexed on 2010/04/17 17:53 UTC
Read the original article Hit count: 220

Filed under:

I have a problem with redirecting a page in my JSF application. My navigation rule look like this :

<navigation-rule>
    <from-view-id>/index.xhtml</from-view-id>
    <navigation-case>
        <from-action>#{registerBean.registerUser}</from-action>
        <from-outcome>success</from-outcome>
        <to-view-id>/confirmation.xhtml</to-view-id>
        <redirect/>
    </navigation-case>
</navigation-rule>

In my case the redirect tag doesn't work, the URL remains unchanged, and when I refresh the page the registerUser action is executed again. I just have no idea what I'm doing wrong; I'm not very experienced with JSF. Can anyone please tell why the redirect tag doesn't work? Thanks. (I'm using JSF 2.0 and NetBeans IDE)

© Stack Overflow or respective owner

Related posts about jsf2