Are you using the editor framework? If so, you could use RequestFactoryEditorDriver.getPaths(). This method returns a String Array with all paths that have to be loaded by RequestFactory in order to allow the EditorDriver fill all editors in your UI.
So when you are able to use Editors in your UI to display and edit all the information of the selected insurance policy, request.findXXX().with(requestFactoryEditorDriver.getPaths()) will load everything that is needed by your UI. On 4 Feb., 14:27, Charl Fourie <[email protected]> wrote: > Hi all > > I have been searching around. I have seen a couple of people ask the > same question but have not seen any answers. > > Our application makes use of quite a large and complex object graph. > As the product is still in active development, this graph changes > regularly. Our application starts by showing a list of items (eg. > insurance policies). If the user selects an item, ALL of it's details > are displayed to the user on one page. The user then has the ability > to drill down and make changes as required. > > Because of the above, the following code would be almost > unmaintainable: > > ParentRequest parentRequest = requestFactory.parentRequest(); > parentRequest.findParent(1L).with("child1", > "child1.grandchild1", > ....................,"child9.grandchild7.greatgrandchild5.greatgreatgrandchild3") > .fire(new Receiver<ParentProxy>() {... > > We therefore need a way to tell the request object to load the whole > object graph. It would have been nice to do something like the > following: > > parentRequest.findParent(1L).with("**/*").fire(new > Receiver<ParentProxy>() {... > > or something like: > > parentRequest.findParent(1L).traverseAll().fire(new > Receiver<ParentProxy>() {... > > Does anybody know of away to get around this or to accomplish this? > Maybe override some GWT infrastructure class or something? > > Any help would be appreciated. -- 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.
