Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to validate bean on Spring's WebClient?

I guess the answer is no, as all references to Bean Validation in the documentation are related to the server side.

Is there any support for Bean Validation on the client's side? So that I can validate my entities before even sending them to the server.

like image 828
antonro Avatar asked Jul 31 '19 16:07

antonro


1 Answers

EDIT

You can use Apache Commons Validator which is part of JSR-303 implementations

Apache Commons Validator provides the building blocks for both client side validation and server side data validation. It may be used standalone or with a framework like Struts.

Or use relevant proprietary client-side solution

JSR-303 doesn’t cover client-side validation, so web frameworks supporting this JSR need to come up with proprietary client-side solutions. Tapestry provides client-side validation for the following JSR-303 constraints

like image 135
user7294900 Avatar answered Oct 14 '22 05:10

user7294900