| Summary: | [DataBinding] ValidationError observables need a nudge to hook themselves up | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Dave Orme <djo> | ||||
| Component: | UI | Assignee: | Dave Orme <djo> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bradleyjames, villane | ||||
| Version: | 3.2 | ||||||
| Target Milestone: | 3.3 M3 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Dave Orme
Created attachment 50596 [details]
Patch
Dave, is this still needed? What was the problem that this fixed? In looks like in the patch there was a change to ComputedValue but some other clean up for other files as well. Yes, this is still needed. The problem is that if you only add a change listener to the validation error observable, it never hooks itself up as a listener to the things it listens to. This patch fixes this. The reason I ask is that I'm trying to figure out what is different in this and bug 140644. The problem in bug 140644 was that bindings weren't being added to the internal list of bindings. But now that they are observation of validation error appears to be working, at least with a simple use case. I'm sure I'm missing something, just trying to figure out what. (In reply to comment #4) > But now that they are observation of validation > error appears to be working, at least with a simple use case. I'm sure I'm > missing something, just trying to figure out what. It is working because when binding to the validation error, the binding will add a listener *and* call getValue. This bug is about a case where you only add a listener and expect to receive updates, but don't since adding a listener to a ComputedValue did not cause the ComputedValue to listen to its dependent observables. BTW, this bug was probably observed while using the deprecated DataBindingContext subclass, which did add its bindings to the context. Dave, most of this patch seems to be in HEAD already. I have released the change to ComputedValue for builds >20061005. Could you please check if there is anything else that needs to be released, and if not, set this bug to FIXED? Thanks. Still waiting on resolution to this. Please mark as fixed or update milestone appropriately. Oops. This should be resolved>fixed. Thanks for the nudge. :-) |