Sunday, October 24, 2010

PrimeFaces supports Bean Validation (JSR-303) in JSF 2.0

I've found (at least) one thing PrimeFaces / JSF 2.0 does something better than Vaadin when it comes to RIA (Rich Internet Web Applications), and that is Bean Validation (JSR-303) support.

The following Java code:
@NotNull

@Size(min=1) private String surname;
will automatically become validated JSF components in your XHTML/VDL file.

Cool!