I just did the same to see what steps are necessary:
1. Create project
2. Add the following frameworks: JavaDirectToWeb, JavaDTWGeneration, JavaEOProject
3. Add your D2WList to the Main component below "Hello World"
4. Bind entityName to your EO (I used "Registrant")
5. Bind list to an array of your EO's.
6. Optionally set your displayKeys
<wo:D2WList entityName = "Registrant" list = "$registrantList" displayKeys = "(firstName,lastName)" />
I used the WonderEntity eogenerator templates and the following method:
/**
* @return the registrantList
*/
public NSArray<Registrant> registrantList() {
return Registrant.fetchAllRegistrants(session().defaultEditingContext());
}
That's all I did. There were no rule files or rules required.