Created
October 31, 2013 08:18
-
-
Save onexdrk/7245972 to your computer and use it in GitHub Desktop.
Send ZK onChange server event
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Send ZK onChange server event | |
* @param zkid - zk component id | |
* @param value - text to set in value | |
* example client control: | |
* <textbox id="zkid" onChange="@command('methodName', param1=self.value)" visible="false"/> | |
* | |
* example server method: | |
* @Command | |
* public void methodName(@BindingParam("param1") String param1) { | |
* } | |
*/ | |
function sendChangeEvent(zkid, value) { | |
var w = zk.Widget.$('$'+zkid); | |
w.$n().value=(value); | |
w.updateChange_(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment