DataTable: selection mode

UI Components for JSF
Post Reply
aikanaro79
Posts: 18
Joined: 16 Nov 2010, 18:47

07 Dec 2010, 18:02

Hi,

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">
and my bean is similar to the one in the showcase. Nevertheless I am unable to select multiple lines. Can anyone help me with this? I'm not being able to point out the problem. I'm using Primefaces 2.1 and Mojarra 2.0.3

Thanks in advance.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 10 guests