i want to use primefaces's datatable for my role's authoies. My update page is show role and its authories. All autroies is listed data table and my role's authoies must be selected. following codes do not work in my scope.
Code: Select all
<p:dataTable id="authories" var="authory" value="#{roleController.authories}"
rows="10" paginator="true"
selection="#{roleController.selectedAuthories}" selectionMode="multiple"
>
<p:column>
<f:facet name="header">
<h:outputText value="Authory Name" />
</f:facet>
<h:outputText value="#{authory.name}"></h:outputText>
</p:column>
</p:dataTable>