rag...@directi schrieb:
Can any one please help me with testing an AjaxSubmitButton on a form.
I am using tester.executeAjaxEvent to call the event. But I am not sure how
to set the data on the form and submit the data while using an ajax submit
button
There is a form tester
FormTester ft = _wicketTester.newFormTester("apanel:aform");
ft.setValue("componentOnForm", "theValue");
...
ft.select("componentOnFormSelectable", indexOfValue);
ft.submit();
You have to call submit at the end. Otherwise the call of
executeAjaxEvent has no data in form.
At least the data you've just assigned. Initial data from form are still
there if you don't do ft.submit().
HTH
Per
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]