Editor framework problem
Hi everyone,
I faced the following problem, not sure whether it's a bug or a feature. It occurs if the Driver class has the editor generic type as an interface, but not the actual implementation. Note that MyPersonDriver references MyPersonEditor, not MyPersonEditorImpl. In this case the line: driver.edit(somePerson, requestContext);
does not populate the form. If I use MyPersonEditorImpl it works, but when the driver does not reference the actual class it doesn't.
interface MyPersonEditor extends Editor<PersonProxy>, MyOtherInterface {
...
}
interface MyPersonDriver extends RequestFactoryEditorDriver<PersonProxy, MyPersonEditor> {
...
}
class MyPersonEditorImpl extends Composite implements MyPersonEditor {
@UiField
ValueBoxEditorDecorator<String> name;
...
}
MyPersonDriver driver = GWT.create(MyPersonDriver.class);
driver.edit(somePerson, requestContext);
Cheers,
Vesko
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aekyNExCqlwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home