ICEfaces
  1. ICEfaces
  2. ICE-6836

DataExporter prints out f:param values in a commandLink

    Details

    • Assignee Priority:
      P1

      Description

      The dataExporter component prints out the f:param values that are nested in a commandLink. This causes the output to be repeated or copied to the excel file.

      Sample code:

              <ice:form>
                  <ice:panelGroup>
                      <ice:panelGroup>
                          <ice:dataExporter for="dataExportTable" ignorePagination="true"
                                            label="Download To Excel file" type="excel"
                                            style="text-align:right"
                                            clickToCreateFileText="Click to create Excel file " />
                      </ice:panelGroup>
                      <ice:panelGroup>
                          <ice:dataTable value="#{testBean.itemList}"
                                         var="item"
                                         id="dataExportTable">
                              <ice:column>
                                  <f:facet name="header">
                                      <ice:outputText value="Column One"/>
                                  </f:facet>
                                  <ice:outputText value="#{item.itemOne}"/>
                              </ice:column>
                              <ice:column>
                                  <f:facet name="header">
                                      <ice:outputText value="Column Two"/>
                                  </f:facet>
                                  <ice:commandLink value="#{item.itemLink}">
                                      <f:param name="link" value="#{item.itemLink}"/>
                                  </ice:commandLink>
                              </ice:column>
                          </ice:dataTable>
                      </ice:panelGroup>
                  </ice:panelGroup>
              </ice:form>

        Activity

        Hide
        Ken Fyten added a comment -

        The fix is to not print out f:params during data export.

        Show
        Ken Fyten added a comment - The fix is to not print out f:params during data export.
        Hide
        Adnan Durrani added a comment -

        Command: Commit
        Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java
        Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java
        Completed: At revision: 24554

        Show
        Adnan Durrani added a comment - Command: Commit Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java Completed: At revision: 24554
        Hide
        Adnan Durrani added a comment -

        Command: Commit
        Modified: D:\work\development\head\svn\ossrepo\icefaces2\branches\icefaces-2.0.x-maintenance\icefaces\compat\components\src\main\java\com\icesoft\faces\component\dataexporter\DataExporter.java
        Sending content: D:\work\development\head\svn\ossrepo\icefaces2\branches\icefaces-2.0.x-maintenance\icefaces\compat\components\src\main\java\com\icesoft\faces\component\dataexporter\DataExporter.java
        Completed: At revision: 24555

        Show
        Adnan Durrani added a comment - Command: Commit Modified: D:\work\development\head\svn\ossrepo\icefaces2\branches\icefaces-2.0.x-maintenance\icefaces\compat\components\src\main\java\com\icesoft\faces\component\dataexporter\DataExporter.java Sending content: D:\work\development\head\svn\ossrepo\icefaces2\branches\icefaces-2.0.x-maintenance\icefaces\compat\components\src\main\java\com\icesoft\faces\component\dataexporter\DataExporter.java Completed: At revision: 24555
        Hide
        Adnan Durrani added a comment -

        Command: Commit
        Modified: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\compat\components\src\main\java\com\icesoft\faces\component\dataexporter\DataExporter.java
        Sending content: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\compat\components\src\main\java\com\icesoft\faces\component\dataexporter\DataExporter.java
        Completed: At revision: 24556

        Show
        Adnan Durrani added a comment - Command: Commit Modified: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\compat\components\src\main\java\com\icesoft\faces\component\dataexporter\DataExporter.java Sending content: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\compat\components\src\main\java\com\icesoft\faces\component\dataexporter\DataExporter.java Completed: At revision: 24556
        Hide
        Renuka Shah added a comment -

        I downloaded EE-1.8.2.GA_P03 and replaced old icefaces.jar, icefaces-facelets.jar and icefaces-comps.jar with new ones.
        I still see duplicate string in the exported data. Do I need to replace any other jar?

        Show
        Renuka Shah added a comment - I downloaded EE-1.8.2.GA_P03 and replaced old icefaces.jar, icefaces-facelets.jar and icefaces-comps.jar with new ones. I still see duplicate string in the exported data. Do I need to replace any other jar?

          People

          • Assignee:
            Adnan Durrani
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: