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

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


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

  Modified:    examples/contactlist/resources/WEB-INF    faces-config.xml
                        web.xml
  Added:       examples/contactlist/resources/WEB-INF    navigation.xml
  Log:
  split out navigation rules
  
  Revision  Changes    Path
  1.6       +0 -40     jboss-seam/examples/contactlist/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/contactlist/resources/WEB-INF/faces-config.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- faces-config.xml	8 Oct 2006 18:23:09 -0000	1.5
  +++ faces-config.xml	2 Nov 2006 18:27:37 -0000	1.6
  @@ -4,46 +4,6 @@
                               "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
   <faces-config>
   
  -    <navigation-rule>
  -        <from-view-id>/editContact.xhtml</from-view-id>
  -        
  -        <navigation-case>
  -            <from-outcome>updated</from-outcome>
  -            <to-view-id>/viewContact.xhtml</to-view-id>
  -            <redirect/>
  -        </navigation-case>
  -        
  -        <navigation-case>
  -            <from-outcome>persisted</from-outcome>
  -            <to-view-id>/viewContact.xhtml</to-view-id>
  -            <redirect/>
  -        </navigation-case>
  -        
  -        <navigation-case>
  -            <from-outcome>removed</from-outcome>
  -            <to-view-id>/search.xhtml</to-view-id>
  -            <redirect/>
  -        </navigation-case>
  -            
  -    </navigation-rule>
  -        
  -    <navigation-rule>
  -        <from-view-id>/viewContact.xhtml</from-view-id>
  -        
  -        <navigation-case>
  -            <from-outcome>removed</from-outcome>
  -            <to-view-id>/search.xhtml</to-view-id>
  -            <redirect/>
  -        </navigation-case>
  -            
  -        <navigation-case>
  -            <from-outcome>persisted</from-outcome>
  -            <to-view-id>/viewContact.xhtml</to-view-id>
  -            <redirect/>
  -        </navigation-case>
  -
  -    </navigation-rule>
  -        
       <!-- Facelets support -->
   
       <application>
  
  
  
  1.4       +5 -0      jboss-seam/examples/contactlist/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/contactlist/resources/WEB-INF/web.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- web.xml	12 Oct 2006 02:43:40 -0000	1.3
  +++ web.xml	2 Nov 2006 18:27:37 -0000	1.4
  @@ -5,6 +5,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>
  +
       <!-- Seam -->
       
       <listener>
  
  
  
  1.1      date: 2006/11/02 18:27:37;  author: gavin;  state: Exp;jboss-seam/examples/contactlist/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>
          <from-view-id>/editContact.xhtml</from-view-id>
          
          <navigation-case>
              <from-outcome>updated</from-outcome>
              <to-view-id>/viewContact.xhtml</to-view-id>
              <redirect/>
          </navigation-case>
          
          <navigation-case>
              <from-outcome>persisted</from-outcome>
              <to-view-id>/viewContact.xhtml</to-view-id>
              <redirect/>
          </navigation-case>
          
          <navigation-case>
              <from-outcome>removed</from-outcome>
              <to-view-id>/search.xhtml</to-view-id>
              <redirect/>
          </navigation-case>
              
      </navigation-rule>
          
      <navigation-rule>
          <from-view-id>/viewContact.xhtml</from-view-id>
          
          <navigation-case>
              <from-outcome>removed</from-outcome>
              <to-view-id>/search.xhtml</to-view-id>
              <redirect/>
          </navigation-case>
              
          <navigation-case>
              <from-outcome>persisted</from-outcome>
              <to-view-id>/viewContact.xhtml</to-view-id>
              <redirect/>
          </navigation-case>
  
      </navigation-rule>
  
  </faces-config>
  
  
  



More information about the jboss-cvs-commits mailing list