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

Erroneous f:convertNumber added

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 1.0.0.Final
    • 1.0.1.Final
    • Scaffold
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: