ICEfaces
  1. ICEfaces
  2. ICE-8587

LazyDataModel with pagination breaks export feature when selectedRowsOnly is enabled

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.0.0.GA_P01
    • Fix Version/s: 3.2
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Tomcat 7.0.14, Chrome, FF, IE9,

      Description

      This is a follow up for the resolved ICE-8297.

        Activity

        Migration created issue -
        Migration made changes -
        Field Original Value New Value
        Reporter Migration [ remote ] Evgheni Sadovoi [ evgheni.sadovoi ]
        Migration made changes -
        Description
        This is a follow up for the resolved ICE-8297.

        ace:dataExporter does not work correctly when LazyDataModel is used with datatable, pagination and enabled selectedRowsOnly attribute.
        There is at least 3 issues which I found with this mode.

        1. Mixed order of exported data. (sequential selection of rows in the following order: 1st, 3rd & 5th will export them and arrange in a mixed order such us as 5th, 1st and 3rd).

        2. Duplicated exported data. (selected rows will be repeated N times in the exported file. Where N is the number of pages in a lazy data table)

        3. Corrupted export upon upon un-selection of current rows and selection of the new ones. (The data in exported file will show a mix of X previously and currently selected rows in the random order. The pattern will repeat itself N times. Here N is the number of pages in a lazy data table and X is a number of rows per page.)
        In other words if you'd made the following selection initially: row 1,2,3 and 5 and then changed this selection to 10, 12 and 14 AND your data table show 5 rows per page. The outcome of the export will be represented with a mixed subset from the previous and current selection. This subset will contain a maximum of 5 data elements and it will repeat itself N times.
         

        To reproduce 1 &2:
        1. deploy attached source code with ICEfaces EE 3.0 P01 and poi-3.7.jar
        2. Select a few rows from the table.
        3. Click on "Export Selected Rows" button



        .cvs file outcome attached.
        This is a follow up for the resolved ICE-8297.
        Migration made changes -
        Assignee Arturo Zambrano [ artzambrano ]
        Fix Version/s 3.2 [ 10338 ]
        Assignee Priority P2 [ 10011 ]
        Migration made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Migration made changes -
        Attachment MyData.java [ 14953 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P2 [ 10011 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Evgheni Sadovoi
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: