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

Gavin King gavin.king at jboss.com
Thu Oct 5 16:42:14 EDT 2006


  User: gavin   
  Date: 06/10/05 16:42:14

  Modified:    examples/contactlist/resources/WEB-INF    components.xml
                        faces-config.xml pages.xml
  Log:
  example of association handling
  
  Revision  Changes    Path
  1.3       +15 -0     jboss-seam/examples/contactlist/resources/WEB-INF/components.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: components.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/contactlist/resources/WEB-INF/components.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- components.xml	28 Sep 2006 00:54:13 -0000	1.2
  +++ components.xml	5 Oct 2006 20:42:14 -0000	1.3
  @@ -8,12 +8,27 @@
           <property name="entityManager">#{entityManager}</property>
       </component>
   
  +    <component name="comment"
  +              class="org.jboss.seam.framework.ManagedEntity">
  +        <property name="entityClass">org.jboss.seam.example.crud.Comment</property>
  +        <property name="entityManager">#{entityManager}</property>
  +        <property name="initialFieldValues">
  +        	<key>contact</key><value>#{contact}</value>
  +        </property>
  +    </component>
  +
       <component name="contactActions"
                 class="org.jboss.seam.framework.EntityActions">
           <property name="entityManager">#{entityManager}</property>
           <property name="entity">#{contact}</property>
       </component>
   
  +    <component name="commentActions"
  +              class="org.jboss.seam.framework.EntityActions">
  +        <property name="entityManager">#{entityManager}</property>
  +        <property name="entity">#{comment}</property>
  +    </component>
  +
       <component name="exampleContact"
                 class="org.jboss.seam.framework.ManagedObject">
           <property name="objectClass">org.jboss.seam.example.crud.Contact</property>
  
  
  
  1.2       +7 -0      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.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- faces-config.xml	28 Sep 2006 00:18:33 -0000	1.1
  +++ faces-config.xml	5 Oct 2006 20:42:14 -0000	1.2
  @@ -27,6 +27,13 @@
           <redirect/>
       </navigation-case>
       
  +    <navigation-case>
  +        <from-action>#{commentActions.persist}</from-action>
  +        <from-outcome>persisted</from-outcome>
  +        <to-view-id>/viewContact.xhtml</to-view-id>
  +        <redirect/>
  +    </navigation-case>
  +    
       </navigation-rule>
   
       <!-- Facelets support -->
  
  
  
  1.2       +4 -0      jboss-seam/examples/contactlist/resources/WEB-INF/pages.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: pages.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/contactlist/resources/WEB-INF/pages.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- pages.xml	28 Sep 2006 00:18:33 -0000	1.1
  +++ pages.xml	5 Oct 2006 20:42:14 -0000	1.2
  @@ -14,4 +14,8 @@
         <param name="contactId" value="#{contact.id}"/>
      </page>
      
  +   <page view-id="/comment.xhtml">
  +      <param name="contactId" value="#{contact.id}"/>
  +   </page>
  +   
   </pages>
  \ No newline at end of file
  
  
  



More information about the jboss-cvs-commits mailing list