java - Prime Faces - remove select checkbox based on row criteria - is it possible -
java - Prime Faces - remove select checkbox based on row criteria - is it possible -
i have implemented org.primefaces.model.selectabledatamodel.
now when rendering <p:datatable> based on selectabledatamodel add together column checkboxes using:
<p:column selectionmode="multiple" /> for rows not want checkbox appear, based on attribute of row.
i cannot see way this. possible out box prime faces functionality ?
you can disable checkbox:
<p:column selectionmode="multiple" style="width:18px" disabledselection="#{car.color =='black'}" styleclass="#{car.color =='black' ? 'selectiondisabled':''}"/> the check box disabled, however, visible. hide disabled checkbox css:
td.selectiondisabled .ui-chkbox{ display: none; } java jsf java-ee jsf-2 primefaces
Comments
Post a Comment