wood burning stoves 2.0*
The moose likes JSF and the fly likes Ideas, @DataModel + <rich:dataTable> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Ideas, @DataModel + <rich:dataTable>" Watch "Ideas, @DataModel + <rich:dataTable>" New topic

Ideas, @DataModel + <rich:dataTable>

Matt Couto
Ranch Hand

Joined: Jul 10, 2009
Posts: 38
Hi fellas,
I need an idea about how to render the rich:dataTable component with two conditions...like, I'm makin' use of a @DataModel in 2 rich:dataTables. The first one should be rendered only if the objects in that List have the attribute 'status' equal to 'A' and the second if that attribute's equal to 'I' for example. and of course, for both dataTables they must be rendered if the rowCount's > 0.
I could make it on the columns but not for the <f:facet name="header">, if the dataModel's empty, it doesnt show the column but the header....
thanks in advance
ps.: using jboss seam + richfaces + jsf
I agree. Here's the link: http://aspose.com/file-tools
subject: Ideas, @DataModel + <rich:dataTable>
Similar Threads
Table Header
Problem with headers in sorted rich:datatable with subtable
Single radio button group for all rows in the rich:dataTable
h:commandlink and a4j:commandlink only working on second click when in a datatable
empty table column header on a dataTable when trying to fill it dynamically...