title: Form is not submitted
body: <p>I wrote a simple JSF form. The problem is that there is a bug that I can't find. When I open the main page and enter the username and password the page must redirect me to the next page but this is not happening. Can you help me to find my mistake?</p>
  
  <p>This is the main login JSF page</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns:h="http://java.sun.com/jsf/html"&gt;
      &lt;head&gt;
          &lt;title&gt;Login&lt;/title&gt;
          &lt;link rel="stylesheet" type="text/css" href="resources/css/style.css" /&gt;
          &lt;script src="resources/js/cufon-yui.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;script src="resources/js/ChunkFive_400.font.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              Cufon.replace('h1',{ textShadow: '1px 1px #fff'});
              Cufon.replace('h2',{ textShadow: '1px 1px #fff'});
              Cufon.replace('h3',{ textShadow: '0px 1px #000'});
              Cufon.replace('.back');
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="wrapper"&gt;
              &lt;div class="content"&gt;
                  &lt;div id="form_wrapper" class="form_wrapper"&gt;                    
                      &lt;form class="login active"&gt;
                          &lt;h3&gt;&lt;center&gt;&lt;img src="resources/images/title.png"/&gt;&lt;/center&gt;&lt;/h3&gt;
                          &lt;div&gt;
                              &lt;label&gt;Username:&lt;/label&gt;
                              &lt;h:inputText value="#{loginController.user}"/&gt;
                              &lt;span class="error"&gt;This is an error&lt;/span&gt;
                          &lt;/div&gt;
                          &lt;div&gt;
                              &lt;label&gt;Password:&lt;/label&gt;
                              &lt;h:inputSecret value="#{loginController.password}"/&gt;
                              &lt;span class="error"&gt;This is an error&lt;/span&gt;
                          &lt;/div&gt;
                          &lt;div class="bottom"&gt;    
                                                          &lt;h:commandButton label="Login" value="Login" action="#{loginController.user_compare}"/&gt;
                              &lt;div class="clear"&gt;&lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/form&gt;                 
                  &lt;/div&gt;
              &lt;/div&gt;          
          &lt;/div&gt;  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is the managed bean</p>
  
  <pre><code>/** Bean for checking users and passwords.
   If the user enters the correct username and password 
   the user will be redirected to main.xhtml
   If not the page will refresh. */
  
  package com.dx.sr_57;
  
  import java.io.Serializable;
  import javax.enterprise.context.SessionScoped;
  import javax.inject.Named;
  
  
  @Named("loginController")
  @SessionScoped
  public class user_check implements Serializable {
      private String user;
      private String password;
  
         public user_check(){
         }
  
         public user_check(String user, String password){
             super();
             this.user = user;
             this.password = password;
         }
  
  
  
         /** get the content of the variables from the JSF Login page */
  
         public String setUser(String newValue) { 
             user = newValue; 
             return user;
         }
  
         public String getUser(){
             return user;       
         }
  
         public String setPassword(String newValue) { 
             password = newValue; 
             return password;
         } 
  
         public String getPassword(){
             return password;
         }
  
         public String user_compare() {        
              return "success";        
         }
  }
  </code></pre>