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?
Thanks in advance.
Regards,
Manuel
Am Sonntag, 29. März 2015 17:56:21 UTC+2 schrieb Thomas Broyer:
-- 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?
Thanks in advance.
Regards,
Manuel
Am Sonntag, 29. März 2015 17:56:21 UTC+2 schrieb Thomas Broyer:
I would implement ValueAwareEditor on the editor that contains the subeditors for the two fields.On setValue, compute the difference/duration and put it into a label for display (annotated with @Editor.Ignore, as it's not a field of the "model").
On Sunday, March 29, 2015 at 5:21:56 PM UTC+2, Manuel wrote:Hi everyone,
my question is regarding the Editors framework with Requestfactor, that im qctually using.
I got a proxy with two dates, that is used with editors. Now I want to show the difference of these two dates in a seperate field (i.e. 2 hours).
One simple approach could be, after calling driver.edit(proxy), to calculate the diff for the dates manually.
Another could be, to add the diff-field to my proxy. Since the field is read-only + its a temporary field, that is not and should not be persisted, that wouldnt be the best solution I think.
Im not deep in editors, I just got the base Editors+Requestfactory example running. So my question is, whats the best / simplest way, to include a temporary non persitent field with editors?
Thanks in advance.
Regards,
Manuel
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