[
https://issues.jboss.org/browse/FORGE-503?page=com.atlassian.jira.plugin....
]
Pete Muir updated FORGE-503:
----------------------------
Assignee: Richard Kennard
Description:
The scaffold produces:
{code}
<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>
{code}
for
{code}
@NotNull
@Size(min = 10, max = 12)
@Digits(fraction = 0, integer = 12)
@Column(name = "phone_number")
private String phoneNumber;
{code}
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.
was:
The scaffold produces:
{code}
<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>
{code}
for
{code}
@NotNull
@Size(min = 10, max = 12)
@Digits(fraction = 0, integer = 12)
@Column(name = "phone_number")
private String phoneNumber;
{code}
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.
Erroneous f:convertNumber added
-------------------------------
Key: FORGE-503
URL:
https://issues.jboss.org/browse/FORGE-503
Project: Forge
Issue Type: Bug
Components: Scaffold
Affects Versions: 1.0.0.Final
Reporter: Pete Muir
Assignee: Richard Kennard
The scaffold produces:
{code}
<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>
{code}
for
{code}
@NotNull
@Size(min = 10, max = 12)
@Digits(fraction = 0, integer = 12)
@Column(name = "phone_number")
private String phoneNumber;
{code}
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira