ICEfaces
  1. ICEfaces
  2. ICE-4389

Make it configurable so the dataExporter component can renderer an image for the link that creates a file

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: 1.8.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      dataExporter + img

      Description

      Make it configurable so the dataExporter component can renderer an image for the link that creates a file.

        Issue Links

          Activity

          Hide
          Adnan Durrani added a comment -
          • New attribute added "clickToCreateFileImage":
            The image path that will be used to display an image for create file link instead of text. The text assigned to "clickToCreateFileText" will be assigned to "alt" and "title" property of the image.
          • Exposed existing "image" attribute as well, that can be used for download link:
            The image path that will be used to display an image for download file link instead of text.

          Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java
          Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporterRenderer.java
          Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-dataExporter-props.xml
          Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporterRenderer.java
          Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-dataExporter-props.xml
          Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java
          Completed: At revision: 18803

          Show
          Adnan Durrani added a comment - New attribute added "clickToCreateFileImage": The image path that will be used to display an image for create file link instead of text. The text assigned to "clickToCreateFileText" will be assigned to "alt" and "title" property of the image. Exposed existing "image" attribute as well, that can be used for download link: The image path that will be used to display an image for download file link instead of text. Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporterRenderer.java Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-dataExporter-props.xml Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporterRenderer.java Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-dataExporter-props.xml Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java Completed: At revision: 18803
          Hide
          Ken Fyten added a comment -

          This feature will need to change to accomodate the suggested changes in ICE-4390.

          Specifically:

          1. The new "clicktoCreateFileImage" attribute should be removed altogether as there will no longer be a "clickToCreateFileText" link to render it in.

          2. The "image" attribute should be renamed "labelImage" and the TLD description expanded to something more complete, like this:

          "A URL to an image file that will be rendered instead of the "label" text as the link to trigger data export file generation and download. The text assigned to "label" attribute will be assigned to "alt" and "title" property of the image."

          Show
          Ken Fyten added a comment - This feature will need to change to accomodate the suggested changes in ICE-4390 . Specifically: 1. The new "clicktoCreateFileImage" attribute should be removed altogether as there will no longer be a "clickToCreateFileText" link to render it in. 2. The "image" attribute should be renamed "labelImage" and the TLD description expanded to something more complete, like this: "A URL to an image file that will be rendered instead of the "label" text as the link to trigger data export file generation and download. The text assigned to "label" attribute will be assigned to "alt" and "title" property of the image."
          Hide
          Adnan Durrani added a comment -

          The "image" attribute can be use for this purpose.

          Show
          Adnan Durrani added a comment - The "image" attribute can be use for this purpose.
          Hide
          Ken Fyten added a comment -

          With the change to the dataExporter in ICe-4390 so that only a single click is required to generate and download an export file, this JIRA is no longer relevant. The existing 'image' attribute can be used to display an image instead of a text link to initiate the download.

          Show
          Ken Fyten added a comment - With the change to the dataExporter in ICe-4390 so that only a single click is required to generate and download an export file, this JIRA is no longer relevant. The existing 'image' attribute can be used to display an image instead of a text link to initiate the download.
          Hide
          Kevin Potts added a comment - - edited

          I'm using the image attribute, but ICE Faces adds a blue border around my gif image. What can I use to elimanate the border?

          Show
          Kevin Potts added a comment - - edited I'm using the image attribute, but ICE Faces adds a blue border around my gif image. What can I use to elimanate the border?
          Hide
          Adnan Durrani added a comment -

          try adding this rule:

          <style>
          .iceDatExp img

          { border:none; }

          </style>

          Show
          Adnan Durrani added a comment - try adding this rule: <style> .iceDatExp img { border:none; } </style>

            People

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

              Dates

              • Created:
                Updated:
                Resolved: