Skip some row in jsf dataTable
Posted
by Marc
on Stack Overflow
See other posts from Stack Overflow
or by Marc
Published on 2010-05-28T16:02:49Z
Indexed on
2010/05/28
16:42 UTC
Read the original article
Hit count: 378
How to skip some rows to be displayed using dataTable:
<h:dataTable cellspacing="0" id="dogs" value="#{dogBean.dogs}" var="dog" rendered="#{dogBeans.dogs != null}">
<h:column id="nameColumn">
<h:outputText value="#{dog.name}"/>
</h:column>
<h:column id="breedColumn">
<h:outputText value="#{dog.breed}"/>
</h:column>
</h:dataTable>
I want to display all dogs, but those how have an age greater than 10. dog.age > 10.
I'm using Seam.
© Stack Overflow or respective owner