Seems like T 5.4-rc-1 is not validating fields entity fields annotated with
JSR-303, but it does when field is annotated with @Validate.
Abbreviated Example:
@Entity
public class User {
.....
@NotNull
private String foo;
@Validate("required")
private String bar;
// getters/setters
}
Page.java
@Property
private User user;
Page.tml
<form t:type="form">
<input t:type="textfield" t:id="foo" t:value="user.foo"/>
<input t:type="textfield" t:id="bar" t:value="user.bar"/>
</form>
So what happens both fields should produce error on empty input but only
bar does.
Adam