Conditionally display row using JSF Datatable

后端 未结 6 1295
無奈伤痛
無奈伤痛 2021-02-19 07:16

I have some JSF code that currently works (as shown below), and I need to modify it to conditionally suppress the display of certain rows of the table. I know how to conditional

6条回答
  •  无人共我
    2021-02-19 08:09

    I've successfully hidden rows by putting a rendered attribute in all the tags. The problem is that it suppresses the table headers. If your table has no table headers (they are tags embedded in the ), this approach might work for you.

    I ended up using multiple lists in the backing bean, as I needed the table headers.

提交回复
热议问题