How do i implement OnClick listener for Radio Button(Option Group)

i want to perform certain functions when the Option group is clicked upon.
This is not the value change listener i am talking about.
Can i add a listener which will listen for OnClick events?

Note : Using vaadin 6.4, cant upgrade because of requirements

Hi,

in Vaadin 7 this would be easy to do with an extension. However in Vaadin 6 I don’t think there’s a simple way. You could try wrapping the OptionGroup in some layout and add a LayoutClickListener to it, although I’m not sure if the events get through or if the propagation is stopped by the OptionGroup. If that won’t work, most likely the only option is to do some client-side coding - extending the OptionGroup to have such a listener.