Validation Support
John Hendrikx
john.hendrikx at gmail.com
Sun Mar 3 01:10:10 UTC 2024
Hi Dirk,
That is a very nice framework, and although I wouldn't be against its
inclusion in FX, I'm more wondering if JavaFX could do more to help make
tools like ValidatorFX easy to build.
I'm not quite sure how one can use not having validation as an argument
against using FX, when there clearly are free alternatives available.
Surely not everything can or should be part of the base framework? A
line must be drawn somewhere, especially when there are very few core FX
developers.
I'd much rather see work being done on things that can't be provided by
3rd parties, preferably by opening up more parts of FX with well
specified API's.
--John
On 01/03/2024 11:59, Dirk Lemmermann 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
>
More information about the openjfx-dev
mailing list