How to restrict editing of certain cells in a DataTable edited in PrimeFaces

I want to limit some cells in the DataTable to editing. I mean that these fields cannot be edited. How can I achieve this?

+3
source share
1 answer

Just do not use <p:cellEditor>then.

<p:column>#{videoList.referenceFileName}</p:column> 

Please note that <f:facet name="output">applies to <p:cellEditor>. You must also delete it. Alo note that <h:outputText>it is not required if you do not need to use any specific attributes.

+4
source

All Articles