[jboss-cvs] jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay ...
Shane Bryzak
sbryzak at redhat.com
Wed Jul 4 01:40:11 EDT 2007
User: sbryzak2
Date: 07/07/04 01:40:11
Modified: examples/seambay/src/org/jboss/seam/example/seambay
CategoryAction.java
Log:
load the categories with remoting
Revision Changes Path
1.4 +6 -1 jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/CategoryAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CategoryAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/CategoryAction.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- CategoryAction.java 3 May 2007 03:23:12 -0000 1.3
+++ CategoryAction.java 4 Jul 2007 05:40:11 -0000 1.4
@@ -20,6 +20,9 @@
private List<Category> categories;
@Out(required = false)
+ private List<Category> allCategories;
+
+ @Out(required = false)
private List<Category> leftCategories;
@Out(required = false)
@@ -40,9 +43,11 @@
}
@SuppressWarnings("unchecked")
+ @Factory("allCategories")
public List<Category> getAllCategories()
{
- return entityManager.createQuery("from Category").getResultList();
+ allCategories = entityManager.createQuery("from Category").getResultList();
+ return allCategories;
}
private void loadLeftAndRight()
More information about the jboss-cvs-commits
mailing list