Problem with rowSelection in nested Datables with pagination

UI Components for JSF
Post Reply
sodapop
Posts: 7
Joined: 27 Apr 2011, 08:10
Location: Germany

19 May 2011, 11:50

Hello!

I have the following: a <p:dataTable> with rowExpansion (but without selection and pagination) in which another <p:dataTable> is placed.
The inner dataTable looks like this:

Code: Select all

<p:dataTable value="#{employeeBean.allEmployees}" var="e"
                                paginatorAlwaysVisible="false" paginator="true" rows="5"
                                paginatorTemplate="{PageLinks}" paginatorPosition="bottom"
                                selection="#{list.currentEmployee}" selectionMode="single"
                                onRowSelectUpdate="detailPanel" 
                                rowSelectListener="#{list.makeAddEmployeeButtonVisible}">
Whenever a row is selected a panel should be filled with detailed information for this selected row.
This works fine - but only in the first paginator-page. When selecting a row on the second page the selection is not transmitted into the bean, selectionListener is called anyway.

There is a problems with filtering too. Selecting a row in the filtered table, the panel is filled with information that belong to the row that would have this rowIndex when the table isn't filtered.

These problems only exist in nested tables.
Can someone reproduce this or did I something wrong?
Eclipse Helios | Glassfish 3.1 | Mojarra 2.0.3 | Primefaces 2.2.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

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