Saturday, April 07, 2007

Hiding Details if Master doesn’t have any in ADF Faces Tables

I had a use case in which some rows in the Master Table can never have any details; so it makes sense to hide details table instead of printing a blank table with some default text message.

I tried to fit in lot of (buggy) logic and then I realized it can be done using simpler way which is:

Let say the child table has

value="#{bindings.ChildCollection.collectionModel}"

to hide details add:

rendered="#{bindings. ChildCollection.estimatedRowCount>0}"

No comments: