Sunday, March 29, 2015

Re: GWT Editors - temporary field



On Sunday, March 29, 2015 at 6:56:12 PM UTC+2, Manuel wrote:
Hi Thomas,
thanks for the your help, using ValueAwareEditor works well.

Now I also want to update the diff field, whenever one of the date fields value changes.
onPropertyChange dont get called, after changing one of the datefields. I think I have to add valueChangeHandlers on the datefields to recognize changes on them to update the diff-field, or is there also some mechanism in the editors-framework for this?

By design, the Editor framework doesn't listen for "live" changes, this is why you flush(). So yes, you have to register ValueChangeHandlers on the date fields yourself.

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment