0

onChanging event doesn't work in Java

asked 2011-10-19 17:27:06 +0800

dmatag gravatar image dmatag
6

Textbox onChanging event doesn't work in Java but does in zul. I can write event.getValue() in my zul code and works fine, but I can't do it in a java class. ForwardEvent is raised in Java and event.getData is null.

I think this is an issue and both ways must be equivalent.

What do you think? Must I post an issue?

Thanks

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2011-10-19 20:25:02 +0800

RichardL gravatar image RichardL
768 4

Can you post some simple code to reproduce it?

link publish delete flag offensive edit

answered 2011-10-20 06:16:52 +0800

SparkySpider gravatar image SparkySpider
444 1 3

Are you using a GenericForwardComposer? If so, are you naming your methods correctly?

public void onChanging$txtMyTextBox (Event evt) {
{

link publish delete flag offensive edit

answered 2011-10-21 03:15:34 +0800

vincentjian gravatar image vincentjian
2245 6

Hi dmatag,

In Textbox onChanging event listener, the event is actual an InputEvent.
Therefore you should get input value in this way

public void onChanging$txbId(Event evt) {
    InputEvent event = (InputEvent) evt;
    String inputValue = event.getValue();
    // do something.....
}

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

Follow

RSS

Stats

Asked: 2011-10-19 17:27:06 +0800

Seen: 210 times

Last updated: Oct 21 '11

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