Re: [Wicket-user] RequestCycle goes null after using WicketTester within Wicket page

2007-07-26 Thread Tremelune
Here's a stack trace, if it helps: org.apache.wicket.WicketRuntimeException: No RequestCycle is currently set! at org.apache.wicket.Component.getRequest(Component.java:1417) at com.holla.pages.SomeWebPage.onBeforeRender(SomeWebPage.java:180) at

Re: [Wicket-user] RequestCycle goes null after using WicketTester within Wicket page

2007-07-26 Thread Igor Vaynberg
because of all the threadlocals you should probably run wickettester in a separate thread: onclick() { final String[] output=new String[1]; Runnable gen=new Runnable() { run() { WicketTester tester=new WicketTester(); tester.startPage(new MailPage());

Re: [Wicket-user] RequestCycle goes null after using WicketTester within Wicket page

2007-07-26 Thread Tremelune
Nailed it, thanks. I thought I tried this, but clearly my threading code was out of whack. igor.vaynberg wrote: because of all the threadlocals you should probably run wickettester in a separate thread: onclick() { final String[] output=new String[1]; Runnable gen=new Runnable() {

[Wicket-user] RequestCycle goes null after using WicketTester within Wicket page

2007-07-26 Thread Tremelune
This issue is ultimately stemming from a specific issue I encountered during my trials and tribulations in http://www.nabble.com/How-to-get-HTML-source-code-from-a-wicket-page-tf3968790.html#a11548230 this thread , but it was getting buried a bit in the rest of the thread...I figured I'd ask