value change listener not firing

2010-04-07 Thread Vik
Hie I am using following code: final TextBox firstName = new TextBox(); firstName.setFocus(true); firstName.addValueChangeHandler(new ValueChangeHandlerString(){ @Override public void onValueChange(ValueChangeEvent event) { if (firstName.getText().length() == 0) {

Re: value change listener not firing

2010-04-07 Thread Ian Bambury
this does not get fired if i simply tab out from the text box. It fires in the case when i put some char and delete it and then tab out. is it a bug? No. If the value has changes then, when it loses focus, the ValueChange event will fire. If it hasn't changed, then it hasn't changed and so it