/** * Initialize a new WebRequestCycle and all its dependent objects * * @param component */ public void processRequestCycle(final Component component) { setupRequestAndResponse(); final WebRequestCycle cycle = createRequestCycle(); cycle.request(component); if (component instanceof Page) { lastRenderedPage = (Page)component; } postProcessRequestCycle(cycle); }
/** * Initialize a new WebRequestCycle and all its dependent objects * * @param component */ public void processRequestCycle(final Component component) { setupRequestAndResponse(); final WebRequestCycle cycle = createRequestCycle(); cycle.request(component); if (component instanceof Page) { lastRenderedPage = (Page)component; } postProcessRequestCycle(cycle); }
/** * Create and process the request cycle using the current request and response information. * * @param cycle */ public void processRequestCycle(WebRequestCycle cycle) { try { cycle.request(); if (cycle.wasHandled() == false) { cycle.setRequestTarget(new WebErrorCodeResponseTarget( HttpServletResponse.SC_NOT_FOUND)); } createRequestCycle(); parametersForNextRequest.clear(); servletRequest.getParameterMap().clear(); } finally { cycle.getResponse().close(); } postProcessRequestCycle(cycle); }
cycle.request(requestTarget);
/** * Initialize a new WebRequestCycle and all its dependent objects * * @param pageClass * @param params */ public void processRequestCycle(final Class pageClass, PageParameters params) { setupRequestAndResponse(); final WebRequestCycle cycle = createRequestCycle(); try { BaseWicketTester.callOnBeginRequest(cycle); cycle.request(new BookmarkablePageRequestTarget(pageClass, params)); } finally { cycle.getResponse().close(); } postProcessRequestCycle(cycle); }
/** * Create and process the request cycle using the current request and response information. * * @param cycle */ public void processRequestCycle(WebRequestCycle cycle) { try { cycle.request(); if (cycle.wasHandled() == false) { cycle.setRequestTarget(new WebErrorCodeResponseTarget( HttpServletResponse.SC_NOT_FOUND)); } cycle.detach(); createRequestCycle(); } finally { cycle.getResponse().close(); } postProcessRequestCycle(cycle); }