ICEfaces
  1. ICEfaces
  2. ICE-4730

dataExporter should give the user the option of rendering a button

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2-RC1, 1.8.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      -
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      The ice:dataExporter component should give the user the option of rendering a button. The current component will let you either render a link or an image file.

        Activity

        Hide
        Ken Fyten added a comment -

        Add a new attribute, "renderLabelAsButton", boolean, default=false. When renderLabelAsButton=true the label text will be the label of a commandButton, instead of an anchor link.

        The order of precedence is important here and should be documented in the TLD description for the component:

        1. If image URL is specified, the label text will become the alt text for the image, the image is a clickable anchor to trigger the export operation. This supercedes the following two configurations.
        2. If renderLabelAsButton=true, the label text will used for a commandButton that will trigger the export operation.
        3. (default) The label text is rendered as an anchor which, when clicked, will trigger the export operation.

        Show
        Ken Fyten added a comment - Add a new attribute, "renderLabelAsButton", boolean, default=false. When renderLabelAsButton=true the label text will be the label of a commandButton, instead of an anchor link. The order of precedence is important here and should be documented in the TLD description for the component: 1. If image URL is specified, the label text will become the alt text for the image, the image is a clickable anchor to trigger the export operation. This supercedes the following two configurations. 2. If renderLabelAsButton=true, the label text will used for a commandButton that will trigger the export operation. 3. (default) The label text is rendered as an anchor which, when clicked, will trigger the export operation.
        Hide
        Adnan Durrani added a comment -

        New boolean "renderLabelAsButton" attribute has been added which complies all above rules.

        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\custom\dataExporter-renderer.xml
        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-metadata\src\main\resources\conf\custom\dataExporter-renderer.xml
        Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java
        Completed: At revision: 19169

        Show
        Adnan Durrani added a comment - New boolean "renderLabelAsButton" attribute has been added which complies all above rules. 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\custom\dataExporter-renderer.xml 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-metadata\src\main\resources\conf\custom\dataExporter-renderer.xml Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java Completed: At revision: 19169
        Hide
        Joanne Bai added a comment -

        Features tested with success on ICEfaces trunk revision 19177 + FF 3.5 and 3.0 (Testings on IE are blocked by ICE-4223)

        Test app and scripts committed to repo\qa\trunk\Regression\ICE-4730

        Show
        Joanne Bai added a comment - Features tested with success on ICEfaces trunk revision 19177 + FF 3.5 and 3.0 (Testings on IE are blocked by ICE-4223 ) Test app and scripts committed to repo\qa\trunk\Regression\ ICE-4730

          People

          • Assignee:
            Adnan Durrani
            Reporter:
            Tyler Johnson
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: