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:48:43 -0300
On 10/10/2012, at 10:17, Theodore Petrosky wrote:
> so it was not a 'virgin' new D2W app.
Well... Depends on what you mean by "virgin"... :) I made just a couple changes that shouldn't create serious problems, IMO.
> i would try that. select new D2W wonder app. then run. do nothing else. do not add any other frameworks, nor models.
I tried a new app and ran it right away. No problem at all!
But, when I try to edit NavigationMenu.plist to add "sub tabs", i get the same error as before.
Here's my plist:
(
{
name = Root;
directActionClass = DirectAction;
directActionName = default;
children = "session.navigationRootChoice";
childrenChoices = {
home = (
"Produtos",
"Fabricantes",
);
};
},
{
name = "Produtos";
action = "session.navController.listProdutosAction";
children = ("CreateProduto","SearchProdutos");
},
{
name = "CreateProduto";
action = "session.navController.createProdutoAction";
},
{
name = "SearchProdutos";
action = "session.navController.searchProdutosAction";
},
{
name = "Fabricantes";
action = "session.navController.listFabricantesAction";
children = ("CreateFabricante","SearchFabricantes");
},
{
name = "CreateFabricante";
action = "session.navController.createFabricanteAction";
},
{
name = "SearchFabricantes";
action = "session.navController.searchFabricantesAction";
}
)
See, it doesn't complain about the missing actions... If I take out the "offending" line (children = "session.navigationRootChoice";) and run it again, the tabs are not drawn, but there's no crash.
It's important to notice that a "virgin" Wonder D2W App returns:
D2W.factory().defaultPage(session())
from DirectAction.loginAction(), not:
((Session) session()).navController().homeAction()
as indicated in the tutorial. No matter which of these I return, i get the same error.
Error page is attached.
Cheers,
Flavio
Title: WebObjects Error
Re-enter
NewTest
|
Exception Description
Application: |
NewTest
|
Error: |
<com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message '<br.com.codeprint.NewTest.Session 0x4f13f501> 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' object '<br.com.codeprint.NewTest.Session sessionID=e3TrUMX21KutIOAbvlvG9g timeOut(sec)=3600.0 terminating=false _wasTimedOut=false contextArray=null contextPageInfos=null languages=("English_US", "English", "Nonlocalized") componentState={NavigationState = "Home"; } currentContextID=0 distributionEnabled=false cookieRendezVousEnabled=false URLRendezVousEnabled=tru localizer=<er.extensions.localization.ERXLocalizer English> messageEncoding=<er.extensions.appserver.ERXMessageEncoding encoding: ISO8859_1> browser=<er.extensions.appserver.ERXBasicBrowser browserName: Safari, version: 6.0.1, mozillaVersion: 5.0, platform: MacOS>>' key 'navigationRootChoice'>
|
Reason: |
<br.com.codeprint.NewTest.Session 0x4f13f501> 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
|
Stack trace: |
File |
Line# |
Method |
Package |
|
NSKeyValueCoding.java |
1377 |
handleQueryWithUnboundKey |
com.webobjects.foundation |
WOSession.java |
1765 |
handleQueryWithUnboundKey |
com.webobjects.appserver |
NSKeyValueCoding.java |
494 |
handleQueryWithUnboundKey |
com.webobjects.foundation |
NSKeyValueCoding.java |
894 |
valueInObject |
com.webobjects.foundation |
NSKeyValueCoding.java |
1324 |
valueForKey |
com.webobjects.foundation |
WOSession.java |
1756 |
valueForKey |
com.webobjects.appserver |
NSKeyValueCoding.java |
447 |
valueForKey |
com.webobjects.foundation |
NSKeyValueCodingAdditions.java |
212 |
valueForKeyPath |
com.webobjects.foundation |
WOSession.java |
1780 |
valueForKeyPath |
com.webobjects.appserver |
NSKeyValueCodingAdditions.java |
149 |
valueForKeyPath |
com.webobjects.foundation |
NSKeyValueCodingAdditions.java |
217 |
valueForKeyPath |
com.webobjects.foundation |
WOComponent.java |
1804 |
valueForKeyPath |
com.webobjects.appserver |
ERXNavigationState.java |
141 |
navigationItemsForLevel |
er.extensions.appserver.navigation |
ERXNavigationMenu.java |
127 |
itemsForLevel |
er.extensions.appserver.navigation |
ERXNavigationMenu.java |
105 |
setUpMenu |
er.extensions.appserver.navigation |
ERXNavigationMenu.java |
141 |
appendToResponse |
er.extensions.appserver.navigation |
WOComponentReference.java |
135 |
appendToResponse |
com.webobjects.appserver._private |
WODynamicGroup.java |
126 |
appendChildrenToResponse |
com.webobjects.appserver._private |
WOConditional.java |
94 |
appendToResponse |
com.webobjects.appserver._private |
WOComponent.java |
1122 |
appendToResponse |
com.webobjects.appserver |
ERXComponent.java |
134 |
appendToResponse |
er.extensions.components |
WOComponentReference.java |
135 |
appendToResponse |
com.webobjects.appserver._private |
WODynamicGroup.java |
126 |
appendChildrenToResponse |
com.webobjects.appserver._private |
WOHTMLDynamicElement.java |
447 |
appendToResponse |
com.webobjects.appserver._private |
WODynamicGroup.java |
126 |
appendChildrenToResponse |
com.webobjects.appserver._private |
WODynamicGroup.java |
136 |
appendToResponse |
com.webobjects.appserver._private |
WOComponent.java |
1122 |
appendToResponse |
com.webobjects.appserver |
ERXComponent.java |
134 |
appendToResponse |
er.extensions.components |
WOComponentReference.java |
135 |
appendToResponse |
com.webobjects.appserver._private |
ERXSwitchComponent.java |
132 |
appendToResponse |
er.extensions.components._private |
WOComponent.java |
1122 |
appendToResponse |
com.webobjects.appserver |
ERD2WPage.java |
774 |
appendToResponse |
er.directtoweb.pages |
WOComponent.java |
1574 |
_appendPageToResponse |
com.webobjects.appserver |
WOComponent.java |
1543 |
_generateResponseInContext |
com.webobjects.appserver |
WOComponent.java |
1538 |
generateResponse |
com.webobjects.appserver |
WOActionRequestHandler.java |
278 |
_handleRequest |
com.webobjects.appserver._private |
WOActionRequestHandler.java |
161 |
handleRequest |
com.webobjects.appserver._private |
ERXDirectActionRequestHandler.java |
126 |
handleRequest |
er.extensions.appserver |
WOApplication.java |
1687 |
dispatchRequest |
com.webobjects.appserver |
ERXApplication.java |
2100 |
dispatchRequestImmediately |
er.extensions.appserver |
ERXApplication.java |
2065 |
dispatchRequest |
er.extensions.appserver |
WOWorkerThread.java |
144 |
runOnce |
com.webobjects.appserver._private |
WOWorkerThread.java |
226 |
run |
com.webobjects.appserver._private |
Thread.java |
680 |
run |
java.lang |
|
NA : Non applicable, JIT activated |
|
|
|
_______________________________________________
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