On Mon, 26 Nov 2007, Jason Anderson wrote:
>         tester.startPage(HomePage.class);

I'm not sure if it changes anything here, but we've 
typically done tester.startPage(new ITestPageSource()...
instead.

>  from a quick peek thru the code it looks like the request cycle is
> detaching the threadlocal before the response uses it in close()

Your code seems straight forward. But in more complex cases
this sometimes comes up with WicketTester, and at times,
WicketTester.setupRequestAndResponse() helps. You might also
try storing RequestCycle.get() earlier and putting it back 
with RequestCycle.set() just before submit.

Your form isn't ajax, is it? I think that ajax submits 
typically have to be submitted with WicketTester.executeAjaxEvent() 
instead of FOrmTester.submit().

Best wishes,
Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to