OK, I think I get it now Martin:
----------
WicketTester tester = new WicketTester(webapp);
tester.setupRequestAndResponse();
FormTester formTester4Ajax =
tester.newFormTester("mainPanel:officeSelectorForm");
formTester4Ajax.select("brands", 0);
tester.executeAjaxEvent("mainPanel:officeSelectorForm:brands", "onchange");
tester.assertComponentOnAjaxResponse("mainPanel:officeSelectorForm:categories");
formTester4Ajax.select("categories", 0);
tester.executeAjaxEvent("mainPanel:officeSelectorForm:categories",
"onchange");
tester.assertComponentOnAjaxResponse("mainPanel:officeSelectorForm:titles");
FormTester formTester4Submit =
tester.newFormTester("mainPanel:officeSelectorForm");
formTester4Submit.select("brands", 0);
formTester4Submit.select("categories", 0);
formTester4Submit.select("titles", 0);
formTester4Submit.submit();
----------
Not quite sure why it works but it does. Thanks very much =)
--
View this message in context:
http://old.nabble.com/WicketTester----No-Form-onSubmit-when-using-Ajax-DropDownChoice-Component-tp27006022p27022783.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]