Overview
Other MyFaces Extensions
- CODI
- Ext-Script
- [Orchestra]
- [Portlet Bridge]
...
Required steps for using ExtVal:
That's it!
...
@Column(nullable = false)
-> the field is required)That's it!
The table below gives an overview of the validations that are generated, based on JPA annotations.
JPA Annotation | Generated validation |
---|---|
|
|
| Field will be required if |
| Field will be required if |
| Field will be required if |
| Field will be required. |
(A simple demo is available here: demo_000)
...
Since r3 ExtVal uses the concept of constraint aspects for generic validation parameters (in case of bean-validaton validation it's a subset which is called validation payload).
...
The concept is similar to @JoinValidation
. However, this version is more type-save and it is supported by the property- as well as the bean-validation module.
Since both modules support the same syntax you will find further information here.