So just to re-state. Everything works fine when the user actually selects a radio button.
What does not work fine, is the initial state BEFORE the user selects a radio button. There are two problems here: 1. Neither is generally selected, although in code readiobutton1.setValue(true,true) was called. 2. The RadioButton's addValueChangeHandler() listener does not always get called on IE. What is the trick to get the INITIAL view correct? Btw, I'm using GWT 2.0. Thanks! On Feb 16, 9:23 pm, dhoffer <[email protected]> wrote: > I have two RadioButtons on a panel, each have an > addValueChangeHandler() listener. Later after all the widgets are > created and added to the panelI call readiobutton1.setValue(true, > true) to both set it as selected and to fire events which the > addValueChangeHandler() listener should pickup. > > However here is what happens. > > - Most of the time the selected RadioButton is not enabled, that is, > neither of the RadioButtons are selected when the panel loads. > However most of the time the event is fired/caught which causes other > buttons to be enabled/disabled. > > - However in IE, most of the time the event (above) is not fired. > Well actually all I can see is that the results of the event do not > happen so it must not be fired. > > Am I doing something wrong? What is the right way to create > RadioButtons with a default one and then have a listener to act based > on what is selected either by the user or by code? > > Thanks much! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
