Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2483

BeanEditForm field name regression introduced with 5.4-beta-31

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 5.4
    • None
    • None
    • None

    Description

      Issue started with: 5.4-beta-31
      Last working release: 5.4-beta-30

      I have the below BeanEditForm

      <t:beaneditor t:object="user"
                        include="username,lastName,firstName,email,phone,password,confirmPassword">
                        <p:username>
                          <div class="form-group">
                            <t:label for="username" />
                            <t:textfield t:id="username" value="user.username" t:mixins="OverrideFieldFocus" />
                          </div>
                        </p:username>
                        <p:password>
                          <div class="form-group">
                            <t:label for="password" />
                            <t:passwordfield t:id="password" value="user.password" />
                          </div>
                        </p:password>
                        <p:confirmPassword>
                          <div class="form-group">
                            <t:label for="confirmPassword" />
                            <t:passwordfield t:id="confirmPassword" value="user.confirmPassword" />
                          </div>
                        </p:confirmPassword>
                      </t:beaneditor>
      

      The name attribute of the input generated for each included fields were matching the field name until 5.4-beta-31.
      With 5.4-beta-31 the above form generates the following name attribute for <input /> for
      name="textField" instead of name="lastName"
      name="textField_0" instead of name="firstName"
      name="textField_1" instead of name="phone"

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              balapal Balázs Palcsó
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: