Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-503

Erroneous f:convertNumber added

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.1.Final
    • 1.0.0.Final
    • Scaffold
    • 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.

              kennardconsulting Richard Kennard (Inactive)
              pmuiratbleepbleep Pete Muir (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: