Friday, March 25, 2011

Re: Access Service Layer inside RequestFactory EntityLocator

You can create your own ServiceLayerDecorator that overrides the default behavior of the createLocator() method. There's an example of wiring in a custom ServiceLayerDecorator here:

http://code.google.com/p/listwidget/source/browse/trunk/src/main/java/com/turbomanage/listwidget/server/servlet/

Basically you extend RequestFactoryServlet to add your own decorator, then rewire web.xml to serve /gwtRequest with your custom servlet.

Your own ServiceLayerDecorator would presumably get the Locator instance from Spring instead of the default new instance.


HTH,
/dmc

On Fri, Mar 25, 2011 at 12:29 PM, Lukasz Strzelecki <LukaStrz@gmail.com> wrote:
Kathiravan Tamilvanan <kathir@...> writes:

>
>

Did you manage to resolve this? I'm forcing with same problem rigth now.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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.




--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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