See the code for http://wicketstuff.org/wicket14/staticpages/capturedpage
On Fri, Jan 7, 2011 at 4:54 PM, Brown, Berlin [GCG-PFS] < berlin.br...@primerica.com> wrote: > I have used the WicketTester to print out the rendered HTML content from > wicket. I did that through the unit tests. How would I run a similar > operation to return the rendered output document outside of > WicketTester. I want to print the document from within my J2EE > server. > > Here is the example junit code. > private WicketTester tester; > > // start and render the test page > > tester.startPanel( TestRenderPanel.class ); > > tester.getServletResponse().getDocument(); > > ... > > I want to call tester.getServletResponse().getDocument(); outside of a > junit test, in a server environment. > > > Berlin Brown > >