Textbox onChanging Argument Mismatch

asked 2010-03-26 07:48:24 +0800

tredmond gravatar image tredmond
21 1

I have a window with a textbox in it and I want to detect changes to the textbox to enable a button. My controller window has an onChanging event handler in it which according to the documentation should get an InputEvent. However, when my handler is called, I get a message box with Error - Argument Mismatch. If I change the argument in the handler to just Event, it goes away but then I can't access the changing value in the event.

Any ideas? Is it a bug in ZK5.0.1?


delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2010-03-26 14:05:30 +0800

tredmond gravatar image tredmond
21 1

I've fixed it so I'll reply to myself here. Turns out the event actually being sent to the onChanging method is a ForwardEvent. Therefore I can do a getOrigin() on it and cast it to InputEvent and then do a getValue() on that to get the changing text..

link publish delete flag offensive edit

answered 2011-05-31 20:54:17 +0800

pdavie gravatar image pdavie
97 3

Cool. This solved my problem too.

link publish delete flag offensive edit

answered 2011-06-11 03:53:11 +0800

Vikrant gravatar image Vikrant

try this to get chages in textbox
use method argument InputEvent intead Event as in code below

public void getChange(InputEvent event)
     alert("Textbox value "+ event.getValue);

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-03-26 07:48:24 +0800

Seen: 558 times

Last updated: Jun 11 '11

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