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

RadioGroup goes wrong in AJAX submit: gets set to first value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 5.4
    • None
    • tapestry-core
    • None

    Description

      Using T5.4 alpha-23.

      A non-AJAX submit of a RadioGroup works just fine…

      <t:form t:id="inputs">

      <t:RadioGroup t:id="radiooo" value="radioSelectedValue">
      <t:Radio t:id="radioH" value="literal:H" label="High" type="radio"/><t:label for="radioH"/><br/>
      <t:Radio t:id="radioM" value="literal:M" label="Medium" type="radio"/><t:label for="radioM"/><br/>
      <t:Radio t:id="radioL" value="literal:L" label="Low" type="radio"/><t:label for="radioL"/>
      </t:RadioGroup>

      <input type="submit" value="Submit"/>
      </t:form>

      …but when you turn it into an AJAX submit, it always sets the RadioGroup value to the first Radio's value (which is "H" in this example)…

      <t:zone t:id="zzz">
      <t:form t:id="inputs" zone="^">

      <t:RadioGroup t:id="radiooo" value="radioSelectedValue">
      <t:Radio t:id="radioH" value="literal:H" label="High" type="radio"/><t:label for="radioH"/><br/>
      <t:Radio t:id="radioM" value="literal:M" label="Medium" type="radio"/><t:label for="radioM"/><br/>
      <t:Radio t:id="radioL" value="literal:L" label="Low" type="radio"/><t:label for="radioL"/>
      </t:RadioGroup>

      <input type="submit" value="Submit"/>
      </t:form>
      </t:zone>

      Attachments

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              geoffcallender Geoff Callender
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: