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

        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P2
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #20024 Fri Dec 18 11:36:35 MST 2009 adnan.durrani 1.8.2EE DataExporter changes moved to Compat DataExporter towards ICE-4481. The changes include the fix of following JIRAs ICE-4484, ICE-4390, ICE-4660, ICE-4223, ICE-4823, ICE-4836, ICE-4837, ICE-4764, ICE-4730, ICE-4844, ICE-4289, ICE-4826, ICE-4863, ICE-4934, ICE-4955
        Files Changed
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/component-metadata/src/main/resources/conf/ice_cust_properties/cust-dataExporter-props.xml
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/core/src/main/resources/META-INF/resources/ice-extras.js
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/samples/component-showcase/web/WEB-INF/includes/examples/custom/dataTable-dataExporter.xhtml
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/dataexporter/DataExporter.java
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/dataexporter/DataExporterRenderer.java
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/core/src/main/java/com/icesoft/faces/util/CoreUtils.java
        Ken Fyten made changes -
        Fix Version/s 1.8.2-RC1 [ 10210 ]
        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
        Adnan Durrani made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19169 Tue Aug 18 13:18:51 MDT 2009 adnan.durrani Fix for ICE-4730(dataExporter should give the user the option of rendering a button)
        new boolean "renderLabelAsButton" attribute has been added added
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/custom/dataExporter-renderer.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/dataexporter/DataExporterRenderer.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-dataExporter-props.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/dataexporter/DataExporter.java
        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.
        Adnan Durrani made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Ken Fyten made changes -
        Affects [Documentation (User Guide, Ref. Guide, etc.)]
        Assignee Priority P2
        Assignee Adnan Durrani [ adnan.durrani ]
        Ken Fyten made changes -
        Fix Version/s 1.8.2 [ 10190 ]
        Tyler Johnson made changes -
        Field Original Value New Value
        Salesforce Case [50070000009MS6n]
        Tyler Johnson created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved: