Re: D2W - Problem with navigation
Re: D2W - Problem with navigation
- Subject: Re: D2W - Problem with navigation
- From: Flavio Donadio <email@hidden>
- Date: Wed, 10 Oct 2012 11:54:10 -0300
Pascal,
Do you have something different on your configurations, maybe? My Eclipse preferences are pretty much the defaults, except for the settings recommended in the installation tutorial. I just enabled that "Automatically run EOGenerator" setting...
I noticed, in Eclipse preferences -> WOLips -> Launch, that there's a "-D2WWebAssistantEnabled=true" settings that is disabled by default. Enabling makes no difference.
Cheers,
Flavio
On 10/10/2012, at 10:25, Pascal Robert wrote:
> Be aware that I wrote the tutorial, but I don't have D2W experience beside this tutorial and some fixes in an app. Maybe a D2W god could fix the tutorial if something is not working (but it did work for me).
>
>> Theodore,
>>
>>
>> Yes. I followed this tutorial: http://wiki.wocommunity.org/display/documentation/Your+First+D2W+Project
>>
>> The only differences are:
>>
>> 1. I didn't use the EOModel from the framework created in the previous tutorial. I created a new model and migration and went on from there. The automatic "EOGeneration" doesn't seem to work (and did not work before), so I have to "right-click" on my model's eogen file and select "EOGenerate...". It had no problem creating the database and tables on the first run.
>>
>> 2. I didn't really implement authentication in DirectAction.loginAction(), since I don't have a user Entity on my model. I didn't modify the Session class and I am simply returning ((Session) session()).navController().homeAction() from DirectAction.loginAction(), as this is what is returned on success in the sample code.
>>
>> So, pretty much it's a new, almost unmodified Wonder D2W app.
>>
>>
>> Cheers,
>> Flavio
>>
>> On 10/10/2012, at 08:59, Theodore Petrosky wrote:
>>
>>> do I understand you created a NEW wonder D2W app, did no editing and when you ran the app you received these errors?
>>>
>>> --- On Tue, 10/9/12, Flavio Donadio <email@hidden> wrote:
>>>
>>>> From: Flavio Donadio <email@hidden>
>>>> Subject: D2W - Problem with navigation
>>>> To: email@hidden
>>>> Date: Tuesday, October 9, 2012, 9:31 PM
>>>> Hello, folks!
>>>>
>>>>
>>>> I am trying to create a simple app to practice with D2W, but
>>>> I'm getting an error with NavigationMenu.plist. The relevant
>>>> part of the file is:
>>>>
>>>>> {
>>>>> name = Root;
>>>>> directActionClass
>>>> = DirectAction;
>>>>> directActionName
>>>> = default;
>>>>> children =
>>>> "session.navigationRootChoice";
>>>>> childrenChoices =
>>>> {
>>>>>
>>>> home
>>>> = (
>>>>>
>>>> Produtos,
>>>>>
>>>> Fabricantes,
>>>>>
>>>> );
>>>>> };
>>>>> },
>>>>
>>>>
>>>> When I run this app, the first page shown after log-in gives
>>>> me the error below:
>>>>
>>>>> UnknownKeyException:
>>>> <br.com.codeprint.TesteWeb.Session 0x732efcfe>
>>>> valueForKey(): lookup of unknown key:
>>>> 'navigationRootChoice'.
>>>>> This class does not have an instance variable of the
>>>> name navigationRootChoice or _navigationRootChoice, nor a
>>>> method of the name navigationRootChoice,
>>>> _navigationRootChoice, getNavigationRootChoice, or
>>>> _getNavigationRootChoice
>>>>> at
>>>> com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.handleQueryWithUnboundKey(NSKeyValueCoding.java:1377)
>>>>> ... skipped 11 stack elements
>>>>> at
>>>> er.extensions.appserver.navigation.ERXNavigationState.navigationItemsForLevel(ERXNavigationState.java:141)
>>>>> at
>>>> er.extensions.appserver.navigation.ERXNavigationMenu.itemsForLevel(ERXNavigationMenu.java:127)
>>>>> at
>>>> er.extensions.appserver.navigation.ERXNavigationMenu.setUpMenu(ERXNavigationMenu.java:105)
>>>>> ... skipped 29 stack elements
>>>>> _ignoredPackages:: ("com.webobjects", "java.applet",
>>>> "java.awt", "java.awt.datatransfer", "java.awt.event",
>>>> "java.awt.image", "java.beans", "java.io", "java.lang",
>>>> "java.lang.reflect", "java.math", "java.net", "java.rmi",
>>>> "java.rmi.dgc", "java.rmi.registry", "java.rmi.server",
>>>> "java.security", "java.security.acl",
>>>> "java.security.interfaces", "java.sql", "java.text",
>>>> "java.util", "java.util.zip")
>>>>
>>>> I have Googled and searched the archives for similar errors,
>>>> but can't find anything. I am missing something...
>>>>
>>>>
>>>> Cheers,
>>>> Flavio
>>>> _______________________________________________
>>>> 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
>>>>
>>
>>
>> _______________________________________________
>> 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
>
_______________________________________________
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