Class BeanPropertyValidator

java.lang.Object
io.jmix.flowui.component.validation.bean.AbstractBeanValidator
io.jmix.flowui.component.validation.bean.BeanPropertyValidator
All Implemented Interfaces:
Validator, Consumer

@Scope("prototype") @Component("flowui_BeanPropertyValidator") public class BeanPropertyValidator extends AbstractBeanValidator
Validator that applies JSR 303 rules for HasValue instance.
Automatically added on data binding if property enclosing class has validation constraints.
  • Constructor Details

    • BeanPropertyValidator

      public BeanPropertyValidator(Class beanClass, String beanProperty)
    • BeanPropertyValidator

      public BeanPropertyValidator(Class beanClass, String beanProperty, Class[] validationGroups)
  • Method Details

    • setMetadata

      @Autowired protected void setMetadata(Metadata metadata)
    • setMessages

      @Autowired protected void setMessages(Messages messages)
    • setMessageTools

      @Autowired protected void setMessageTools(MessageTools messageTools)
    • setValidator

      @Autowired protected void setValidator(jakarta.validation.Validator validator)