ValueChangeHandler on EditTextCell does only work for 1st edit?

2013-02-25 Thread membersound
Hi, I have a big problem with ValueChangeEvent on an EditTextCell: for testing purpose, I just always set the value to a fixed string, no matter what the change event was. Result: the first time I change the text in EditTextCell it works as expected and overrides the input text. BUT any other

Re: ValueChangeHandler on EditTextCell does only work for 1st edit?

2013-02-25 Thread Thomas Broyer
Editable cells keep their current state in their view data; if you want to set the value programmatically you have to clearViewData() first. Try adding something like: ((AbstractEditableCellString) nameCell.getCell()).clearViewData(nameCell.getValue()); before you setValue(). Still trying to

Re: ValueChangeHandler on EditTextCell does only work for 1st edit?

2013-02-25 Thread Kody
Thanks that's a good hint. But using as you suggested only fixes the behaviour for every 2nd data change. Thats really strange: I edit the field 1st time, then value is overriden. I edit it 2nd time: value stays as has been input. I edit 3rd time: value is overridden again. And so forth. Why

Re: ValueChangeHandler on EditTextCell does only work for 1st edit?

2013-02-25 Thread Kody
Maybe it has something to do with this issue? http://code.google.com/p/google-web-toolkit/issues/detail?id=4785 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: ValueChangeHandler on EditTextCell does only work for 1st edit?

2013-02-25 Thread Kody
Hm ok I tried this, but it does not change the issue I described above. Though clearing the viewdata, only the first edit is overridden. 2013/2/25 Thomas Broyer t.bro...@gmail.com Editable cells keep their current state in their view data; if you want to set the value programmatically you

Re: ValueChangeHandler on EditTextCell does only work for 1st edit?

2013-02-25 Thread Kody
By the way I found out, that using nameCell.setValue(value change name, true); together with clearing the viewData will not change the visible label in front of the EditTextCell, but when I change the cell to edit mode by clicking on it, then the text is NOT equal to the label, but just shows the