Hi there,

I'm playing with the new 2.1.1 release. I'm trying to use DAOs instead
of DTOs and testing it through RequestFactoryMagic. I use Guice server
side to inject the DAOs and I've implemented a ServiceLocator to hook
into Guice and get the given instance. This seems to work well.

Here's the problem. I have a domain class called Section which is a
simple JDO persistent class. This class has the required getId and
getVersion method. However, GWT blows up because there is no static
findSection(String id) method. I get the following errors:

SEVERE: There is no findSection method in type
cwp.handin3.server.model.Section that returns
cwp.handin3.server.model.Section
...
SEVERE: The type cwp.handin3.shared.SectionProxy did not pass
RequestFactory validation

I could of course create one but that defeats the purpose of the DAO.
Do I need to extend the Locator interface and hook that into Guice as
well or is there a better way?

/Henrik

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to