Hi Dan, Thanks for your reply. I found a solution with your help. public class MyRequestMapper implements IRequestMapper { PageProvider pageProvider; final IRequestMapper rootRequestMapper; // original RootMapper final WicketApplication wicketApplication; public MyRequestMapper(final IRequestMapper rootRequestMapper, WicketApplication wicketApplication) { this.rootRequestMapper= rootRequestMapper; this.wicketApplication=wicketApplication; pageProvider= new PageProvider(BusyPage.class); } public int getCompatibilityScore(Request request) { return 0; } public Url mapHandler(IRequestHandler iRequestHandler) { return rootRequestMapper.mapHandler(iRequestHandler); } public IRequestHandler mapRequest(Request request) { if (wicketApplication.isBusy()) { return new RenderPageRequestHandler(pageProvider); } return rootRequestMapper.mapRequest(request); } }
public class WicketApplication extends WebApplication { public void init() { super.init(); mountPage("/Home", HomePage.class); mountPage("/busy", BusyPage.class); setRootRequestMapper(new MyRequestMapper(getRootRequestMapper(), this)); } .... } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Batch-process-message-to-user-tp4649662p4649674.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org