Ours is running in a separate, non-Wicket process that just generates
and sends e-mail, so there's nothing to step on.  But otherwise yes,
you would want to protect your ThreadLocal.

On Thu, Nov 6, 2008 at 4:52 PM, cjlyth <[EMAIL PROTECTED]> wrote:
>
> Yeah this is about the same, I think you would still have to do it in its own
> thread.
>
>                try {
>                        return Executors.newSingleThreadExecutor().submit(
>                                        new Callable<String>() {
>                                                public String call() throws 
> Exception {
>                                                        return new 
> PageRenderer().render(pageClass, pageParameters);
>                                                }
>                                        }).get();
>                } catch (InterruptedException e) {
>                        throw new WicketRuntimeException(e.getMessage(), e);
>                } catch (ExecutionException e) {
>                        throw new WicketRuntimeException(e.getMessage(), e);
>                }
>
> I think its also worth mentioning that Anatoly Kupriyanov has a template
> implementation that might solve this problem. However, I like the simpler
> approach in this thread.
> http://cwiki.apache.org/confluence/display/WICKET/Use+wicket+as+template+engine
>
>
>
> Scott Swank wrote:
>>
>> Here is a largely equivalent class that I created.  It simply extends
>> BaseWicketTester.
>> ...
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Render-a-Wicket-page-to-a-string-for-HTML-email-tp20325702p20372800.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to