• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Specifying NavController with a D2W Rule
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Specifying NavController with a D2W Rule
      • From: David Holt <email@hidden>
  • Prev by Date: Re: re-post text encoding in a WOText area?
  • Next by Date: Re: Web Objects development options...
  • Previous by thread: Re: Web Objects development options...
  • Next by thread: Re: Specifying NavController with a D2W Rule
  • Index(es):
    • Date
    • Thread