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

          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.
          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.
          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
          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
          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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: