/** * Override setStep to store the step on a WWindow if the targeted component is a WWindow or a descendant of * one. * * @param step the step count to set. */ @Override public void setStep(final int step) { // WWindows require a special case, as they keep track of their own separate step. // We must check if the request is an AJAX or content target inside a WWindow, // and if so set that WWindow's step. Otherwise, we set the step on the // environment. UIContextHolder.pushContext(window.getContext()); try { WWindow targetWindow = (WWindow) window.getComponent(); targetWindow.setStep(step); } finally { UIContextHolder.popContext(); } } }
setStep(window + current);
uic.setEnvironment(servletEnvironment); setActiveContext(uic); window.setStep(initialWindowStep); window.display();