<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config 
    PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
    
<faces-config>

  <navigation-rule>
    <navigation-case>
      <from-outcome>persisted</from-outcome>
      <to-view-id>/index.xhtml</to-view-id>
      <redirect />
    </navigation-case>
  </navigation-rule>
  
  <navigation-rule>
    <navigation-case>
      <from-outcome>updated</from-outcome>
      <to-view-id>/index.xhtml</to-view-id>
      <redirect />
    </navigation-case>
  </navigation-rule>
  
  <navigation-rule>
    <navigation-case>
      <from-outcome>removed</from-outcome>
      <to-view-id>/index.xhtml</to-view-id>
      <redirect />
    </navigation-case>
  </navigation-rule>

  <navigation-rule>
    <navigation-case>
      <from-outcome>create</from-outcome>
      <to-view-id>/create.xhtml</to-view-id>
      <redirect />
    </navigation-case>
  </navigation-rule>

  <navigation-rule>
    <navigation-case>
      <from-outcome>todos</from-outcome>
      <to-view-id>/todos.xhtml</to-view-id>
      <redirect />
    </navigation-case>
  </navigation-rule>

</faces-config>
