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]

Reply via email to