Validation Support
Dirk Lemmermann
dlemmermann at gmail.com
Sat Mar 2 18:59:28 UTC 2024
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/515c6bb2/attachment.htm>
More information about the openjfx-dev
mailing list