Introduction
A WODisplayGroup
is a versatile way of fetching objects from the database and displaying them.
Some of the options a WODisplayGroup can provide you are:
- paginate your results
- filter your results using queryOperators and pattern matching
- display Master/Detail pages
Creating a WODisplayGroup with WOLips
 | WOLips Component Editor Display Group Tab What follows is a description of how to use the Display Group editor to configure a display group in the .woo file. |
- If you have moved your development to WOLips, the "default" display group is created using the Display Group component editor.
- If you choose to use the Display Group editor, behind the scenes you are actually modifying your component's .woo file. In general you shouldn't modify the .woo file by hand. The Apple docs define this file as containing information that describes WODisplayGroup objects (and a couple of other things like character encoding). The .woo archive is stored in your component's bundle (.wo) and is used to create and configure the display groups at runtime. There is currently no graphical representation in WOLips to tell you whether the WODisplayGroup has been initialized in the component editor. This was something that WOBuilder showed you in the Layout display mode. You'll have to go into the Display Group editor to determine whether it has been configured or not. The other change from WOBuilder is that an instance variable for your WODisplayGroup with the same name that has been defined in the Display Group editor must be added to the .java file. This is no longer automatic. The end result is that WebObjects will automatically instantiate your display group when the page is created using information contained in the .woo.
Here is the resulting .woo file:
Creating a WODisplayGroup with Xcode
 | Xcode/WOBuilder/EOModeler method to create an automatically initializing WODisplayGroup
What follows is a description of how to use Xcode/WOBuilder/EOModeler to configure a display group in the .woo file. |
- If you are still using Xcode and WOBuilder/EOModeler, getting started with WODisplayGroups requires very little code and most of the display choices can be wired up in WOBuilder. To get started you simply drag the entity you wish to display from your EOModel into the component where you want to create the WODisplayGroup. Another option is to drag a relationship from your EOModel which will automatically set up a WODisplayGroup with Master/Detail information already set. Another option is to create a DisplayGroup component using the template available to you in XCode under the "Add a new file" option.