On Tuesday, January 3, 2017 at 10:37:50 AM UTC+1, 129pierre wrote: > > Hi, > > I am looking at validation in > http://www.gwtproject.org/doc/latest/DevGuideValidation.html but I didnot > see anything for custom validation. >
Because there's nothing specific to GWT about it. > Let's say my Person class has 2 fields : > private Date birthDate; > private Date graduationDate; > > How to add a validation inforcing that graduationDate is after birthDate ? > You'd write (or use) a constraint that you'd apply to the class so it can access both fields. But beware, Bean Validation support is deprecated! http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_0_RC1 -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
