Hi All,
I'm having an issue when using WicketTester with a form that has 3
DropDownChoice component, which are linked together using the
AjaxFormComponentUpdatingBehavior. In the following code snippet,
selecting from the "brands" DropDownChoice causes the "categories"
DropDownChoice to be filled. Then, selecting from the "categories"
DropDownChoice causes the "titles" DropDownChoice to be filled.
All of this works fine. However, the call to formTester.submit()
does not trigger the form's onSubmit method. Any ideas what I am
doing wrong? This is using Wicket version 1.3.7.
Thanks,
Steve
----------
WicketTester tester = new WicketTester(webapp);
tester.setupRequestAndResponse();
FormTester formTester = tester.newFormTester("mainPanel:officeSelectorForm");
formTester.select("brands", 0);
tester.executeAjaxEvent("mainPanel:officeSelectorForm:brands", "onchange");
tester.assertComponentOnAjaxResponse("mainPanel:officeSelectorForm:categories");
formTester.select("categories", 0);
tester.executeAjaxEvent("mainPanel:officeSelectorForm:categories", "onchange");
tester.assertComponentOnAjaxResponse("mainPanel:officeSelectorForm:titles");
formTester.select("titles", 0);
formTester.submit();
----------