On Mon, Oct 3, 2011 at 12:39 PM, Marco <[email protected]> wrote:
> public String renderTemplate(WebPage webPage) {
>        BufferedWebResponse bufferedWebResponse = new 
> BufferedWebResponse(null);
>        webPage.getRequestCycle().setResponse(bufferedWebResponse);
>        webPage.render();
>
>        return bufferedWebResponse.getText().toString();
> }
>
> Martin, it's the solution we discussed earlier at
> http://apache-wicket.1842946.n4.nabble.com/Render-WebPage-to-String-in-Wicket-1-5-td3622130.html\
Yes, I'm going to create an example in wicket-examples like the one
for 1.4 at http://wicketstuff.org/wicket14/staticpages/ and another
one with TextTemplate because most of the time this email template is
actually static markup with dynamically generated urls inside.

Will be part of https://issues.apache.org/jira/browse/WICKET-4095
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Redering-to-to-file-in-wicket1-5-tp3854891p3867079.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to