Tapestry 5
  1. Tapestry 5
  2. TAP5-1928

zone with formsupport renders hidden input field after first child element and breaks css-styling

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Invalid
    • Affects Version/s: 5.3.3
    • Fix Version/s: None
    • Component/s: tapestry-core
    • Labels:

      Description

      when adding a zone (HiddenFieldLocationRules == RelativeElementPosition.INSIDE) around checkboxes in a form

      ...
      <t:zone t:id="zone">
         <div t:id="checkBox1"/><t:label for="checkBox1"/>
      </t:zone>
      ...
      

      the hidden-input tag will be rendered after the first child element

      <div id="zone" class="t-zone">
         <input type="checkbox" name="checkBox1_137352f1806" id="checkBox1_6" disabled="disabled"><label class="inline" for="noteWorkshop_6">Service:</label>
         <input type="hidden" name="t:formdata" value="...">
         <label>label</label>
      </div>
      

      which breaks the css selekor

      input[type="checkbox"][disabled] + label {
         ...
      }
      

        Activity

        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Resolution Invalid [ 6 ]
        Status Open [ 1 ] Closed [ 6 ]
        Benjamin Rosenberger created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Benjamin Rosenberger
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development