public static void dispatchEvents(HttpServletRequest request, HttpServletResponse response) throws ServletException { synchronized (request.getSession()) { WingsSession wingsSession = getSession(request, response); try { SForm.clearArmedComponents(); Enumeration en = request.getParameterNames(); if (en.hasMoreElements()) { wingsSession.fireRequestEvent(SRequestEvent.DISPATCH_START); while (en.hasMoreElements()) { String paramName = (String) en.nextElement(); String[] value = request.getParameterValues(paramName); wingsSession.getDispatcher().dispatch(paramName, value); } SForm.fireEvents(); wingsSession.fireRequestEvent(SRequestEvent.DISPATCH_DONE); } wingsSession.getReloadManager().invalidateFrames(); } finally { wingsSession.getReloadManager().clear(); SessionManager.removeSession(); SForm.clearArmedComponents(); } } }
SForm.clearArmedComponents(); SForm.clearArmedComponents();
session.setServletResponse(null); SessionManager.removeSession(); SForm.clearArmedComponents();
session.setServletResponse(null); SessionManager.removeSession(); SForm.clearArmedComponents();