On Wednesday, January 23, 2013 8:50:17 PM UTC+1, Joe Bandenburg wrote: > > I'm trying to create a decorator that works for LeafValueEditor as opposed > to ValueBoxEditor but I'm finding that, in the case of > ValueBoxEditor showErrors is passed *two *EditorError objects per error. > One that has an editor that equals the ValueBoxEditor and the other that > has an editor that equals the decorator. If all I change is the type of > editor returned from asEditor to LeafValueEditor, then only *one* EditorError > is passed in, with an editor equal to the decorator. What's going on here?
It might be because ValueBoxEditor is a HasEditorDelegate. Anyway, that's a bug. We have a patched ErrorCollector in a project, but unfortunately we didn't document what the bugs were that lead us to patch it, but it had to do with errors "bubbling up" the editor hierarchy and/or aliased editors (several editors for the same path, as is the case for ValueBoxEditorDecorator); I'm really not sure our changes are the "correct" ones either, all I can say is that they "work for us". So any test-case is welcome! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
