How can I run an onChange event to a radiogroup?

asked 2010-12-12 12:10:15 +0800

lramellavotta gravatar image lramellavotta flag of Italy
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?


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

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-12-12 18:50:22 +0800

caclark gravatar image caclark
1753 2 5

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).

link publish delete flag offensive edit

answered 2010-12-13 00:12:48 +0800

lramellavotta gravatar image lramellavotta flag of Italy
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 ....

n.b. I'm new on zk

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2010-12-12 12:10:15 +0800

Seen: 611 times

Last updated: Dec 13 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More