title: Navigation button in JSF page
body: <p>I have a JSF button with navigation rule in faces-config.xml:</p>
  
  <pre><code>&lt;h:commandButton id="newzone" styleClass="lbimage" value="New Zone" action="#{bean.navigateToNewZone()}"&gt;
      &lt;f:ajax render="@form"&gt;&lt;/f:ajax&gt;
  &lt;/h:commandButton&gt;
  
  // Navigate to New Zone page
  public int navigateToNewZone(){
      return 11472;
  }
  
  &lt;navigation-rule&gt;
      &lt;description&gt;Navigation rule to New Zone page&lt;/description&gt;
      &lt;from-view-id&gt;/ZonesList.xhtml&lt;/from-view-id&gt;
      &lt;navigation-case&gt;
          &lt;from-action&gt;#{ZonesController.navigateToNewZone()}&lt;/from-action&gt;
          &lt;from-outcome&gt;11472&lt;/from-outcome&gt;
          &lt;to-view-id&gt;/NewZone.xhtml&lt;/to-view-id&gt;
      &lt;/navigation-case&gt;
  &lt;/navigation-rule&gt;
  </code></pre>
  
  <p>My question is how I can simplify the navigation? I don't want to make navigation rules into faces-config.xml. Is there way to open directly new page from the JSF button?</p>