-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide default checks #4
Comments
yes that might be extremely helpful for not duplicate code all over |
Since warning/error-messages must be translatable (i18n), these messages must always be provided by the client of ValidatorFX. Here are things that I would consider common checks:
Most of these checks may only be applied to TextInputControls (i.e. TextField/TextArea), since its textProperty() will be checked. The required-check should be applicable to all kinds of Controls but will require separate convenience-methods for different kinds of controls (TextInputControls must be checked against textProperty().isBlank(); ComboBox must be checked against valueProperty() != null, etc.) @georgemoralis If you have more suggestions as to what you would expect as convenience methods, please tell me. |
i have done some validators using controlsfx validator you can check here probably something similar can be done here :D |
Considering the following piece of code:
it would be nice to:
This would allow :
|
Some checks (field required, max input length, etc.) are so common we should provide convenience ways of adding them
The text was updated successfully, but these errors were encountered: