> And in fact I'm wondering what that component manager is doing anyway? > As this would be more typical: >
Look like we've some misunderstanding here, the component manager is something that return a service for my old application. Where a service in that application like an Object of Page in wicket. So the idea is just every time a before a page render and after a page render, or doing the operation. Run some setup before and cleanup afterward. > no, it's more like: > Yes, just figure out that, post it here please let me know if I am wrong: public class Controller extends WebApplication { public Class getHomePage() { return UserMan.class; } @Override protected IRequestCycleFactory getDefaultRequestCycleFactory() { final IRequestCycleFactory factory = super.getDefaultRequestCycleFactory(); return new GenucoRequestCycleFactory(factory); } private static class GenucoRequestCycleFactory implements IRequestCycleFactory { private static final long serialVersionUID = 1L; private final IRequestCycleFactory factory; public GenucoRequestCycleFactory(final IRequestCycleFactory factory) { super(); this.factory = factory; } public RequestCycle newRequestCycle(final Session arg0, final Request arg1, final Response arg2) { final RequestCycle parentCycle = factory.newRequestCycle(arg0, arg1, arg2); return new RequestCycle(arg0, arg1, arg2) { @Override public IRequestCycleProcessor getProcessor() { return parentCycle.getProcessor(); } @Override protected ClientInfo newClientInfo() { return null; } @Override public boolean getRedirect() { return parentCycle.getRedirect(); } @Override protected void onBeginRequest() { super.onBeginRequest(); // custom setup } @Override protected void onEndRequest() { super.onEndRequest(); // custom teardown } @Override public Page onRuntimeException(final Page arg01, final RuntimeException arg11) { return parentCycle.onRuntimeException(arg01, arg11); } @Override public void setUpdateSession(final boolean arg01) { parentCycle.setUpdateSession(arg01); } @Override public String toString() { return parentCycle.toString(); } @Override public void redirectTo(final Page arg01) { parentCycle.redirectTo(arg01); } }; } } ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user