ICEfaces
  1. ICEfaces
  2. ICE-8861

ace:dataExporter - OuterTableCSVExporter not exporting content

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.2.0.BETA
    • Fix Version/s: EE-3.2.0.GA
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All
    • Assignee Priority:
      P1

      Description

      When using the OuterTableCSVExporter custom dataExporter to export outer and inner dataTable contents, its no longer exporting the data when the first row of the table does not contain nested data.

      If the first row has nested data then it exports correctly. When there is no data, all it exports is the column headers.
      1. Case11869Example.zip
        21 kB
        Arran Mccullough
      2. Case11869ExampleWAR.zip
        9.34 MB
        Arran Mccullough

        Activity

        Hide
        Arturo Zambrano added a comment -

        Committed fix to the trunk at revision 32995.

        The fix consists in resetting the data model of the inner table before the export process starts.

        Show
        Arturo Zambrano added a comment - Committed fix to the trunk at revision 32995. The fix consists in resetting the data model of the inner table before the export process starts.
        Hide
        Arturo Zambrano added a comment -

        Committed improvement at revision 33062 to export inner table headers if they are defined inisde an ace:columnGroup and ace:row's. Added constructor to OuterTableCSVExporter to only require to pass the id of the inner table; this custom exporter will try to find the inner table component instance in this case and also in the case where the instance object is passed as well but it happens to be null.

        Show
        Arturo Zambrano added a comment - Committed improvement at revision 33062 to export inner table headers if they are defined inisde an ace:columnGroup and ace:row's. Added constructor to OuterTableCSVExporter to only require to pass the id of the inner table; this custom exporter will try to find the inner table component instance in this case and also in the case where the instance object is passed as well but it happens to be null.
        Hide
        Arturo Zambrano added a comment -

        Committed a fix at revision 33081 to support inner tables nested inside other containers when using the new approach to initialize the outer table exporter.

        Updated showcase demo to use the new approach.

        Show
        Arturo Zambrano added a comment - Committed a fix at revision 33081 to support inner tables nested inside other containers when using the new approach to initialize the outer table exporter. Updated showcase demo to use the new approach.
        Hide
        Carmen Cristurean added a comment -

        Verified this change (rev# 33095) in showcase -> DataExporter -> Custom Exporter, and found this behavior: even when no innerTable has been selected, the exported csv file contains the innerTable1 data in the exported file. Is this correct?

        This JIRA cannot be verified using the attached war file, as there are errors when deploying it.

        Show
        Carmen Cristurean added a comment - Verified this change (rev# 33095) in showcase -> DataExporter -> Custom Exporter, and found this behavior: even when no innerTable has been selected, the exported csv file contains the innerTable1 data in the exported file. Is this correct? This JIRA cannot be verified using the attached war file, as there are errors when deploying it.
        Hide
        Arturo Zambrano added a comment -

        Yes, that behaviour is correct, since it's specified in the bean to use innerTable1 as the default inner table.

        Testing for this feature should be done on the showcase, so no need to use the attached war.

        Show
        Arturo Zambrano added a comment - Yes, that behaviour is correct, since it's specified in the bean to use innerTable1 as the default inner table. Testing for this feature should be done on the showcase, so no need to use the attached war.

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: