[jboss-cvs] jboss-seam/examples/contactlist/resources/META-INF ...
Gavin King
gavin.king at jboss.com
Mon Nov 20 23:04:51 EST 2006
User: gavin
Date: 06/11/20 23:04:51
Modified: examples/contactlist/resources/META-INF components.xml
Log:
new xml
Revision Changes Path
1.2 +24 -26 jboss-seam/examples/contactlist/resources/META-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/META-INF/components.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- components.xml 14 Nov 2006 00:18:31 -0000 1.1
+++ components.xml 21 Nov 2006 04:04:51 -0000 1.2
@@ -1,24 +1,23 @@
-<!DOCTYPE components PUBLIC
- "-//JBoss/Seam Component Configuration DTD 1.1//EN"
- "http://jboss.com/products/seam/components-1.1.dtd">
-
-<components>
+<?xml version="1.0" encoding="UTF-8"?>
+<components xmlns="http://jboss.com/products/seam/components"
+ xmlns:fwk="http://jboss.com/products/seam/framework"
+ xmlns:core="http://jboss.com/products/seam/core"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation=
+ "http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-1.1.xsd
+ http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.1.xsd
+ http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.1.xsd">
<factory name="contact" value="#{contactHome.instance}"/>
- <component name="contactHome"
- class="org.jboss.seam.framework.EntityHome">
- <property name="entityClass">org.jboss.seam.example.contactlist.Contact</property>
- <property name="entityManager">#{entityManager}</property>
- </component>
-
+ <fwk:entity-home name="contactHome"
+ entity-class="org.jboss.seam.example.contactlist.Contact"
+ entity-manager="#{entityManager}"/>
<factory name="comment" value="#{commentHome.instance}"/>
- <component name="commentHome"
- class="org.jboss.seam.framework.EntityHome">
- <property name="entityClass">org.jboss.seam.example.contactlist.Comment</property>
- <property name="newInstance">#{newComment}</property>
- <property name="entityManager">#{entityManager}</property>
- </component>
+ <fwk:entity-home name="commentHome"
+ entity-class="org.jboss.seam.example.contactlist.Comment"
+ entity-manager="#{entityManager}"
+ new-instance="#{newComment}"/>
<component name="newComment"
class="org.jboss.seam.example.contactlist.Comment">
<property name="contact">#{contact}</property>
@@ -26,17 +25,16 @@
</component>
- <component name="contacts"
- class="org.jboss.seam.framework.EntityQuery">
- <property name="ejbql">from Contact</property>
- <property name="restrictions">
+ <fwk:entity-query name="contacts"
+ max-results="20"
+ entity-manager="#{entityManager}">
+ <fwk:ejbql>from Contact</fwk:ejbql>
+ <fwk:order>lastName</fwk:order>
+ <fwk:restrictions>
<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>
+ </fwk:restrictions>
+ </fwk:entity-query>
<component name="exampleContact"
class="org.jboss.seam.example.contactlist.Contact"/>
More information about the jboss-cvs-commits
mailing list