title: How do I specify Navigation Rules if I do not want to make entries in faces-config.xml
body: <p>Right now I am giving my navigation rules in the faces-config.xml file. If I want to stop making entries in faces-config.xml.</p>
  
  <p><strong>How can i specify the navigation rules if I don't want to do it in faces-config.xml?</strong></p>
  
  <p>"faces-config.xml"</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"&gt;
      &lt;navigation-rule&gt;
          &lt;description&gt;Navigation from the hello page.&lt;/description&gt;
          &lt;from-view-id&gt;/login.xhtml&lt;/from-view-id&gt;
          &lt;navigation-case&gt;
              &lt;from-outcome&gt;success&lt;/from-outcome&gt;
              &lt;to-view-id&gt;/wsListing.xhtml&lt;/to-view-id&gt;
              &lt;redirect /&gt;
          &lt;/navigation-case&gt;
      &lt;/navigation-rule&gt;
      &lt;navigation-rule&gt;
          &lt;description&gt;Navigation from the hello page.&lt;/description&gt;
          &lt;from-view-id&gt;/wsListing.xhtml&lt;/from-view-id&gt;
          &lt;navigation-case&gt;
              &lt;from-outcome&gt;ebzService&lt;/from-outcome&gt;
              &lt;to-view-id&gt;/ebzinput.xhtml&lt;/to-view-id&gt;
              &lt;redirect /&gt;
          &lt;/navigation-case&gt;
          &lt;navigation-case&gt;
              &lt;from-outcome&gt;filterEbz&lt;/from-outcome&gt;
              &lt;to-view-id&gt;/filterebzinput.xhtml&lt;/to-view-id&gt;
              &lt;redirect /&gt;
          &lt;/navigation-case&gt;
      &lt;/navigation-rule&gt;
  
  
      &lt;navigation-rule&gt;
          &lt;description&gt;Navigation from the hello page.&lt;/description&gt;
          &lt;from-view-id&gt;/ebzinput.xhtml&lt;/from-view-id&gt;
          &lt;navigation-case&gt;
              &lt;from-outcome&gt;success&lt;/from-outcome&gt;
              &lt;to-view-id&gt;/ebzoutput.xhtml&lt;/to-view-id&gt;
              &lt;redirect /&gt;
          &lt;/navigation-case&gt;
          &lt;/navigation-rule&gt;
  
  &lt;/faces-config&gt;
  </code></pre>