ICEfaces
  1. ICEfaces
  2. ICE-10115

Add a new "clear" mode to the ace:pushButton, ace:linkButton

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 4

      Description

      A useful feature for an application is to provide a "Reset" button on a form to allow the use to reset all form fields to their original states, prior to any user modifications.

      This JIRA is to add a new "type" attribute to the ace:pushButton and ace:linkButton components. When the specified type is 'clear', the button will invoke the ice.ace.clearForm() function on the parent form, clearing all entry components in the same form prior to any user modification.

        Issue Links

          Activity

          Ken Fyten created issue -
          Ken Fyten made changes -
          Field Original Value New Value
          Summary Add "type='reset'" type functionality to the ace:pushButton Add a new "reset" boolean attribute to the ace:pushButton, ace:linkButton
          Fix Version/s 4.1 [ 11375 ]
          Description x A useful feature for an application is to provide a "Reset" button on a form to allow the use to reset all form fields to their original states, prior to any user modifications.

          This JIRA is to add a new "reset" boolean attribute to the ace:pushButton and ace:linkButton components. When "reset='true'" the button will reset all entry components in the same form to their original values prior to any user modification.

          Affects Documentation (User Guide, Ref. Guide, etc.),Sample App./Tutorial [ 10003, 10001 ]
          Hide
          Ken Fyten added a comment -

          Note: This JIRA depends on ICE-10114 in order to function reliably with all "h:", ACE, and MOBI components.

          Show
          Ken Fyten added a comment - Note: This JIRA depends on ICE-10114 in order to function reliably with all "h:", ACE, and MOBI components.
          Ken Fyten made changes -
          Link This issue depends on ICE-10114 [ ICE-10114 ]
          Hide
          Krashan Brahmanjara added a comment - - edited

          This option isn't necessarry.
          At this moment you can use <ace:pushButton type="reset" value="cancel" immediate="true" />. It works well.
          Missing attributes are onClick and actionListener but they are also not really necessary.
          Tested examples

          • onClick="ice.ace.instance('popup').hide();"
          • actionListener="# {bean.cancelEvent}

            "

          Show
          Krashan Brahmanjara added a comment - - edited This option isn't necessarry. At this moment you can use <ace:pushButton type="reset" value="cancel" immediate="true" />. It works well. Missing attributes are onClick and actionListener but they are also not really necessary. Tested examples onClick="ice.ace.instance('popup').hide();" actionListener="# {bean.cancelEvent} "
          Hide
          Ken Fyten added a comment -

          Assigned to Art to integrate the new ICE-10114 ACE/MOBI component reset feature with these buttons.

          Show
          Ken Fyten added a comment - Assigned to Art to integrate the new ICE-10114 ACE/MOBI component reset feature with these buttons.
          Ken Fyten made changes -
          Assignee Arturo Zambrano [ artzambrano ]
          Assignee Priority P1 [ 10010 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #46522 Fri Dec 11 12:00:11 MST 2015 art.zambrano ICE-10115 added 'reset' attribute to ace:pushButton and ace:linkButton
          Files Changed
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/pushbutton/PushButtonMeta.java
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/pushbutton/pushbutton.js
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/linkbutton/LinkButtonMeta.java
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/pushbutton/PushButtonRenderer.java
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/linkbutton/linkbutton.js
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/linkbutton/LinkButtonRenderer.java
          Hide
          Arturo Zambrano added a comment -

          r46522: added 'reset' attribute to ace:pushButton and ace:linkButton

          Show
          Arturo Zambrano added a comment - r46522: added 'reset' attribute to ace:pushButton and ace:linkButton
          Arturo Zambrano made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Arturo Zambrano added a comment -

          r46549: removed 'reset' attribute and added 'type' attribute to ace:pushButton and ace:linkButton, in order to support the clearForm() functionality and eventually the resetForm() functionality as well

          Show
          Arturo Zambrano added a comment - r46549: removed 'reset' attribute and added 'type' attribute to ace:pushButton and ace:linkButton, in order to support the clearForm() functionality and eventually the resetForm() functionality as well
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #46549 Wed Dec 16 11:00:16 MST 2015 art.zambrano ICE-10115 removed 'reset' attribute and added 'type' attribute to ace:pushButton and ace:linkButton, in order to support the clearForm() functionality and eventually the resetForm() functionality as well
          Files Changed
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/pushbutton/PushButtonMeta.java
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/pushbutton/pushbutton.js
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/linkbutton/LinkButtonMeta.java
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/pushbutton/PushButtonRenderer.java
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/resources/icefaces.ace/linkbutton/linkbutton.js
          Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/linkbutton/LinkButtonRenderer.java
          Arturo Zambrano made changes -
          Summary Add a new "reset" boolean attribute to the ace:pushButton, ace:linkButton Add a new "clear" mode to the ace:pushButton, ace:linkButton
          Arturo Zambrano made changes -
          Description A useful feature for an application is to provide a "Reset" button on a form to allow the use to reset all form fields to their original states, prior to any user modifications.

          This JIRA is to add a new "reset" boolean attribute to the ace:pushButton and ace:linkButton components. When "reset='true'" the button will reset all entry components in the same form to their original values prior to any user modification.

          A useful feature for an application is to provide a "Reset" button on a form to allow the use to reset all form fields to their original states, prior to any user modifications.

          This JIRA is to add a new "type" attribute to the ace:pushButton and ace:linkButton components. When the specified type is 'clear', the button will invoke the ice.ace.clearForm() function on the parent form, clearing all entry components in the same form prior to any user modification.

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #46565 Thu Dec 17 12:02:14 MST 2015 liana.munroe ICE-10874, ICE-10115 - New demos added to showcase for pushButton/LinkButton Clear functionality.
          Files Changed
          Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/view/menu/data/CentralDataList.java
          Commit graph ADD /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/pushButton/PushButtonTypeBean.java
          Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/resources/org/icefaces/samples/showcase/view/resources/messages.properties
          Commit graph ADD /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/linkButton/linkbuttonClearType.xhtml
          Commit graph ADD /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/linkButton/LinkButtonTypeBean.java
          Commit graph ADD /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/pushButton/pushbuttonClearType.xhtml
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #46567 Thu Dec 17 12:24:56 MST 2015 liana.munroe ICE-10874, ICE-10115 - New demos added to showcase for pushButton/LinkButton Clear functionality.
          Files Changed
          Commit graph MODIFY /icefaces4/tags/icefaces-4.1.0/icefaces/samples/showcase/showcase/src/main/resources/org/icefaces/samples/showcase/view/resources/messages.properties
          Commit graph ADD /icefaces4/tags/icefaces-4.1.0/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/linkButton/LinkButtonTypeBean.java
          Commit graph ADD /icefaces4/tags/icefaces-4.1.0/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/pushButton/pushbuttonClearType.xhtml
          Commit graph MODIFY /icefaces4/tags/icefaces-4.1.0/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/view/menu/data/CentralDataList.java
          Commit graph ADD /icefaces4/tags/icefaces-4.1.0/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/linkButton/linkbuttonClearType.xhtml
          Commit graph ADD /icefaces4/tags/icefaces-4.1.0/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/pushButton/PushButtonTypeBean.java
          Hide
          Liana Munroe added a comment -

          Verified ICEfaces 4 trunk r46549. ace:radioButtons issue is resolved.
          QA test apps using the new attributes for ace:linkButton and ace:pushButton have been checked in.
          /ICE-10114.jsf and /ICE-10114mobi.jsf
          http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/linkButton
          http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/pushButton

          Show
          Liana Munroe added a comment - Verified ICEfaces 4 trunk r46549. ace:radioButtons issue is resolved. QA test apps using the new attributes for ace:linkButton and ace:pushButton have been checked in. / ICE-10114 .jsf and / ICE-10114 mobi.jsf http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/linkButton http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/pushButton
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Arturo Zambrano
              Reporter:
              Ken Fyten
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: