RE: Validator JavaScript and html:radio buttons

2003-08-26 Thread Yee, Richard K,,DMDCWEST
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 [

RE: Validator JavaScript and html:radio buttons

2003-08-26 Thread Cezar Nasui
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

RE: Validator JavaScript and html:radio buttons

2003-08-26 Thread Kruse, Matt
> 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

RE: Validator JavaScript and html:radio buttons

2003-08-25 Thread Wendy Smoak
> 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