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() {
> run() {
> WicketTester tester=new WicketTester();
> tester.startPage(new MailPage());
> output[0]=tester.getoutput();
> }
> }
> Thread thread=new Thread(gen);
> thread.start();
> thread.join();
> // output available in output[0]
> }
> }
>
> -igor
>
--
View this message in context:
http://www.nabble.com/RequestCycle-goes-null-after-using-WicketTester-within-Wicket-page-tf4153591.html#a11818635
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
IMPORTANT NOTICE:
This mailing list is shutting down. Please subscribe to the Apache Wicket user
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the
instructions.
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user