# Textbox onChanging Argument Mismatch

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

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

pdavie
97 3

Cool. This solved my problem too.
Thanks!

Vikrant
69

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

public void getChange(InputEvent event)
{
}


[hide preview]