[jboss-cvs] jboss-seam/examples/booking/resources/WEB-INF ...

Gavin King gavin.king at jboss.com
Thu Nov 2 13:27:36 EST 2006


  User: gavin   
  Date: 06/11/02 13:27:36

  Modified:    examples/booking/resources/WEB-INF    faces-config.xml
                        web.xml
  Added:       examples/booking/resources/WEB-INF    navigation.xml
  Log:
  split out navigation rules
  
  Revision  Changes    Path
  1.38      +1 -40     jboss-seam/examples/booking/resources/WEB-INF/faces-config.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: faces-config.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/booking/resources/WEB-INF/faces-config.xml,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -b -r1.37 -r1.38
  --- faces-config.xml	12 Oct 2006 22:44:47 -0000	1.37
  +++ faces-config.xml	2 Nov 2006 18:27:36 -0000	1.38
  @@ -5,45 +5,6 @@
       
   <faces-config>
   
  -    <!-- Navigation rules for the Booking demo app -->

    <navigation-rule>

  -        <navigation-case>
            <from-outcome>login</from-outcome>
            <to-view-id>/home.xhtml</to-view-id>
  -            <redirect />
        </navigation-case>
  -        
  -        <navigation-case>
            <from-outcome>register</from-outcome>
            <to-view-id>/register.xhtml</to-view-id>
  -            <redirect />
        </navigation-case>

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

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

  -        <from-view-id>/hotel.xhtml</from-view-id>

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

  -    <navigation-rule>

  -        <from-view-id>/book.xhtml</from-view-id>

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

  -    <navigation-rule>

  -        <from-view-id>/confirm.xhtml</from-view-id>

  -        <navigation-case>
            <from-outcome>confirmed</from-outcome>
            <to-view-id>/main.xhtml</to-view-id>
  -            <redirect/>
        </navigation-case>

  -        <navigation-case>
            <from-outcome>back</from-outcome>
            <to-view-id>/book.xhtml</to-view-id>
  -            <redirect />
        </navigation-case>

  -    </navigation-rule>
  -    
  -    <!-- Select one of the two standard persistence lifecycle models for the Seam application -->

  +    <!-- Select one of the standard transaction models for the Seam application -->

       <lifecycle>
        <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
    </lifecycle>

   </faces-config>
  
  
  
  1.31      +5 -0      jboss-seam/examples/booking/resources/WEB-INF/web.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: web.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/booking/resources/WEB-INF/web.xml,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -b -r1.30 -r1.31
  --- web.xml	12 Oct 2006 22:44:47 -0000	1.30
  +++ web.xml	2 Nov 2006 18:27:36 -0000	1.31
  @@ -4,6 +4,11 @@
       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-app_2_5.xsd">
   
  +   <context-param>
  +      <param-name>javax.faces.CONFIG_FILES</param-name>
  +      <param-value>/WEB-INF/navigation.xml</param-value>
  +   </context-param>
  +
   	<!-- Ajax4jsf (must come first!) -->
   		
   	<filter>
  
  
  
  1.1      date: 2006/11/02 18:27:36;  author: gavin;  state: Exp;jboss-seam/examples/booking/resources/WEB-INF/navigation.xml
  
  Index: navigation.xml
  ===================================================================
  <?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>login</from-outcome>
            <to-view-id>/home.xhtml</to-view-id>
              <redirect />
        </navigation-case>
          
          <navigation-case>
            <from-outcome>register</from-outcome>
            <to-view-id>/register.xhtml</to-view-id>
              <redirect />
        </navigation-case>

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

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

          <from-view-id>/hotel.xhtml</from-view-id>

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

      <navigation-rule>

          <from-view-id>/book.xhtml</from-view-id>

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

      <navigation-rule>

          <from-view-id>/confirm.xhtml</from-view-id>

          <navigation-case>
            <from-outcome>confirmed</from-outcome>
            <to-view-id>/main.xhtml</to-view-id>
              <redirect/>
        </navigation-case>

          <navigation-case>
            <from-outcome>back</from-outcome>
            <to-view-id>/book.xhtml</to-view-id>
              <redirect />
        </navigation-case>

      </navigation-rule>
      
  </faces-config>
  
  
  



More information about the jboss-cvs-commits mailing list