java - Tapestry 5 - How can I do client-side 'required' validation on <t:radiogroup>? -


i need validate, on client, whether 1 of radio buttons in <t:radiogroup> has been selected on form submission.

using standard t:validate="required" attribute 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> 

n.b. is possible server-side using standard validate="required" attribute - again need client-side.

it seems odd standard server-side required validation works standard client-side required validation doesn't work <t:radiogroup> component.

how else can achieve on client-side?

currently, have implement yourself. if there not issue this, should feel free add 1 tapestry's jira.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -