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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Invalid
    • 5.3.3
    • None
    • tapestry-core

    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 {
         ...
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            hatschii Benjamin Rosenberger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: