[
https://issues.apache.org/jira/browse/WICKET-2202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719955#action_12719955
]
Rob Sonke commented on WICKET-2202:
-----------------------------------
Hi Juergen,
Thanks for trying to fix this issue. As a colleague of Thijs I started using
this fix with nested forms. But there still is a problem with the
formvalidators on nested forms. The test you added according to Thijs' patch is
not exactly the same as the one Thijs provided. There's a minor difference in
HomePageTest.testWithPanelForm()
HomePageTest.testWithPanelAjax()
You added it with the assertTrue() check but it's actually an assertFalse().
Now the tests pass but they shoudn't.
We suspect that the problem lies in FeedbackMessages.hasMessageFor(). The
provided component is not equal to the message.getReporter() which result in a
return value "false". But we're not sure about that. It might have another
cause.
> 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
> Assignee: Juergen Donnerstag
> Fix For: 1.4-RC3
>
> 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.