Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1104

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: