JavaFX Form Validation

Tom Eugelink tbee at tbee.org
Tue Jun 12 04:53:32 PDT 2012


The first thing I noticed is that javascript code is being rolled in pretty quickly there; mandatory, pattern, code. Which in fact would support the coded validator approach of JGoodies.

Tom


On 11-6-2012 18:02, Richard Bair wrote:
> Hi Jonathan,
>
> Another place you should go check is the HTML 5 Validation system. I think that it would form the "minimalist" base layer that Tom S. and Gerrit are looking for, but is also the foundation you'd want for just about any validation framework. Basically, each Control would get a "valid" boolean property, and would set a pseudo-class "valid" or "invalid" depending on the boolean. A developer (or framework) is then responsible for binding the valid state of any control to the results of validation for that application.
>
> http://stephenwalther.com/archive/2012/03/13/html5-form-validation.aspx
>
> Worth a read. I didn't see the link I was looking for but the above should point in some right directions anyway.
>
> Richard



More information about the openjfx-dev mailing list