Good evening to all the WiseJ developers,
I have a question about using a validation framework.
Are there developers in this forum who have integrated the famous framework “FluentValidation” (https://docs.fluentvalidation.net/) into the WiseJ UI as dynamically as possible?
The validation in the backend is extensively documented, but I can’t find a dynamic approach to use the Validate() events in combination with the ErrorProvider to display the appropriate error messages per control.
I am very happy about every tip, link or approach.
The available examples always refer to ASP.NET Core / ASP.NET MVC.
Many thanks!
Jan Brandenburger
Here is the example.
For explanation:
(1) I use the framework “FluentValidation”.
(2) I have written a PersonValidator.
(3) I use the BindingSource.
The code is only an example and should be refactored in any case!
Every hint and suggestion for improvement is welcome.
I have found an approach. This one is certainly not perfect, but it works at first.
I will translate it into english and then put it here. Maybe there will be suggestions for improvement from members of the forum.
Please login first to submit.