Issue with Custom Validator Not Being Triggered

Hey guys! :wave:

I am having trouble with a custom validator I’ve implemented in my Jmix application. I’ve followed the documentation to create the validator, but it doesn’t seem to be triggered when the form is submitted.

Here is the points that I have tried:

  • Created a custom validator class that implements Validator.
  • Registered the validator in the ApplicationConfig class.
  • Applied the validator to a field in my entity using annotations.
  • Despite these steps, the validator isn’t executing. I’ve tried debugging, but I’m not sure where the issue might be.

I also check this: https://forum.jmix.io/t/custom-data-store-studio-v1-2-issuegenai But I have not found any solution. Could anyone suggest the best solution for this? Has anyone facing a similar issue or have any suggestions on what might be going wrong? Any help would be greatly appreciated!

Thanks in advance! :smiling_face_with_three_hearts:

Hi!

It’s not entirely clear what exactly you’re having trouble with. Could you provide a test project that reproduces the problem?
Also, please specify the framework version.

You provided a link to a custom data store. How is a custom data store related to your problem?