[ 
https://issues.apache.org/jira/browse/WICKET-3729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Grigorov resolved WICKET-3729.
-------------------------------------

    Resolution: Invalid

Its javadoc says it all: 
Ajax event behavior that submits the form and updates all form feedback panels 
on the page.
Useful for providing instant feedback.


For client side validation you should use some specialized JavaScript library.
Priority "Critical" means "Production site is down".

> AjaxFormValidtingBehavior should not cause form submission when their is no 
> error. 
> -----------------------------------------------------------------------------------
>
>                 Key: WICKET-3729
>                 URL: https://issues.apache.org/jira/browse/WICKET-3729
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.4.17
>            Reporter: chun ping wang
>            Priority: Critical
>              Labels: ajax, submit, validation
>
> AjaxFormValidatingBehavior.addToAllFormComponents(myForm, "onchange"); would 
> cause a form submission if their is no error. 
> Most of the time you do not want the form to submit but rather only have 
> client side validation. 
> example: 
> i enter 24AA on phone number.. i get an error. 
> I enter 1234568899 .. i don't get an error but I shouldn't have my input 
> submitted. 
> Maybe some option to decide if you should submit when their is no error. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to