Which browser? On 14 set, 07:47, TomJanssens <[email protected]> wrote: > Hello, > > I am trying to include aradiobuttonin a menuitem. When the menuItem > is clicked, the checked state of theradiobutton(and other > radiobuttons in the same group) should be updated. > > My design roughly lookes like this. > > public class RadioMenuItem extends MenuItem { > > public RadioMenuItem { > ... > button = newRadioButton( "group", text ); > > String html = button.getElement().getInnerHTML(); > this.getElement().setInnerHTML( html ); > ... > > } > } > > in the Command.Execute of the MenuItem I am trying to change the value > of theradiobutton. (GWT does not support the html label for feature). > > I have already tried > > button.setChecked(true); > button.setValue(true); > button.setValue(true, true); > > but none of them updates the radio button state. > > If I click theradiobutton, everything works fine as this is by > default supported in GWT, however if the label of theradiobuttonis > clicked nothing happens. My Command.Execute method is executed, but > the state does not change. > > Any ideas are welcome. > > Cheers > Tom
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
