2 Replies Latest reply on Jan 19, 2007 8:56 AM by Rodrigo Barreiros

    Navigation Problem

    Rodrigo Barreiros Newbie

      I am having a problem with navigation in my application. If I use the following code, every thing works fine.

      <h:commandButton id="login" action="login" value="Login"/>
      


      But if I use the code below, the navigation doesn't works. The action listener is called but the redirect doesn´s happen.

      <h:commandButton id="login" action="#{login.login}" value="Login"/>
      ...
      @Stateless
      @Name("login")
      public class LoginAction implements Login {
      
       public String login() {
       return "painelGerencial";
       }
      
      }