Specifying NavController with a D2W Rule
Specifying NavController with a D2W Rule
- Subject: Specifying NavController with a D2W Rule
- From: David Avendasora <email@hidden>
- Date: Mon, 18 Oct 2010 16:11:25 -0400
Hi all,
I'm using ERModernD2W and ERXNavigation. I've followed Dave L's example and setup a NavController instead of putting all the navigation methods in the session, but even with that my NavController is getting to be huge, with lots of repeated methods that are identical except for which entity they are for.
What I'd like to do is create a NavController for each tab. This is simple enough, and I can easily target the entity-specific nav controller from the Navigation.plist by setting the action binding to session.myEntityNavController.action but I'd like to be able to define a nav controller delegate with a rule and just have the action binding have the action method name in it.
For example, for tabs that are basically for doing CRUD functions on an Entity I'd have a GenericEntityNavController superclass that has some basic stuff in it that all entity-focused tabs will want to be able to do (query, list, inspect, etc) then subclass it with delegates for each entity that do entity-specific things. I would create a rule that would define which controller to use, similar to how I can specify a pageController.
Is this possible? Can the same functionality be achieved in a different way?
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden