JavaFX Form Validation

John McDonnell mcdonnell.john at gmail.com
Mon Jun 11 11:26:01 PDT 2012


I would just like to chime in here and say agree with Randahl's
points, particularly in regards to validation dependencies. Its something
that is required where I work as we use wizards a lot, and the validation
has to be run in a defined order.


Just a question, but should the validation also be tied to any JPA
annotations on the entity bean, for example if a property in a bean is has
an annotation like @Column(nullable = false) then it would seem repetitive
to declare a Not Null validator on the property elsewhere in the code

John

On 11 June 2012 18:31, Greg Brown <greg.x.brown at oracle.com> wrote:

> This is the same as what I proposed. I just broke the addAll() into two
> add() calls to show parity with the FXML version.
>
> On Jun 11, 2012, at 8:07 AM, Tom Eugelink wrote:
>
> > Yup, close enough. This is the better combination between my suggestion
> and Greg's FXML version. IMHO.
> >
> > Tom
> >
> > On 2012-06-11 13:30, Randahl Fink Isaksen wrote:
> >> I like your idea Tom. But if it should look like the existing JavaFX
> API's, it will probably be more like
> >>
> >> myTextField.getValidators().addAll(new MandatoryValidator(), new
> UserNameValidator());
> >>
> >> Randahl
> >>
> >
>
>


-- 
John


More information about the openjfx-dev mailing list