Validation Support

Dirk Lemmermann dlemmermann at gmail.com
Sat Mar 2 19:00:53 UTC 2024


A quick look at the validator project readme should clarify things: https://github.com/effad/ValidatorFX

Dirk


> Am 02.03.2024 um 19:59 schrieb Dirk Lemmermann <dlemmermann at gmail.com>:
> 
> Ensuring that only valid characters are entered does not ensure that the entered value is correct. What developers require is data validation / form validation.
> 
> Dirk
> 
> 
> 
>> Am 02.03.2024 um 16:28 schrieb Nir Lisker <nlisker at gmail.com>:
>> 
>> Hi Dirk,
>> 
>> JavaFX has some input validation support in terms of focus control and rejecting invalid characters. Can you  explain what your proposal adds? Are there JBS issues asking for this?
>> 
>> Thanks, 
>> Nir
>> 
>> On Fri, Mar 1, 2024, 13:50 Dirk Lemmermann <dlemmermann at gmail.com <mailto:dlemmermann at gmail.com>> wrote:
>>> Hi everyone,
>>> 
>>> I updated the validation framework ValidatorFX today in our project to the latest release and I really like it a lot. It is a small compact API and works with any observable as opposed to the validation support provided by ControlsFX. 
>>> 
>>> Using it made me wonder whether it would make sense to bundle it or something like it directly with JavaFX. Developers often mention missing validation support as a drawback of using JavaFX. Adding this would take one item off from the list of arguments against using JavaFX. 
>>> 
>>> Many UI frameworks do have built-in validation support, e.g. Vaadin [0], Angular, [1], or QT [2]
>>> 
>>> What do you think?
>>> 
>>> —Dirk
>>> 
>>> [0] https://vaadin.com/docs/latest/binding-data/components-binder-validation
>>> [1] https://angular.io/guide/form-validation
>>> [2] https://doc.qt.io/qt-6/qtquick-input-textinput.html
>>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240302/8fbbd486/attachment-0001.htm>


More information about the openjfx-dev mailing list