com.google.web.bindery.requestfactory.shared.RequestContext; did you forget to inherit a required module?

163 views
Skip to first unread message

dparish

unread,
Jun 11, 2011, 12:35:21 PM6/11/11
to Google Web Toolkit
I'm trying to use RequestFactory in GWT 2.3. I noticed that the
original RequestFactory has been depricated in favor of:

com.google.web.bindery.requestfactory.shared.RequestContext

My problem is that when I try to run my app I get:


[ERROR] [retain] - Line 10: No source code is available for type
com.google.web.bindery.requestfactory.shared.RequestContext; did you
forget to inherit a required module?

I noticed that the GWT RequestFactory docs aren't very good. For
instance they neglect to mention adding the servlet to web.xml. I
tried adding the above RequestContext as a module but that didn't work
either. Anyone know what I'm missing?

-Dave

Y2i

unread,
Jun 11, 2011, 12:47:08 PM6/11/11
to google-we...@googlegroups.com
The new one is in com.google.web.bindery.requestfactory.RequestFactory module

dparish

unread,
Jun 11, 2011, 12:52:04 PM6/11/11
to Google Web Toolkit
Thanks. After I posted I cracked open gwt-user.jar and found it. I
needed to add the following to my gwt project xml file:

<inherits
name='com.google.web.bindery.requestfactory.RequestFactory'/>


The coding docs for this stuff is pretty good but the setup / config
is terrible. If they expect you to use Spring Roo they should doc
that.

Y2i

unread,
Jun 11, 2011, 12:58:05 PM6/11/11
to google-we...@googlegroups.com
I don't think GWT team expects us to use Spring Roo.  Seems quite the opposite, the don't expect us to use anything.
Reply all
Reply to author
Forward
0 new messages