title: JSF 2 login implementation
body: <p>i'm trying to implement a very basic (at this point) login screen with JSF 2 (using NetBeans).  i've found several examples, from which i copied the source code, but so far unsuccessfully. 
  in my login.xhtml file i have a 2 input fields and a command button - </p>
  
  <pre><code>&lt;h:commandButton value="go!" actionListener="#{LoginBean.CheckValidUser}" /&gt;
  </code></pre>
  
  <p>in my LoginBean, the validation function looks like this - </p>
  
  <pre><code>public String CheckValidUser() { 
      if(username.equals("admin") &amp;&amp; password.equals("admin")){ 
          return "welcome"; 
      } 
      else{ 
         return "fail";
      } 
  } 
  </code></pre>
  
  <p>and to my faces-config.xml i've added the following navigation rule:</p>
  
  <pre><code>&lt;navigation-rule&gt;
      &lt;description&gt;login success&lt;/description&gt;
      &lt;from-view-id&gt;/login.xhtml&lt;/from-view-id&gt;
      &lt;navigation-case&gt;
          &lt;from-action&gt;#{LoginBean.CheckValidUser}&lt;/from-action&gt; 
          &lt;from-outcome&gt;welcome&lt;/from-outcome&gt;
          &lt;to-view-id&gt;/welcome.xhtml&lt;/to-view-id&gt;
          &lt;redirect/&gt;
      &lt;/navigation-case&gt;
  &lt;/navigation-rule&gt;
  </code></pre>
  
  <p>anyhow - i just won't work, i enter the correct UN and PW but i don't get to 'welcome.xhmtl'.  when i debug the code, i see in the validation function it works as expected, but i can i know that the faces-config.xml is configured correctly?</p>
  
  <p>what did i miss?
  cheers, 
  eRez</p>