public void handleComponentEvent(ComponentEventRequestParameters parameters) throws IOException { componentEventRequestHandler.handle(parameters); }
public void handle(ComponentEventRequestParameters parameters, ComponentEventRequestHandler handler) throws IOException { if (requestSecurityManager.checkForInsecureComponentEventRequest(parameters)) return; handler.handle(parameters); } };
public void handle(ComponentEventRequestParameters parameters, ComponentEventRequestHandler handler) throws IOException { ComponentEventRequestHandler next = request.isXHR() ? ajaxHandler : handler; next.handle(parameters); }
public void handle(ComponentEventRequestParameters parameters, ComponentEventRequestHandler handler) throws IOException { String formClientId = request.getParameter(RequestConstants.FORM_CLIENTID_PARAMETER); String formComponentId = request.getParameter(RequestConstants.FORM_COMPONENTID_PARAMETER); if (InternalUtils.isNonBlank(formClientId) && InternalUtils.isNonBlank(formComponentId)) ajaxFormUpdateController.initializeForForm(formComponentId, formClientId); handler.handle(parameters); } }
@Override public void handle(ComponentEventRequestParameters parameters, ComponentEventRequestHandler handler) throws IOException { FileUploadException uploadException = decoder.getUploadException(); if (uploadException != null) { Component page = componentSource.getPage(parameters.getActivePageName()); ComponentResultProcessorWrapper callback = new ComponentResultProcessorWrapper(resultProcessor); page.getComponentResources().triggerEvent(UploadEvents.UPLOAD_EXCEPTION, new Object[] { uploadException }, callback); // If an event handler exists and returns a value, then the callback will be aborted and a response // (typically a redirect) will already have been sent to the client. if (callback.isAborted()) return; // If the page does not properly handle the exception, then we throw it now. throw new RuntimeException(UploadMessages.unableToDecode(), uploadException); } handler.handle(parameters); } }
@Override public void handle(ComponentEventRequestParameters parameters, ComponentEventRequestHandler handler) throws IOException { FileUploadException uploadException = decoder.getUploadException(); if (uploadException != null) { Component page = componentSource.getPage(parameters.getActivePageName()); ComponentResultProcessorWrapper callback = new ComponentResultProcessorWrapper(resultProcessor); page.getComponentResources().triggerEvent(UploadEvents.UPLOAD_EXCEPTION, new Object[] { uploadException }, callback); // If an event handler exists and returns a value, then the callback will be aborted and a response // (typically a redirect) will already have been sent to the client. if (callback.isAborted()) return; // If the page does not properly handle the exception, then we throw it now. throw new RuntimeException(UploadMessages.unableToDecode(), uploadException); } handler.handle(parameters); } }