You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Florent Ramière (JIRA)" <ji...@apache.org> on 2007/09/10 22:50:34 UTC

[jira] Created: (WW-2168) Javascript validation displays error messages, cancel does not clear them

Javascript validation displays error messages, cancel does not clear them
-------------------------------------------------------------------------

                 Key: WW-2168
                 URL: https://issues.apache.org/struts/browse/WW-2168
             Project: Struts 2
          Issue Type: Bug
          Components: Views
    Affects Versions: 2.0.9
            Reporter: Florent Ramière


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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2168) Javascript validation displays error messages, cancel does not clear them

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2168:
-----------------------------

    Fix Version/s:     (was: 2.0.11)
                   2.0.12

> Javascript validation displays error messages, cancel does not clear them
> -------------------------------------------------------------------------
>
>                 Key: WW-2168
>                 URL: https://issues.apache.org/struts/browse/WW-2168
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.9
>            Reporter: Florent Ramière
>             Fix For: 2.0.12
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2168) Javascript validation displays error messages, cancel does not clear them

Posted by "Florent Ramière (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42170 ] 

Florent Ramière commented on WW-2168:
-------------------------------------

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);')"



> Javascript validation displays error messages, cancel does not clear them
> -------------------------------------------------------------------------
>
>                 Key: WW-2168
>                 URL: https://issues.apache.org/struts/browse/WW-2168
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.9
>            Reporter: Florent Ramière
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2168) Javascript validation displays error messages, cancel does not clear them

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-2168.
---------------------------------

    Resolution: Fixed

"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

> Javascript validation displays error messages, cancel does not clear them
> -------------------------------------------------------------------------
>
>                 Key: WW-2168
>                 URL: https://issues.apache.org/struts/browse/WW-2168
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.9
>            Reporter: Florent Ramière
>            Assignee: Musachy Barroso
>             Fix For: 2.1.3
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (WW-2168) Javascript validation displays error messages, cancel does not clear them

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso reassigned WW-2168:
-----------------------------------

    Assignee: Musachy Barroso

> Javascript validation displays error messages, cancel does not clear them
> -------------------------------------------------------------------------
>
>                 Key: WW-2168
>                 URL: https://issues.apache.org/struts/browse/WW-2168
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.9
>            Reporter: Florent Ramière
>            Assignee: Musachy Barroso
>             Fix For: 2.0.12
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2168) Javascript validation displays error messages, cancel does not clear them

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2168:
-----------------------------

    Fix Version/s: 2.0.11

> Javascript validation displays error messages, cancel does not clear them
> -------------------------------------------------------------------------
>
>                 Key: WW-2168
>                 URL: https://issues.apache.org/struts/browse/WW-2168
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.9
>            Reporter: Florent Ramière
>             Fix For: 2.0.11
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.