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

jsf-2, primefaces

Solution

Just don't use `<p:cellEditor>` then.

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

Note that the `<f:facet name="output">` is specific to `<p:cellEditor>`. You should remove it as well. Alo note that `<h:outputText>` is not necessary if you don't need to use any specific attributes on it.

Problem

I want to restrict certain cells in a DataTable from editing. I mean those fields are not allowed to be edited. How can I achieve this?

Original source