[
https://issues.apache.org/jira/browse/WICKET-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516331
]
Jean-Baptiste Quenot commented on WICKET-795:
---------------------------------------------
If you go the WicketTester way, there is already
WicketTester.getServletResponse().getDocument() to achieve that. The
InterceptingCycle trick is only useful when in a genuine HTTP environment.
> Easy access to final rendered page source
> -----------------------------------------
>
> Key: WICKET-795
> URL: https://issues.apache.org/jira/browse/WICKET-795
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.3.0-beta2
> Reporter: Will Benedict
> Priority: Trivial
> Attachments: Page_source_rendering_classes.patch
>
>
> I'd like a way to run pages through Wicket so that I can grab the final HTML
> and use it elsewhere (as an email body, for instance). I've been working on
> it and I've got a working solution, but there is still a snag.
> Spawned from this thread:
> http://www.nabble.com/How-to-get-HTML-source-code-from-a-wicket-page-tf3968790.html#a11265339
> Chunk of working code:
> http://www.nabble.com/How-to-get-HTML-source-code-from-a-wicket-page-tf3968790.html#a11548230
> Current existing hurdle:
> http://www.nabble.com/RequestCycle-goes-null-after-using-WicketTester-within-Wicket-page-tf4153591.html
> Once I can get this simple bit to work, I'll add parameters and what not...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.