The field name in the class BeanValidationBean is annotated with @NotNull. Its message, however, it's never shown because JSF by default passes an empty string (and not null) when submitting an empty field.
Two possible solutions:
replace @NotNull with @NotEmpty
add the context param javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL (BalusC article: The empty String madness )
The field
name
in the classBeanValidationBean
is annotated with@NotNull
. Its message, however, it's never shown because JSF by default passes an empty string (and notnull
) when submitting an empty field.Two possible solutions:
@NotNull
with@NotEmpty
javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL
(BalusC article: The empty String madness )