Re: How to set multi value in wicket tester

2015-11-06 Thread Maxim Solodovnik
My bad, sorry, search formTester for this :( Thanks again! On Fri, Nov 6, 2015 at 6:29 PM, Martin Grigorov wrote: > How so? > Your test creates the tester (WicketTester) and later uses it to create the > FormTester: tester.newFormTester(...) > So it is reachable > > Martin Grigorov > Wicket Trai

Re: wicketstuff-select2 in wicket 7.1.0

2015-11-06 Thread Rob Audenaerde
Thanks! On Nov 6, 2015 12:00, "Maxim Solodovnik" wrote: > Main fixes are in https://github.com/wicketstuff/core/issues/411 > Hopefully will address all issues this week > > On Fri, Nov 6, 2015 at 4:55 PM, Martin Grigorov > wrote: > > > Hi, > > > > See https://github.com/wicketstuff/core/issues/4

Re: How to set multi value in wicket tester

2015-11-06 Thread Martin Grigorov
How so? Your test creates the tester (WicketTester) and later uses it to create the FormTester: tester.newFormTester(...) So it is reachable Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Nov 6, 2015 at 1:26 PM, Maxim Solodovnik wrote: > The only issue wit

Re: How to set multi value in wicket tester

2015-11-06 Thread Maxim Solodovnik
The only issue with this approach: tester is private :( On Fri, Nov 6, 2015 at 6:22 PM, Maxim Solodovnik wrote: > Great, thanks a lot! > > On Fri, Nov 6, 2015 at 6:21 PM, Martin Grigorov > wrote: > >> Hi Maxim, >> >> You can use >> tester.getRequest().addParameter(select2.getInputName(), "CA")

Re: How to set multi value in wicket tester

2015-11-06 Thread Maxim Solodovnik
Great, thanks a lot! On Fri, Nov 6, 2015 at 6:21 PM, Martin Grigorov wrote: > Hi Maxim, > > You can use > tester.getRequest().addParameter(select2.getInputName(), "CA") > tester.getRequest().addParameter(select2.getInputName(), "BE") > > Martin Grigorov > Wicket Training and Consulting > https:/

Re: How to set multi value in wicket tester

2015-11-06 Thread Martin Grigorov
Hi Maxim, You can use tester.getRequest().addParameter(select2.getInputName(), "CA") tester.getRequest().addParameter(select2.getInputName(), "BE") Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Nov 6, 2015 at 12:56 PM, Maxim Solodovnik wrote: > Actually

Re: How to set multi value in wicket tester

2015-11-06 Thread Maxim Solodovnik
Actually I feel I need method like: formTester.setValue(page.country, new String[]{"CA","BE"}); Maybe someone knows how this can be done/work-arounded? On Fri, Nov 6, 2015 at 5:36 PM, Maxim Solodovnik wrote: > Hello All, > > I'm currently trying to write tests for Select2MultiChoice wicketstuff

How to set multi value in wicket tester

2015-11-06 Thread Maxim Solodovnik
Hello All, I'm currently trying to write tests for Select2MultiChoice wicketstuff component. Previously there was an option to set multiple values like this: formTester.setValue(page.country, "CA,BE"); In previous version this component was based on HiddenField and everything was working In sele

Re: wicketstuff-select2 in wicket 7.1.0

2015-11-06 Thread Maxim Solodovnik
Main fixes are in https://github.com/wicketstuff/core/issues/411 Hopefully will address all issues this week On Fri, Nov 6, 2015 at 4:55 PM, Martin Grigorov wrote: > Hi, > > See https://github.com/wicketstuff/core/issues/429 and > https://github.com/wicketstuff/core/issues/430. > It is working i

Re: wicketstuff-select2 in wicket 7.1.0

2015-11-06 Thread Martin Grigorov
Hi, See https://github.com/wicketstuff/core/issues/429 and https://github.com/wicketstuff/core/issues/430. It is working in 7.2.0-SNAPSHOT. And 7.0.0 (with Select2 3.x) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Nov 6, 2015 at 11:51 AM, Rob Audenaerde

wicketstuff-select2 in wicket 7.1.0

2015-11-06 Thread Rob Audenaerde
Has anyone got this working? -Rob