PDA

View Full Version : 'selected' attribute for radio element


cmcginnis
02-04-2003, 03:06 PM
How does the 'selected' attribute work for the radio element? I'm guessing that it determines which radio button should be initially set. Here is what I have tried:

<canvas title="Radio Button Example">
<radio group="group1" selected="true" label="First"/>
<radio group="group1" label="Second"/>
<radio group="group1" label="Third"/>
<simplelayout axis="y" spacing="5"/>
</canvas>

Thanks
Chris

antun
02-04-2003, 03:33 PM
Hey Chris

I just tried your example, and it doesn't seem to work for me either. Perhaps this is a bug. I'm looking into it. But you're right, the syntax should be:-

<radio group="group1" selected="true" label="First"/>

Take care,

Antun

antun
02-04-2003, 04:34 PM
Hey Chris

I've found the bug in the radio source code, and fixed it in this patch. This should be considered an unsupported fix, but you can use it. Just copy the file into:

lps-dr\WEB-INF\lps\components\redmond

You should back up the one that's there.

Take care,

Antun