I need to disable row Editor in some rows(because of their specific data) I search too much but I can't find a way to do that.
I have two type of rows,rows with status A and rows with status B.
I want to enable pencil for rows A and disable for rows B.
You can:
<p:column rendered="#{listvar.status != 'B'}">
<p:rowEditor />
</p:column>
Rong's answer is great, but you will notice that if you render the column your table will miss some lines...
Just put the rendered on the rowEditor to avoid this design issue :
<p:column >
<p:rowEditor rendered="#{listvar.status != 'B'}" />
</p:column>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With