You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Martin Papy (JIRA)" <ji...@apache.org> on 2015/03/16 07:40:39 UTC

[jira] [Commented] (TAP5-2156) t:validate=required attribute on t:radiogroup does not cause client-side validation failure when no radio button selected

    [ https://issues.apache.org/jira/browse/TAP5-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14362813#comment-14362813 ] 

Martin Papy commented on TAP5-2156:
-----------------------------------

[~thiagohp] : I tend to disagree with your point of view. The validation is clearly described as a possibility in the JavaDoc. Hence it would be expected to be working.

http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/components/RadioGroup.html

> t:validate=required attribute on t:radiogroup does not cause client-side validation failure when no radio button selected
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-2156
>                 URL: https://issues.apache.org/jira/browse/TAP5-2156
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>            Reporter: David Nicholas Williams
>            Priority: Minor
>              Labels: client, validation
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)