[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] Re: [DataBinding] Asynchronous validation
|
Ovidio,
Again, this sounds like a reasonable use case that we don't support yet.
Could you please file an enhancement request in bugzilla?
Thanks
Boris
"Ovidio Mallo" <malloovidio@xxxxxxxxxx> wrote in message
news:fmvbe4$v13$1@xxxxxxxxxxxxxxxxxxxx
> 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