RE: Cannot set select2choice component in wicket tester

2015-10-01 Thread Lois GreeneHernandez
Thank you so much. 

Lois

-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: Thursday, October 01, 2015 11:59 AM
To: users@wicket.apache.org
Subject: Re: Cannot set select2choice component in wicket tester

Hi,

Since Select2 is a JavaScript widget usually in WicketTester tests you just 
need to submit a value for it.
FormTester ft = tester.newFormTester("theForm"); 
ft.setValue("path:to:select2Choice", "selectedOptionValue"); ft.submit();



Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Oct 1, 2015 at 7:44 AM, Lois GreeneHernandez < 
lgreenehernan...@knoa.com> wrote:

> Hello All,
>
> My form has a select2choice component.  I cannot seem to set this 
> field in my testing unit test.
>
> Any advice on how to deal with this would be greatly appreciated.
>
> Thanks
>
> Lois
>
>


Re: Cannot set select2choice component in wicket tester

2015-10-01 Thread Martin Grigorov
Hi,

Since Select2 is a JavaScript widget usually in WicketTester tests you just
need to submit a value for it.
FormTester ft = tester.newFormTester("theForm");
ft.setValue("path:to:select2Choice", "selectedOptionValue");
ft.submit();



Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Oct 1, 2015 at 7:44 AM, Lois GreeneHernandez <
lgreenehernan...@knoa.com> wrote:

> Hello All,
>
> My form has a select2choice component.  I cannot seem to set this field in
> my testing unit test.
>
> Any advice on how to deal with this would be greatly appreciated.
>
> Thanks
>
> Lois
>
>