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

Gavin King gavin.king at jboss.com
Sun Oct 8 10:03:38 EDT 2006


  User: gavin   
  Date: 06/10/08 10:03:38

  Modified:    examples/contactlist/resources/WEB-INF    components.xml
                        faces-config.xml pages.xml
  Log:
  updated to refactored fwk
  
  Revision  Changes    Path
  1.6       +11 -21    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.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- components.xml	6 Oct 2006 00:23:40 -0000	1.5
  +++ components.xml	8 Oct 2006 14:03:38 -0000	1.6
  @@ -1,39 +1,28 @@
   <components>
   
  -    <component name="contact"
  -              class="org.jboss.seam.framework.ManagedEntity">
  -        <property name="id">#{param.contactId}</property>
  -        <property name="idClass">java.lang.Long</property>
  -        <property name="entityClass">org.jboss.seam.example.crud.Contact</property>
  +    <component name="commentHome"
  +              class="org.jboss.seam.framework.EntityHome">
           <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="initialPropertyValues">
           	<key>contact</key><value>#{contact}</value>
           	<key>created</key><value>#{currentDatetime}</value>
           </property>
       </component>
  +    <factory name="comment" value="#{commentHome.instance}"/>
   
  -    <component name="contactActions"
  -              class="org.jboss.seam.framework.EntityActions">
  +    <component name="contactHome"
  +              class="org.jboss.seam.framework.EntityHome">
           <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>
  +        <property name="entityClass">org.jboss.seam.example.crud.Contact</property>
       </component>
  +    <factory name="contact" value="#{contactHome.instance}"/>
   
  -    <component name="exampleContact"
  -              class="org.jboss.seam.framework.ManagedObject">
  +    <component name="exampleContactHome"
  +              class="org.jboss.seam.framework.Home">
           <property name="objectClass">org.jboss.seam.example.crud.Contact</property>
       </component>
  +    <factory name="exampleContact" value="#{exampleContactHome.instance}"/>
       
       <component name="contacts" 
                 class="org.jboss.seam.framework.Query">
  @@ -42,6 +31,7 @@
               <value>lower(firstName) like lower( #{exampleContact.firstName} + '%' )</value>
               <value>lower(lastName) like lower( #{exampleContact.lastName} + '%' )</value>
           </property>
  +        <property name="order">lastName</property>
           <property name="maxResults">20</property>
           <property name="entityManager">#{entityManager}</property>
       </component>
  
  
  
  1.3       +26 -33    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.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- faces-config.xml	5 Oct 2006 20:42:14 -0000	1.2
  +++ faces-config.xml	8 Oct 2006 14:03:38 -0000	1.3
  @@ -7,33 +7,26 @@
       <navigation-rule>
       
       <navigation-case>
  -        <from-action>#{contactActions.update}</from-action>
  +            <from-action>#{contactHome.update}</from-action>
           <from-outcome>updated</from-outcome>
           <to-view-id>/viewContact.xhtml</to-view-id>
           <redirect/>
       </navigation-case>
       
       <navigation-case>
  -        <from-action>#{contactActions.persist}</from-action>
  +            <from-action>#{contactHome.persist}</from-action>
           <from-outcome>persisted</from-outcome>
           <to-view-id>/viewContact.xhtml</to-view-id>
           <redirect/>
       </navigation-case>
       
       <navigation-case>
  -        <from-action>#{contactActions.remove}</from-action>
  +            <from-action>#{contactHome.remove}</from-action>
           <from-outcome>removed</from-outcome>
           <to-view-id>/search.xhtml</to-view-id>
           <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.4       +2 -2      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.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- pages.xml	6 Oct 2006 00:23:40 -0000	1.3
  +++ pages.xml	8 Oct 2006 14:03:38 -0000	1.4
  @@ -7,11 +7,11 @@
      </page>
      
      <page view-id="/viewContact.xhtml">
  -      <param name="contactId" value="#{contact.id}"/>
  +      <param name="contactId" value="#{contactHome.id}" converterId="javax.faces.Long"/>
      </page>
      
      <page view-id="/editContact.xhtml">
  -      <param name="contactId" value="#{contact.id}"/>
  +      <param name="contactId" value="#{contactHome.id}" converterId="javax.faces.Long"/>
      </page>
      
   </pages>
  \ No newline at end of file
  
  
  



More information about the jboss-cvs-commits mailing list