THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Overview
Other MyFaces Extensions
- CODI
- Ext-Script
- [Orchestra]
- [Portlet Bridge]
Community
Development
Sponsorship
Unknown macro: {iframe}
...
Since both modules support the same syntax you will find further information here.
The std. integration of BV in JSF 2.0 doesn't allow to continue the validation within CustomType
. So ExtVal offers an additional feature which allows using @javax.validation.Valid
for custom types.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
public class CustomType
{
@NotNull
private String property1;
@Size(min = 3)
private String property2;
//+ getter-/setter-methods
}
public class CustomBean
{
@NotNull
@Valid
private CustomType property;
//+ getter-/setter-methods
}
|
If you are providing a custom converter, you can access the property via customBean.property
and all constraints (including the constraints within CustomType
) will be validated.