Search in sources :

Example 1 with DefaultModelValidator

use of org.kie.workbench.common.forms.processing.engine.handling.impl.DefaultModelValidator in project kie-wb-common by kiegroup.

the class StaticFormHandlerGenerator method generateFormHandler.

@Override
public FormHandler generateFormHandler(FormRenderingContext context) {
    FormValidator formValidator = new FormValidatorImpl(new DefaultModelValidator(validator), fieldStateValidator);
    FormHandler handler = new FormHandlerImpl(formValidator, new FieldChangeHandlerManagerImpl());
    return handler;
}
Also used : DefaultModelValidator(org.kie.workbench.common.forms.processing.engine.handling.impl.DefaultModelValidator) FieldChangeHandlerManagerImpl(org.kie.workbench.common.forms.processing.engine.handling.impl.FieldChangeHandlerManagerImpl) FormValidatorImpl(org.kie.workbench.common.forms.processing.engine.handling.impl.FormValidatorImpl) FormHandler(org.kie.workbench.common.forms.processing.engine.handling.FormHandler) FormHandlerImpl(org.kie.workbench.common.forms.processing.engine.handling.impl.FormHandlerImpl) FormValidator(org.kie.workbench.common.forms.processing.engine.handling.FormValidator)

Aggregations

FormHandler (org.kie.workbench.common.forms.processing.engine.handling.FormHandler)1 FormValidator (org.kie.workbench.common.forms.processing.engine.handling.FormValidator)1 DefaultModelValidator (org.kie.workbench.common.forms.processing.engine.handling.impl.DefaultModelValidator)1 FieldChangeHandlerManagerImpl (org.kie.workbench.common.forms.processing.engine.handling.impl.FieldChangeHandlerManagerImpl)1 FormHandlerImpl (org.kie.workbench.common.forms.processing.engine.handling.impl.FormHandlerImpl)1 FormValidatorImpl (org.kie.workbench.common.forms.processing.engine.handling.impl.FormValidatorImpl)1