-
Bug
-
Resolution: Done
-
Major
-
1.0.0.Final
-
None
The scaffold produces:
<h:panelGroup> <h:inputText id="memberBeanMemberPhoneNumber" maxLength="12" required="true" value="#{memberBean.member.phoneNumber}"> <f:convertNumber maxIntegerDigits="12"/> </h:inputText> <h:message for="memberBeanMemberPhoneNumber" styleClass="error"/> </h:panelGroup>
for
@NotNull @Size(min = 10, max = 12) @Digits(fraction = 0, integer = 12) @Column(name = "phone_number") private String phoneNumber;
which isn't correct, as the type is String, not a number.
The @Size validator appears to be what triggers this, removing it causes the scaffold to generate correctly.