You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
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
Aidan O'Kelly
unread,
Oct 25, 2011, 1:40:17 PM10/25/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
On Tue, Oct 25, 2011 at 5:20 PM, opn <ope...@gmx.net> wrote:
Hello,
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?
If you can create your UserEditor, with 'new UserEditor() ' you don't need to use the 'provided=true'. UiBinder can create it for you.
provided=true is for when UiBinder cannot create an instance of the object itself, either because it needs constructor arguments, or you want it to use a specific instance.
Cristian Rinaldi
unread,
Oct 25, 2011, 2:12:55 PM10/25/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
Hello:
Supposeyou have aUserViewinterface, then you canuse theinterfaceinstead of the concrete class.
The editor was not initialized at that point and so i got the error. Stupid mistake. Now works without provided=true (I initialized the self provided editor earlier, so the error didnt occur then).