Hi!

You can call the following for your dropdowndown component:

wicketTester.getServletRequest().setParameter(dropDownComponent.getInputName(),
value);

.. and then call wiketTester.executeAjaxEvent(dropDownComponent, "onchange");

**
Martin


2009/3/20 alexander.elsholz <[email protected]>:
>
> Hi,
>
> exists a possibility to test, for example a dropdownchoice without
> formtester?
>
> my ddc isn't placed on a form, so i actually don't know how to test this
> component - how can i simulate the userinput? i don't want to put this
> component i a form, only for test.
> the value is updated via ajax-onchange behavior.
>
> thanks alex
> --
> View this message in context: 
> http://www.nabble.com/Wicket-tests-without-FormTester-tp22609725p22609725.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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to