Re: FormTester and Ajax

2018-04-08 Thread Sven Meier
Hi, FormTest#select() sets the value of that component into the request *and* submits it - the request is then *cleared* for the upcoming request. Thus when you call #executeBehavior() afterwards, the request will be completely empty and no company is select. You will have to set the value o

Re: How to remove jsessionid from the URL?

2018-04-08 Thread Don Ferguson
On the very first request, the server doesn't know whether or not cookies are supported, so encodes the session id in the URL in addition to setting the cookie. There is a trick that involves forcing the browser to redirect the first request so that the server can determine that cookies are suppor

Re: FormTester and Ajax

2018-04-08 Thread Virginie Garcin
Hello, Sorry for the ugly formatting, I hope this will be displayed correctly below: Hello, I need some help with FormTester and Ajax. I want to test a form, in which the second dropdown is updated in ajax when we change the first dropdown. The form is working fine but I can't manage to test i

FormTester and Ajax

2018-04-08 Thread Virginie Garcin
Hello, I need some help with FormTester and Ajax.I want to test a form, in which the second dropdown is updated in ajax when we change the first dropdown.The form is working fine but I can't manage to test it. DropDownChoice companyDropDownChoice = new DropDownChoice<>( "company", LoadableDetach