Tuesday, October 25, 2011

Nested Editor creation question

Hello,
I have a simple case where I've got an UserEditor and an AddressEditor inside the UserEditor. Then there's the UserEditorWidget (in DynatableRF it would be called UserEditorWorkflow, i think) which owns the UserEditor and starts the edit process, flushes the context etc.

Now I wondered why i have to use

@UiField(provided = true)
UserEditor userEditor

in my UserEditorWidget, while I can do

@UiField
UserAddressEditor userAddress;

in my UserEditor.

To make it clear: I have to instantiate the UserEditor myself (via new UserEditor( ) or injection) while UiBinder is able to create the "child editor" of the UserEditor itself.
Why is that?

Regards
Alex

--
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/-/zddOcoHElA8J.
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.

No comments:

Post a Comment