Matt,
Are you using the Struts html:radio tag to display the radio buttons? If so,
you should initialize the field in the FormBean that contains the value of
the radio button so that Struts marks one of the buttons as 'checked' for
you.
Regards,
Richard
-Original Message-
From: Matt E [
Hi Matt,
As the other said I would suggest to have one button already selected unless
your business logic says not to suggest something to the user.
I think your generated Javascript doesn't check to see if at least one
button is selected. Can you post the JS code and the code for the submit
butto
> IIRC, it's invalid HTML unless exactly one of the radio
> button options is selected.
That's not true. Not really. From the specs:
Radio buttons are like checkboxes except that when several share the same
control name, they are mutually exclusive: when one is switched "on", all
others with
> The Javascript checking generated by the Validator
> framework doesn't give an error if neither on is
> selected, however the backend will, and produce an
> error I can see with the tag.
IIRC, it's invalid HTML unless exactly one of the radio button options is
selected. In your case I'd pre-se
4 matches
Mail list logo