I have a Primefaces datatable.
<p:dataTable id="updateStaffTable" var="staff" value="#{staffBean.staffs}"
selection="#{staffBean.selectedStaff}" selectionMode="single"
paginator="true" lazy="true" styleClass="dataTableSize" rows="10" >
<p:ajax event="rowSelect" listener="#{staffBean.onRowSelect}"
update=":updateStaffForm:updateStaffPanelGrid" oncomplete="PF('updateStaffDialog').show()" />
</p:dataTable>
Now, I want to disable selection attribute if the user is not permitted. I can check the user's permissions programmaticly. I also have a bean to check that but I can't use rendered attribute here. How can I do that or is there any other good approach in order to do that?