Re: Render a Wicket page to a string for HTML email

2010-03-16 Thread rolandpeng
ou > so much in advance. > -- View this message in context: http://old.nabble.com/Render-a-Wicket-page-to-a-string-for-HTML-email-tp20325702p27916505.html Sent from the Wicket - User mailing list archive at Nabble.com. -

Re: Render a Wicket page to a string for HTML email

2010-03-16 Thread rolandpeng
sponse.SC_NOT_FOUND)); > } > requestCycle.detach(); > > } finally { > requestCycle.getResponse().close(); > } > > return webResponse.toString(); > } > > } > > Cheers, > Xavier >

Re: Render a Wicket page to a string for HTML email

2010-03-16 Thread Xavier López
) ? > > > http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ > > Cheers, > Xavier > > 2010/3/16 rolandpeng > > >> That works , thank you! >> But I have another question: >> when I use requestLogger.getLiveSessions() to get the

Re: Render a Wicket page to a string for HTML email

2010-03-16 Thread Xavier López
artPage(); > > } > > > > } > > > > ----------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > >

Re: Render a Wicket page to a string for HTML email

2010-03-16 Thread rolandpeng
zed String render(WebPage page) { > startPage(page); > return renderStartPage(); > } > > } > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in

Re: Render a Wicket page to a string for HTML email

2008-11-06 Thread Scott Swank
;> >> 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

Re: Render a Wicket page to a string for HTML email

2008-11-06 Thread cjlyth
ketTester. > ... > -- 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 unsu

Re: Render a Wicket page to a string for HTML email

2008-11-06 Thread Scott Swank
Here is a largely equivalent class that I created. It simply extends BaseWicketTester. public class PageRenderer extends BaseWicketTester { private final Locale locale; public PageRenderer(Locale locale) { this.locale = locale; } public PageRender

Re: Render a Wicket page to a string for HTML email

2008-11-06 Thread Peter Ertl
ket-page-to-a-string-for-HTML-email-tp20325702p20370600.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: Render a Wicket page to a string for HTML email

2008-11-06 Thread Peter Ertl
ponse().getCharacterEncoding()); ... -- View this message in context: http://www.nabble.com/Render-a-Wicket-page-to-a-string-for-HTML-email-tp20325702p20370600.html Sent from the Wicket - User mailing list archive at Nabble.com. ---

Re: Render a Wicket page to a string for HTML email

2008-11-06 Thread cjlyth
); } } Peter Ertl wrote: > > ... >return new > String(tester.getServletResponse().getBinaryContent(), > tester.getServletResponse().getCharacterEncoding()); > > ... > -- View this message in context: http://www.nabble.com/Render-a-Wicket-p

Re: Render a Wicket page to a string for HTML email

2008-11-05 Thread Peter Ertl
've found this article on how to render a page to a String: http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ It seemed to be exactly what I was looking for. Copying the code into my app, I got a compiler error on the line where the WebRequest is cr

Re: Render a Wicket page to a string for HTML email

2008-11-05 Thread Igor Vaynberg
questCycle.wasHandled() == false) { >>>>>requestCycle.setRequestTarget(new >>>>> WebErrorCodeResponseTarget( >>>>> >>>>> HttpServletResponse.SC_NOT_FOUND)); >>>>> } >>>>>

Re: Render a Wicket page to a string for HTML email

2008-11-05 Thread Peter Ertl
d this article on how to render a page to a String: http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ It seemed to be exactly what I was looking for. Copying the code into my app, I got a compiler error on the line where the WebRequest is created.

Re: Render a Wicket page to a string for HTML email

2008-11-05 Thread Igor Vaynberg
a ticket to request it for Wicket 1.5? >>> >>> Jörn >>> >>> On Tue, Nov 4, 2008 at 5:55 PM, Martijn Dashorst >>> <[EMAIL PROTECTED]> wrote: >>>> >>>> Are you in New Orleans in some voodoo bar? Why not join us at >>>&g

Re: Render a Wicket page to a string for HTML email

2008-11-05 Thread Peter Ertl
thout seeing your code we have to resort to waving a dead chicken in front of our screens or making swags. -igor On Tue, Nov 4, 2008 at 9:19 AM, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: Hi, I've found this article on how to render a page to a String: http://www.danwalmsley.com/200

Re: Render a Wicket page to a string for HTML email

2008-11-05 Thread Igor Vaynberg
icken in >>> front of our screens or making swags. >>> >>> -igor >>> >>> On Tue, Nov 4, 2008 at 9:19 AM, Jörn Zaefferer >>> <[EMAIL PROTECTED]> wrote: >>>> Hi, >>>> >>>> I've found this article on how

Re: Render a Wicket page to a string for HTML email

2008-11-05 Thread James Carman
voodoo bar? Why not join us at ApacheCon? :) >> >> Martijn >> >> On Tue, Nov 4, 2008 at 10:43 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >>> without seeing your code we have to resort to waving a dead chicken in >>> front of our screens or making

Re: Render a Wicket page to a string for HTML email

2008-11-05 Thread Peter Ertl
Hi, I've found this article on how to render a page to a String: http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ It seemed to be exactly what I was looking for. Copying the code into my app, I got a compiler error on the line where the WebRequest is

Re: Render a Wicket page to a string for HTML email

2008-11-05 Thread Jörn Zaefferer
>>> Hi, >>> >>> I've found this article on how to render a page to a String: >>> http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ >>> >>> It seemed to be exactly what I was looking for. Copying the

Re: Render a Wicket page to a string for HTML email

2008-11-04 Thread Igor Vaynberg
t; Hi, >>> >>> I've found this article on how to render a page to a String: >>> http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ >>> >>> It seemed to be exactly what I was looking for. Copying the code into

Re: Render a Wicket page to a string for HTML email

2008-11-04 Thread Martijn Dashorst
; -igor > > On Tue, Nov 4, 2008 at 9:19 AM, Jörn Zaefferer > <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I've found this article on how to render a page to a String: >> http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ >>

Re: Render a Wicket page to a string for HTML email

2008-11-04 Thread Igor Vaynberg
danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ > > It seemed to be exactly what I was looking for. Copying the code into > my app, I got a compiler error on the line where the WebRequest is > created. Using the constructor to ServletWebRequest helped. &

Render a Wicket page to a string for HTML email

2008-11-04 Thread Jörn Zaefferer
Hi, I've found this article on how to render a page to a String: http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ It seemed to be exactly what I was looking for. Copying the code into my app, I got a compiler error on the line where the WebRequest is cr