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

        Hide
        Jesse Kuhnert added a comment -

        This was probably resolved by recent work on form component name/id attributes in general. Will be making a push tomorrow probably.

        Show
        Jesse Kuhnert added a comment - This was probably resolved by recent work on form component name/id attributes in general. Will be making a push tomorrow probably.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development