Tapestry
  1. Tapestry
  2. TAPESTRY-1104

FieldLabel's field id never changes (possibly due to reuse)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.1.1
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      I'm reusing FieldLabels and TextFields in a loop, and the generated HTML for the FieldLabels is always

      label for="textField" ...

      while the generated HTML for the TextFields is

      input type="text" id="textField" ... ,
      input type="text" id="textField_0" ... ,
      input type="text" id="textField_1" ... ,
      etc

      Thus only the first FieldLabel really matches its field's id.
      This worked in 4.0.

        Activity

        Daniel Gredler created issue -
        Jesse Kuhnert made changes -
        Field Original Value New Value
        Assignee Jesse Kuhnert [ jkuhnert ]
        Jesse Kuhnert made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 4.1.1 [ 12312021 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12386000 ] Default workflow, editable Closed status [ 12567894 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12567894 ] jira [ 12591021 ]

          People

          • Assignee:
            Jesse Kuhnert
            Reporter:
            Daniel Gredler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development