ICEfaces
  1. ICEfaces
  2. ICE-8297

LazyDataModel with pagination breaks export feature

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1, EE-3.0.0.GA, 3.1.0.BETA2
    • Fix Version/s: 3.1, EE-3.0.0.GA_P01
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Tomcat 7, Firefox, IE, Chrome
    • Assignee Priority:
      P1

      Description

      When LazyDataModel is used with datatable having pagination, it break the export feature.

      To reproduce:
      1. deploy attached .war file
      2. Go to the ace:dataTable > Lazy Loading example.
      3. Click on the button to export dataTable as cvs file.

      Exported file will contain duplicate data after first page rows of the ace:dataTable.
      31st record will be a duplicate of 1st row on page 1, 32nd record will be a duplicate of 2nd row on page 1 etc.

      .cvs file outcome attached.
      1. cars.csv
        3 kB
        Evgheni Sadovoi
      2. showcase.part1.rar
        5.00 MB
        Evgheni Sadovoi
      3. showcase.part2.rar
        5.00 MB
        Evgheni Sadovoi
      4. showcase.part3.rar
        5.00 MB
        Evgheni Sadovoi
      5. showcase.part4.rar
        1.18 MB
        Evgheni Sadovoi

        Activity

        Evgheni Sadovoi created issue -
        Evgheni Sadovoi made changes -
        Field Original Value New Value
        Salesforce Case [5007000000MIb0K]
        Description When LazyDataModel is used with datatable having pagination, it break the export feature. For example, if my records per page is 50, total records are 60, then when you export this data using ace:dataExporter with pageOnly=false, the resulting data contains 60 rows, first 50 rows correspond to the ones shown on the page and next 10 rows are duplicated from the first page again instead of the remaining 10 rows.

        To reproduce:
        1. deploy attached .war file
        2. Go to the ace:dataTable > Lazy Loading example.
        3. Click on the button to export dataTable as cvs file.

        Exported file will contain duplicate data.
        When LazyDataModel is used with datatable having pagination, it break the export feature.

        To reproduce:
        1. deploy attached .war file
        2. Go to the ace:dataTable > Lazy Loading example.
        3. Click on the button to export dataTable as cvs file.

        Exported file will contain duplicate data after first 30 rows.
        Evgheni Sadovoi made changes -
        Attachment showcase.part1.rar [ 14629 ]
        Evgheni Sadovoi made changes -
        Attachment showcase.part2.rar [ 14630 ]
        Evgheni Sadovoi made changes -
        Attachment showcase.part3.rar [ 14631 ]
        Attachment showcase.part4.rar [ 14632 ]
        Evgheni Sadovoi made changes -
        Attachment cars.csv [ 14633 ]
        Evgheni Sadovoi made changes -
        Description When LazyDataModel is used with datatable having pagination, it break the export feature.

        To reproduce:
        1. deploy attached .war file
        2. Go to the ace:dataTable > Lazy Loading example.
        3. Click on the button to export dataTable as cvs file.

        Exported file will contain duplicate data after first 30 rows.
        When LazyDataModel is used with datatable having pagination, it break the export feature.

        To reproduce:
        1. deploy attached .war file
        2. Go to the ace:dataTable > Lazy Loading example.
        3. Click on the button to export dataTable as cvs file.

        Exported file will contain duplicate data after first page rows of the ace:dataTable.
        31st record will be a duplicate of 1st row on page 1, 32nd record will be a duplicate of 2nd row on page 1 etc.

        .cvs file outcome attached.
        Ken Fyten made changes -
        Fix Version/s 3.1 [ 10312 ]
        Fix Version/s EE-3.0.0.GA_P01 [ 10327 ]
        Assignee Priority P2
        Assignee Arturo Zambrano [ artzambrano ]
        Ken Fyten made changes -
        Assignee Priority P2 P1
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Arturo Zambrano made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: