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

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • tapestry-core

    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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: