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?
--
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
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.