# Textbox onChanging Argument Mismatch

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

tredmond
21 1

Hi,
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?

T

delete retag edit

## 3 Replies

Sort by » oldest newest

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

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

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

pdavie
97 3

Cool. This solved my problem too.
Thanks!

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

Vikrant
69

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);
}


[hide preview]

## Stats

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

Seen: 558 times

Last updated: Jun 11 '11

## Related questions

Support Options
• Email Support
• Training
• Consulting
• Outsourcing