[ 
https://issues.apache.org/jira/browse/WICKET-2202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12694945#action_12694945
 ] 

Thijs Vonk commented on WICKET-2202:
------------------------------------

The problem is caused by the the fact that the IVisitor is changed from a 
Component.IVisitor to a FormComponent.IVisitor. 

But the panel containing the form is not of type FormComponent, so child 
(form)components are never checked.



Second side note, the testcase that should test if the form inside the border 
is validated correctly also works with the old implementation of the 
Form#anyFormComponentError() from before wicket-2025. So it doesn't check the 
problem that  wicket-2025 should have fixed.

> Form gets submitted using AjaxSubmitBehavior when sub-form has error's
> ----------------------------------------------------------------------
>
>                 Key: WICKET-2202
>                 URL: https://issues.apache.org/jira/browse/WICKET-2202
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-RC2
>            Reporter: Thijs Vonk
>         Attachments: WICKET-2202-tests-1.3.patch, WICKET-2202-tests-1.4.patch
>
>
> from 
> http://www.nabble.com/Should-a-form-submit-when-sub-form-has-error%27s--tt22803314.html
> I have a main-form where I add a panel that contains another form.
> This sub-form contains a formvalidator that gives the error.
> However the main-form is submitted, but the feedbackpanel does show the error 
> message set in the sub-form's validator.
> I'll attach 2 patches with testcases displaying the behavior in wicket 1.3 vs 
> 1.4
> (As a side note, I had to rename the 
> org.apache.wicket.markup.html.form.validation.TestHomePage to 
> org.apache.wicket.markup.html.form.validation.HomePageTest to get the test to 
> run when building wicket)

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

Reply via email to