[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] [DataBinding] Asynchronous validation
|
Hi all!
I wanted to ask whether it is possible to use asynchronous validators
in a binding. The actual model update should then be deferred until the
actual validation has been performed (e.g. on a server).
I was thinking about an approach like the following:
1. The validator immediately returns a temporary IStatus result which
should be of type ERROR to avoid the model update.
2. When the actual validation terminates, the validator triggers an
explicit update on the binding (this, of course, requires the
validator to reference the binding which is not so nice).
Is this an acceptable approach or is there some better way of solving
the problem?
Thanks & regards,
Ovidio