Hi,

I'd use IResource to deliver such kind of data instead of WebPage.
See http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
for more details.

But if you insist on WebPage... then I'd recommend:
org.apache.wicket.request.cycle.RequestCycle#replaceAllRequestHandlers

On Sat, Jul 21, 2012 at 10:50 AM, Pouyan Zaxar <[email protected]> wrote:
> Hi all,
>
> I'm working on a WebPage which fetches data from a source and write it
> to the response. The data can be of various MIME-Type. One solution that
> I came up with was to replace the current IRequestHandler, which is
> handling the WebPage, with another one which can handle the data (e.g.
> TextRequestHandler). The question is which is the correct work flow:
>
> A) requestCycle.scheduleRequestHandlerAfterCurrent(myHandler)
> B) throw new ResetResponseException/ReplaceHandlerException
>
> -> Wicket version : 6.0.0-beta3
>
> Best
> Pouyan



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

Reply via email to