I've got a very annoying problem since hours. I try to update a datatable that should be conditionally rendered. The update works fine as long as just the the rows display change, i.e. if I remove a row, that table is updated with a row less. But if there are no rows anymore, the table should not be rendered. Instead the table is still displayed with the old data (the last remaining item) and it seems that there is no update at all. If I reload the page, the table is hidden as expected as no data is present and the rendered-condition evaluates to not empty
Code: Select all
<p:dataTable rendered="#{not empty borrowedBooksBean.borrowedCopies}" ...
Also
1. putting the table in an output panel
2. updating the containing form
does not work.
I would appreciate your help very much!
Alex