-
1. Re: rowCount
kh2ouija Apr 13, 2006 10:16 AM (in response to kh2ouija)Ok. so I used #{not empty department.employees} instead and this works. For educational reasons, what was wrong with using rowCount here?
-
2. Re: rowCount
kh2ouija Apr 14, 2006 8:48 AM (in response to kh2ouija)<h:outputText value="You have #{websites.rowCount} websites." rendered="#{not empty websites}"/>
This exact bit renders to "You have 0 websites." for an empty list, does anyone have any idea why? -
3. Re: rowCount
gavin.king Apr 14, 2006 3:49 PM (in response to kh2ouija)rowCount is a property of DataModel. If you have an ordinary collection, it is not the correct way.
-
4. Re: rowCount
falazar Sep 29, 2006 4:53 PM (in response to kh2ouija)What would be the correct way here?
James -
5. Re: rowCount
gavin.king Sep 29, 2006 5:00 PM (in response to kh2ouija)#{size websites} works, i think
-
6. Re: rowCount
falazar Sep 29, 2006 5:03 PM (in response to kh2ouija)Im actually trying to put a count column for each row, but not sure exactly how, or real familiar with the inner workings of JSF.
in jBPM I have
<ui:repeat var="taskInstance" value="#{participantBean.personalTaskInstances}">
<h:outputText value="*NEEDCNT*"/>.
Where I loop through these instances #{taskInstance.name}
James -
7. Re: rowCount
gavin.king Sep 29, 2006 5:08 PM (in response to kh2ouija)Oh, for that I don;t know any way other than wrapping it in a DataModel and using #{dataModel.rowIndex}.
I've never needed to do this...