"without" instead of "with" for RequestFactory requests

14 views
Skip to first unread message

Ryan McFall

unread,
Jun 30, 2011, 12:51:49 PM6/30/11
to Google Web Toolkit
Having just started developing with RequestFactory, I've found the
requirement to use the "with" method to specify which nested proxies
should be downloaded when a proxy or collection of proxies to be
rather cumbersome. Even when I remember to call with, (which is rare,
but hopefully that changes), it is still a hassle to walk the
hierarchy to make sure I get what I need.

I'd like to propose that there be a "without" method in addition to a
"with" message. It's much more likely that I know which objects I
don't need, and that I would not need a whole hierarchy starting with
the values I pass to without. If I do need some of the proxies, it's
likely that I want all of the components, not just the proxy itself.

Does anyone else think this is a good idea? I don't think it would be
hard to implement, as the necessary code simply requires some
reflection oriented code on the server.

Ryan

Jeff Larsen

unread,
Jun 30, 2011, 2:16:35 PM6/30/11
to google-we...@googlegroups.com
Are you using editors? If so, you can do 

 fetchRequest.with(editorDriver.getPaths());
Check out the PersonEditorWorkflow.java in Dynatablerf for in context use. 

Ryan McFall

unread,
Jun 30, 2011, 2:25:08 PM6/30/11
to Google Web Toolkit
Nope, not using editors. I haven't dove into that part of the data
tools yet.

Ryan
Reply all
Reply to author
Forward
0 new messages