ext gwt textbox is empty?
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/15
12:53 UTC
Read the original article
Hit count: 471
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