Re: WicketTester trouble resubmitting a form

2008-01-02 Thread Timo Rantalaiho
On Tue, 18 Dec 2007, Dan Kaplan wrote: > IModel model = new Model() { > public void setObject(Object obj) { > name = obj.toString(); > } > }; This is suspicious, I think that you should also override getObject() to return name. Otherwise the

WicketTester trouble resubmitting a form

2007-12-18 Thread Dan Kaplan
Hi, I'm having asserts fail when I resubmit a form with WicketTester. Here's the scenario: I go to a page with a form that has a requiredtextfield. First, I set the field to "" and submit it. It fails like it should. Then, in the same test, I set it to a value like "blah" and submit it. It fai