Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

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
java
java
titleAdvanced @Valid examplejava
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
}

...