Validation
Validations enforce business rules before the system updates data in the model or acts upon it. webforJ integrates validations directly into the data binding process, verifying data integrity as it flows between UI components and the backend.
Topics
Validators
Attach validators to bindings with useValidator, implement reusable Validator classes, and override messages per UI field.
Reporters
Surface validation outcomes through the DefaultBindingReporter or attach custom reporters to bindings with the useReporter callback.
Context Results
Inspect ValidationResult after a BindingContext write, react to BindingContextValidateEvent, and auto-focus the first violation.
Triggers
Control when webforJ validates bindings by toggling auto-validate, using ValueChangeMode, and triggering revalidation manually.
Jakarta Validation
Apply Jakarta Bean Validation annotations to bean properties and activate JakartaValidator on a BindingContext with locale-aware messages.