ICEfaces
  1. ICEfaces
  2. ICE-7317

ace:dataExporter inside ui:Repeat issue

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1-Beta
    • Fix Version/s: 3.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Grimlock code rev# 25870, all major browsers (IE8, IE7, Firefox 6, Firefox 3.6, Gchrome14), tomcat6 server.
    • Assignee Priority:
      P1

      Description

      The ace:dataExporter does not function when it is placed inside an ui:Repeat.
      The "target" attribute of the ace:dataExporter is being used to identify the ace:dataTable containing the data to be exported, and this table is within the same form, but outside the ui:Repeat containing the dataExporter.
      When trying to export data, a Server Internal Error happens (screen shots attached), and the below error is thrown in the server log.

      4-Oct-2011 4:13:01 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute
      WARNING: Cannot find component "carTable" in view.
      javax.faces.FacesException: Cannot find component "carTable" in view.
              at org.icefaces.ace.component.export.DataExporter.processAction(DataExpo
      rter.java:104)
              at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
              at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:
      769)
              at javax.faces.component.UICommand.broadcast(UICommand.java:300)
              at javax.faces.component.UIData.broadcast(UIData.java:1093)
              at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)

              at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1
      259)
              at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
      ionPhase.java:81)
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
      1. IE8.png
        216 kB
      2. IE7.png
        71 kB
      3. dataExporter-in-UI-Repeat.png
        105 kB

        Issue Links

          Activity

          Hide
          Carmen Cristurean added a comment -

          To reproduce the issue check out test app from:
          http://server.ice:8888/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/dataExporter

          load the page: http://localhost:8080/dataExporter/dataExporterRepeat.jsf

          and click on any of the 'Export File' buttons.

          Show
          Carmen Cristurean added a comment - To reproduce the issue check out test app from: http://server.ice:8888/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/dataExporter load the page: http://localhost:8080/dataExporter/dataExporterRepeat.jsf and click on any of the 'Export File' buttons.
          Hide
          Arturo Zambrano added a comment -

          I managed to make the data exporter find the table component and sucessfully export the table. However, there's a problem with the file delivery. It's something similar to what we've seen before with the client expecting a JSF response and complaining that the response contains no XML, or if the exported file is in XML format, it complains that the response body cannot be parsed.

          Show
          Arturo Zambrano added a comment - I managed to make the data exporter find the table component and sucessfully export the table. However, there's a problem with the file delivery. It's something similar to what we've seen before with the client expecting a JSF response and complaining that the response contains no XML, or if the exported file is in XML format, it complains that the response body cannot be parsed.
          Hide
          Arturo Zambrano added a comment -

          This issue was fixed by changes committed as part of ICE-7381.

          Show
          Arturo Zambrano added a comment - This issue was fixed by changes committed as part of ICE-7381 .
          Hide
          Carmen Cristurean added a comment -

          Fix has been tested with icefaces3 rev 27114, in all major browsers.

          Note: a JS error occurs in IE8 and a Runtime error in IE7, when exporting file, then changing export type to any other type and exporting again.

          Message: 'ice.ace.DataExporters.panelForm:panelRepeat:0:dataExporter4' is null or not an object
          Line: 36569817
          Char: 296
          Code: 0
          URI: http://localhost:8080/dataExporter/dataExporterRepeat.jsf

          Show
          Carmen Cristurean added a comment - Fix has been tested with icefaces3 rev 27114, in all major browsers. Note: a JS error occurs in IE8 and a Runtime error in IE7, when exporting file, then changing export type to any other type and exporting again. Message: 'ice.ace.DataExporters.panelForm:panelRepeat:0:dataExporter4' is null or not an object Line: 36569817 Char: 296 Code: 0 URI: http://localhost:8080/dataExporter/dataExporterRepeat.jsf
          Hide
          Carmen Cristurean added a comment -

          Attached screen shots for the recent errors.

          Show
          Carmen Cristurean added a comment - Attached screen shots for the recent errors.
          Hide
          Arturo Zambrano added a comment -

          Fixed at revision 27125 with a fix related to ICE-7640.

          Show
          Arturo Zambrano added a comment - Fixed at revision 27125 with a fix related to ICE-7640.
          Hide
          Carmen Cristurean added a comment -

          Verified fix with code revision 27126, in IE7 (icepc13), IE8, FF3.6, Chrome15.

          Show
          Carmen Cristurean added a comment - Verified fix with code revision 27126, in IE7 (icepc13), IE8, FF3.6, Chrome15.

            People

            • Assignee:
              Arturo Zambrano
              Reporter:
              Carmen Cristurean
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: