I use rowCount to get a collection's size, like this:
<ui:repeat value="#{departments}" var="department"
rendered="#{departments.rowCount > 0}">
| <h:outputText rendered="#{department.employees.rowCount > 0}"
value="this department has employees"/>
| </ui:repeat>
The first rowCount is evaluated correctly; for the second rowCount (the one
from employees) I get this:
SEVERE: Error Rendering View[/departments.xhtml]
java.lang.NumberFormatException: For input string: "rowCount"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at
com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:138)
If I just simply iterate the employees works ok, but the rowCount doesn't, why?
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937153#3937153
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937153
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user