ext gwt textbox new handler

Posted by user153506 on Stack Overflow See other posts from Stack Overflow or by user153506
Published on 2010-04-11T03:58:43Z Indexed on 2010/04/11 4:03 UTC
Read the original article Hit count: 550

Filed under:
|
|
|
|

i have a textbox received from designer.but i wrote action in GWT. the problem is textbox is empty but when textbox is filled by value by pressing button then alert box will be displayed informed that value has been changed. but not worked.help me.

TextBox zip1 = null;
function onModuleLoad() {
 zip1 = TextBox.wrap(DOM.getElementById("zip1"));
 zip1.addChangeHandler(zip1ChangeAction());
}

private ChangeHandler zip1ChangeAction() {
   return new ChangeHandler() {
   public void onChange(ChangeEvent event) {
     Window.alert("change fired");
   }
};

© Stack Overflow or respective owner

Related posts about ext

Related posts about gwt