On Wednesday, April 18, 2012 5:49:56 PM UTC+2, saurabh saurabh wrote: > > Hi all, > I don't have much experience with Editor frameworks so this question > may appear naive or dumb. > > So suppose we have a big bean or proxy having a many fields. A good > idea in view part could be having group them under TabLayoutPanel > otherwise a big form on a page may not appear user friendly. > > Example: > Patient Registration Form > --------------------------------------------------------------------------------------------------------------------------- > > > ||Personal Details || Patient Habbits || Family History || Medical > History || Insurance || | > --------------------------------------------------------------------------------------------------------------------------- > > > | > | > | > | > | > --------------------------------------------------------------------------------------------------------------------------- > > > > Here I feel comfortable to have five different UI like detailsView, > habbitsView and so on and having them under one composite but all of > 'em are concerned to one Class Patient. > > So my question is how I can wire multiple Editors to same bean, each > for different set of properties. > > I don't find much on net for Editors, I guess it could be > CompositeEditors, but I need some help for how to do it.
See https://developers.google.com/web-toolkit/doc/latest/DevGuideUiEditors#Very_large_objects (and note that you can use @Path("") to have a subeditor for the same object as is being edited). Alternatively, you can use several EditorDrivers on the same object; you'd just have to make sure they don't step on each others (that is, you don't edit the same field in two distinct EditorDrivers). The only difference is that you can edit() the object only when needed (e.g. when the tab is first revealed), but you'll have to flush() all the drivers that you called edit() on before saving your object, or you risk losing data (not persisting changes made by the user). -- 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/-/3j2JMeO7pVUJ. 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.
