# How can I run an onChange event to a radiogroup?

lramellavotta
200 1 8

The radiogroup does not support the onChange event.
I thought so to trigger the event using the field (hidden) reference .... and I thought wrong ...
Any ideas?

Thanks


Tipo
<hbox>
<radio value = "A"  label="Amministratore " />
<radio value = "U"  label="Utente " />
<textbox value="@{win.current.Tipo}" onChange="onChange()" visible="false"/>
</hbox>


delete retag edit

## 2 Replies

lramellavotta
200 1 8

Hi Caclark, the value in the screen changes when I choose one of two radio buttons but the event are not fired.
In my program. java I do not have any control on the exchange of value. I was hoping to resolve on .zul ....
Luca

n.b. I'm new on zk

caclark
1753 2 5
http://clarktrips.intltwi...

selectedItem is the way to handle it...did you see if the Tipo(...) method is fired in the win.current object? What are you really trying to accomplish when the value changes? Because the Tipo method will have the new value as its String parameter (by default).

[hide preview]