[jboss-user] [JBoss Seam] - Re: Problem calling resultList.size() on framework entity-qu
pete.muir@jboss.org
do-not-reply at jboss.com
Fri Aug 3 08:13:03 EDT 2007
Here is the patch to reproduce
### Eclipse Workspace Patch 1.0
| #P jboss-seam
| Index: examples/ui/resources/WEB-INF/components.xml
| ===================================================================
| RCS file: /cvsroot/jboss/jboss-seam/examples/ui/resources/WEB-INF/components.xml,v
| retrieving revision 1.9
| diff -u -r1.9 components.xml
| --- examples/ui/resources/WEB-INF/components.xml 1 Aug 2007 11:49:57 -0000 1.9
| +++ examples/ui/resources/WEB-INF/components.xml 3 Aug 2007 12:11:52 -0000
| @@ -21,7 +21,7 @@
|
| <framework:entity-home name="personHome" entity-class="org.jboss.seam.example.ui.Person" />
|
| - <framework:entity-query name="colours" ejbql="select c from Colour c" />
| + <framework:entity-query name="colours" ejbql="select c from Colour c" max-results="2" />
|
| <framework:entity-query name="books" ejbql="select b from Book b" />
|
| Index: examples/ui/view/index.xhtml
| ===================================================================
| RCS file: /cvsroot/jboss/jboss-seam/examples/ui/view/index.xhtml,v
| retrieving revision 1.4
| diff -u -r1.4 index.xhtml
| --- examples/ui/view/index.xhtml 13 Jun 2007 23:49:05 -0000 1.4
| +++ examples/ui/view/index.xhtml 3 Aug 2007 12:11:52 -0000
| @@ -10,5 +10,6 @@
| <ui:param name="tagName" value="" />
| <ui:define name="body">
| <p>Seam ui components</p>
| + <h:outputText value="#{colours.resultList.size()}" />
| </ui:define>
| </ui:composition>
| \ No newline at end of file
|
And visit the index.xhtml page on the ui example
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070535#4070535
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070535
More information about the jboss-user
mailing list