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

Juergen Donnerstag commented on WICKET-2202:
--------------------------------------------

Are you sure your testcases are correct? I think it should be assertTrue. Why 
do think these form submits should fail?

        public void testWithPanelAjax()
        {
....
                assertFalse((page.getFormSubmitted() & HomePage.AJAX) == 
HomePage.AJAX);
        }

        /**
           * 
           */
        public void testWithPanelForm()
        {
.....
                assertFalse((page.getFormSubmitted() & HomePage.NORMAL) == 
HomePage.NORMAL);
        }


> 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
>         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