I have a page with a Datatable that is supposed to support the selection of multiple rows. I have the following JSF code for the datatable opening tag:
Code: Select all
<p:dataTable id="versionSearchTable" value="#{versionSearchBean.versionList}" var="row"
paginator="true"
currentPageReportTemplate="{currentPage} of {totalPages}"
paginatorPosition="top"
paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink}
{CurrentPageReport} {NextPageLink} {LastPageLink}"
rowsPerPageTemplate="10,25,50,100"
errorMessage="#{versionSearchBean.errorMessage}" rows="10"
styleClass="halfPageDataTable"
selection="#{versionSearchBean.selectedVersions}"
selectionMode="multiple">
Thanks in advance.