Sunday, March 29, 2015

Re: GWT Editors - temporary field

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.


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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment