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

t:validate=required attribute on t:radiogroup does not cause client-side validation failure when no radio button selected

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tapestry-core
    • Labels:

      Description

      Using the standard t:validate="required" attribute on t:radiogroup like so does not work

      <t:radiogroup t:id="options" value="data.options" t:validate="required" >
      <t:label for="option1"/><t:radio t:id="option1" t:value="option1"/>
      <t:label for="option2"/><t:radio t:id="option2" t:value="option2"/>
      </t:radiogroup>

      When the form is submitted and neither radiobutton 'option1' or 'option2' in 'options' is selected, there is no client-side validation failure.

      N.B. The server-side validation using the validate="required" attribute works as expected.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              davnicwil David Nicholas Williams
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: