Examples of ValidationProcessor


Examples of org.openfaces.component.validation.ValidationProcessor

        renderMessage(context, component);
        String forComponentClientId = getForComponentClientId(context, component);

        UIComponent forComponent = getForComponent(component);

        ValidationProcessor validationProcessor = ValidationProcessor.getInstance(context);
        if (validationProcessor != null) {
            ClientValidationMode cv = validationProcessor.getClientValidationRule(component, forComponent);
            boolean clientValidation = !cv.equals(ClientValidationMode.OFF);
            if (clientValidation) {
                if (forComponentClientId == null) {
                    Rendering.logWarning(context, "Cannot render floatingIconMessage bacause can't calculate " +
                            "target component client ID. It may be caused by 'for' attribute absence");
                    return;
                }
                UIForm form = Components.getEnclosingForm(component);
                if (validationProcessor.isUseDefaultClientValidationPresentationForForm(form)) {
                    ValidatorUtil.renderPresentationExistsForComponent(forComponentClientId, context);
                }
                Script clientScript = getClientScript(component.getClientId(context), forComponentClientId, component);
                Rendering.renderInitScript(context, clientScript, getJavascriptLibraryUrls(context, clientValidation));
                Styles.renderStyleClasses(context, component);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.