Ah, hm. How do I call a "/pages" URL? I think this may be the missing link. I thought tester.startPage() would hit that and call all those methods.
Simplified version of test: public void testThisThing() { WicketTester tester = new WicketTester(new TestApp()); tester.startPage(TestEmail.class); } private class TestApp extends WebApplication { public Class getHomePage() { return TestEmail.class; } protected void init() { System.out.println("Initifying"); mount(new URIRequestTargetUrlCodingStrategy("/pages") { @Override public IRequestTarget decode(RequestParameters requestParameters) { System.out.println("Decoderizing"); return new BookmarkablePageRequestTarget(Page.class) { @Override public void respond(RequestCycle requestCycle) { System.out.println("Respondificating"); } }; } }); } } decode() is fired when you call "/pages" url. In the init() you only "define" the method. -- View this message in context: http://www.nabble.com/How-to-get-HTML-source-code-from-a-wicket-page-tf3968790.html#a11529076 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user