Search code examples
jsfjsf-2icefaces

Redirect does not work anymore after installing IceFaces


In my JSF 2.0 project I've got an index.xhtml page where I implemented a login. After a successful login I want to redirect to EditFile.xhtml. This worked always successfully.

<h:commandButton value="Login" action="EditFile.xhtml"/>

Now I have installed the ICEfaces component and it doesn't work anymore, it only reloads the index.xhtml page. Can anyone help me?


Solution

  • I think h:commandButton was never supposed to redirect by default (wondering how it ever worked before), so try:

    <h:commandButton value="Login" action="EditFile.xhtml?faces-redirect=true"/>
    

    or add the <redirect/> tag to your navigaton case.