You need to set your navigationState in your d2wContext in some way. That can 
be as straightforward as a few rules like

100: pageConfiguration = ‘ListComputer’ => navigationState = ‘Computers’ 
[Assignment]
100: pageConfiguration = ‘CreateComputer’ => navigationState = 
‘Computers.CreateComputer’ [Assignment]
… and so on.

I think BugTracker does this through a page factory bottleneck so it can set 
the navigationState values programatically. But then, it has a lot of 
navigationState rules as well.

BTW, if you’re just using the standard page configs, the ERD2WDirectAction 
class can save you a lot of navigationController boilerplate. It’s just 
directActionName = ‘PageConfigurationName’ like

name = Computers;
directActionName = “ListComputer”;

I do this whenever possible and generally I use the pageConfiguration as the 
name as well

name = ListComputer;
directActionName = “ListComputer”;

That way it’s easier to remember what localized key applies to what.

[cc’ing the list.. begrudgingly. Here comes six more undeliverable messages :/ 
maybe time to move to the wonder list?]

On Jun 23, 2014, at 12:30 PM, Pascal Robert <prob...@macti.ca> wrote:

> I'm trying to build a prototype for a inventory system, and I'm trying to use 
> D2W in that system. Problem is that my navigation doesn't work. I have two 
> first-level children, Computers and Mobile, and each have two children. 
> Problem is: I only see the tabs for Computers and Mobile, the sub tabs don't 
> appears.
> 
> My NavigationMenu.plist file:
> 
> (
>    {
>        name = Root;
>        directActionClass = DirectAction;
>        directActionName = default;
>        children = ("Computers", "Mobile");
>    },
>    {
>        name = "Computers";
>        action = "session.navController.listComputersAction";
>        children = ("CreateComputer","SearchComputers");
>    },
>    {
>        name = "CreateComputer";
>        action = "session.navController.createComputerAction";
>    },
>    {
>        name = "SearchComputers";
>        action = "session.navController.searchComputersAction";
>    },
>    {
>        name = "Mobile";
>        action = "session.navController.listMobileDevicesAction";
>        children = ("CreateMobileDevice","SearchMobileDevices");
>    },
>    {
>        name = "CreateMobileDevice";
>        action = "session.navController.createMobileDeviceAction";
>    },
>    {
>        name = "SearchMobileDevices";
>        action = "session.navController.searchMobileDevicesAction";
>    }
> )
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
> 
> This email sent to rgur...@smarthealth.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to