Hi Martin, the problem is that first I show the fetching progress in a WebPage. The progress is updated using an AbstractAjaxTimerBehavior. If fetching completes then I have to directly write to the response. And at this stage my page has already been instantiated. In other word another IRequestHandler has started the progress.
On Sat, 2012-07-21 at 16:26 +0300, Martin Grigorov wrote: > 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 > > >
signature.asc
Description: This is a digitally signed message part
