Thanks for your fantastic work in ControlsFx.
I started using ControlsFX recently and specially started with validation. I have two suggestions for validation.
1- To have an option for on-demand validation only as opposed to validating at every change to the control. This for example will happen when the form is submitted.
validationSupport.registerValidator(username, Validator.createEmptyValidator("Username is required"), ValidationMode.ON_DEMAND)
Then wen needed the following is called for validation: boolean isInvalid = validationSupport.isInvalid()
Then the above code will go and
(Note: the on-demand declaration is similar to "jideFx-validation")
2- At the moment the validation is done even in the initial part and before any interaction is done by user. So for example as soon as a form is rendered, the mandatory TextFields have the red cross on the left. This can confuse the user seeing a form being loaded with errors. I am after an option to postpone displaying the error/warning indicator to after an interaction. This might be considered as the default behavior. The first option can partially address this since no validation is done until explicitly requested .