Struts 2
  1. Struts 2
  2. WW-2168

Javascript validation displays error messages, cancel does not clear them

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.9
    • Fix Version/s: 2.1.3
    • Component/s: Plugin - Tags
    • Labels:
      None

      Description

      1- form validate=true
      2- fill form with invalid data
      3- click submit
      4- errors are displayed
      5- click cancel
      6- error are not cleared

        Activity

        Florent Ramière created issue -
        Hide
        Florent Ramière added a comment -

        clearErrorMessages and clearErrorLabels methods should be called upon reset action

        A solution would be in src/main/webapp/template/simple/form.ftl

        onreset="${parameters.onreset?default('clearErrorMessages(this);clearErrorLabels(this);')"

        Show
        Florent Ramière added a comment - clearErrorMessages and clearErrorLabels methods should be called upon reset action A solution would be in src/main/webapp/template/simple/form.ftl onreset="${parameters.onreset?default('clearErrorMessages(this);clearErrorLabels(this);')"
        James Holmes made changes -
        Field Original Value New Value
        Fix Version/s 2.0.11 [ 21860 ]
        James Holmes made changes -
        Fix Version/s 2.0.11 [ 21860 ]
        Fix Version/s 2.0.12 [ 21861 ]
        musachy made changes -
        Assignee Musachy Barroso [ musachy ]
        Don Brown made changes -
        Fix Version/s 2.1.3 [ 21864 ]
        Fix Version/s 2.1.2 [ 21861 ]
        Hide
        musachy added a comment -

        "onreset" added to the form tag. onreset will be set only when the form is in "xhtml" or "css_xhtml" when a form has validate="true", and "onreset" has not been set explicitly

        Show
        musachy added a comment - "onreset" added to the form tag. onreset will be set only when the form is in "xhtml" or "css_xhtml" when a form has validate="true", and "onreset" has not been set explicitly
        musachy made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Antonio Petrelli made changes -
        Workflow Struts - editable closed status [ 44474 ] Struts - editable closed status (temporary) [ 46786 ]
        Antonio Petrelli made changes -
        Workflow Struts - editable closed status (temporary) [ 46786 ] Struts - editable closed status [ 50038 ]
        Jeff Turner made changes -
        Project Import Mon Feb 01 01:17:42 UTC 2010 [ 1264987062082 ]
        Lukasz Lenart made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        307d 22h 13m 1 musachy 14/Jul/08 20:02
        Resolved Resolved Closed Closed
        1567d 3h 5m 1 Lukasz Lenart 28/Oct/12 22:07

          People

          • Assignee:
            musachy
            Reporter:
            Florent Ramière
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development