On Tue, 2009-12-01 at 08:32 +0200, Martin Makundi wrote: > Hi! > > > When I test a page like this > > http://www.wicket-library.com/wicket-examples/ajax/choice > > with wicket tester and submit the form, the response page is the > > HomePage instead of the expected page (ChoicePage). > > Do you use a formtester? The wicket tester executeajax does not > properly submit the form values so what we do is we create a dummy > formtester before calling executeajaxevent. That might help. Thanx for your feedback! Did you have a look at http://is.gd/58mq3 which shows the test?
Yes, I'm using a formTester. What is your actual advice how to work around? I didn't get this :) Cheers, Martin > > ** > Martin > > > > > This issue was already reported some time ago without a final result: > > http://old.nabble.com/unit-test-for-dropdownchoice-with-ajax-td21141772.html > > > > > > I created an example project that shows this issue: > > http://github.com/magro/misc/tree/master/wicket-tester-drop-downs/ > > > > This is the short link to the failing test case (on github): > > http://is.gd/58mq3 > > This is the tested page class: http://is.gd/58mDm > > > > I'm using wicket 1.4.3. > > > > Is there any error in the test? Can I do anything to work around this, > > or is it a bug? > > > > Thanx && cheers, > > Martin > > > > -- > > Martin Grotzke > > http://www.javakaffee.de/blog/ > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Martin Grotzke http://www.javakaffee.de/blog/
signature.asc
Description: This is a digitally signed message part