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 Piriti
Hi,
I'm having a problem mixing GIN and Piriti. As you can see the
"Dynamic" object has no default constructor and is this causing an
error because Piriti tries to initiate it outside GIN, even that I
used GIN to get Piriti started. For sure "Dynamic" works correctly
without Piriti and GIN injects the workflowController with a
DefaultWorkflowController.
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 Piriti
To clarify my question, I need Piriti to use GIN to initiate my
classes, i.e initiate Dynamic through GIN and in that way GIN will
notice the @inject and inject the DefaultWorkflowController class into
the workflowController field.
Thanks again.
Harald Pehl
unread,
Apr 3, 2012, 9:59:13 AM4/3/12
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
@CreateWith(DynamicCreator.class) public class Dynamic {
... }
public class DynamicCreator extends XmlInstanceCreator<Dynamic> { public Dynamic newInstance(Node context) { DynamicFormGinjector injector = GWT.create(DynamicFormGinjector.class);
Dynamic instance = injector.getDynamic();
return instance;
} }
This way new instances of Dynamic are not created using GWT.create(Dynamic.class) but the specified InstanceCreator.