membersound
unread,Feb 25, 2013, 4:29:58 AM2/25/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
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 time I then change is, it does NOT! I keeps the newly entered text, even though it should be overriden.
@UiField(provided = true)
CellWidget<String> nameCell = new CellWidget<String>(new EditTextCell());
nameBox.addValueChangeHandler(new ValueChangeHandler<String>() {
@Override
public void onValueChange(ValueChangeEvent<String> event) {
nameCell.setValue("value change name");
//nameCell.setValue("value change name", false, true); //also tried these both, but same behaviour
//nameCell.setValue("value change name", true, true);
}
});
Can anyone spot a failure in my code?