Editor Framework: RequestFactoryEditorDriver.getPaths() is one solution. It gives you all paths needed by your Editor hierarchy.
In GWT 2.5 there is a global/wildcard operator "*": http://code.google.com/p/google-web-toolkit/issues/detail?id=6697 (but "**" is not supported yet). I think thats all you have for now. -- J. Am Donnerstag, 18. Oktober 2012 14:14:24 UTC+2 schrieb Eugene Ivlev: > > Oh my God! It's disgusting, but it is so! > > Isn't exist better way to work with nested objects? > > > суббота, 11 декабря 2010 г., 20:10:03 UTC+4 пользователь tshalif написал: >> >> I wonder either there is a better way to tell RequestFactory to >> recursively populate my object graph - I feel a bit silly using this: >> >> PojoShamRequest request = >> PojoShamRequestFactory.Util.get().pojoShamRequest(); >> >> request.findPojoSham(777L).with( >> >> "items.items.items.items.items.items.items.items.items.items.items.items", >> >> "items.properties", >> "items.items.properties", >> "items.items.items.properties", >> "items.items.items.items.properties", >> "items.items.items.items.items.properties", >> "items.items.items.items.items.items.properties", >> "items.items.items.items.items.items.items.properties", >> "items.items.items.items.items.items.items.items.properties", >> "items.items.items.items.items.items.items.items.items.properties", >> "items.items.items.items.items.items.items.items.items.items.properties", >> "items.items.items.items.items.items.items.items.items.items.items.properties", >> >> >> "items.items.items.items.items.items.items.items.items.items.items.items.properties".fire(...); >> >> >> >> On Nov 24, 9:52 am, mp31415 <[email protected]> wrote: >> > It seems dot notation works (found inRequestFactoryunit tests). >> > Something along the lines .with("lines.start").with("lines.end"). >> > >> > On Nov 23, 10:59 am, mp31415 <[email protected]> wrote: >> > >> > >> > >> > >> > >> > >> > >> > > By defaultRequestFactory(RF) fetches an entity proxy itself(the root) >> > > but does not fetch other entity proxies referenced from the root. In >> > > order to fetch referenced properties their names must be provided >> > > using with() method on the request(context). Is there a syntax to >> > > request proxies nested even deeper (referenced from those referenced >> > > entities of the first level)? >> > >> > > For example, if there are three classes(entities): User, Line, Point: >> > >> > > class User >> > > { >> > > Set<Line> lines;} >> > >> > > class Line >> > > { >> > > Point start; >> > > Point end;} >> > >> > > class Point >> > > { >> > > int x; >> > > int y; >> > >> > > } >> > >> > > How can I fetch User proxy with all its lines and points? >> > >> > > Please don't tell me about denormalizing, workarounds like >> referencing >> > > everything directly from User or about upcoming in GWT 2.1.1 >> > > value(embedded) objects. The question is about entity graph and the >> > > classes above are just an illustration. >> > >> > > Thanks. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/121HOQKQwwUJ. 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.
