Re: radio and radiogroup default checked not working?

2009-09-04 Thread Seven Corners
I have a similar issue, but I don't know which radio should be checked until runtime. So I can't hard-code it in the HTML; I have to determine it from my DAO in the radiogroup's parent panel constructor. I'm using the model to determine which radio to select, and it works fine once you click,

radio and radiogroup default checked not working?

2009-02-27 Thread francisco treacy
hi people, i'm quite puzzled with this little problem: i have two Radio buttons within a RadioGroup. both radios have an ajaxeventbehavior(onclick) attached to them, and there are no models backing those components. this works fine. my problem is i want the *first* option to be checked by

Re: radio and radiogroup default checked not working?

2009-02-27 Thread Jonas
Have you tried this: add models to the components (even though you don't use on them), and store the value associated with the Radio you want checked in the RadioGroup's model: final RadioGroupBoolean group = new RadioGroupBoolean(group, new Model(Boolean.TRUE)); RadioBoolean radio1 = new

Re: radio and radiogroup default checked not working?

2009-02-27 Thread francisco treacy
i was refusing to use models (how stubborn :) but i think you're right - not a very mean workaround that just works fine. thanks! francisco On Fri, Feb 27, 2009 at 4:41 PM, Jonas barney...@gmail.com wrote: Have you tried this: add models to the components (even though you don't use on them),