Using JSF1.2, if my datatable binding returns no rows I want to display a message saying so.
How do I do that?
And for extra points - how do I hide the tabl
Make use of the rendered
attribute. It accepts a boolean expression. You can evaluate the datatable's value inside the expression with help of the EL's empty
keyword. If it returns false
, the whole component (and its children) won't be rendered.
...
For the case you're interested, here are other basic examples how to make use of the EL powers inside the rendered
attribute: