Re: D2W - Problem with navigation
On 10/10/2012, at 13:59, programming...@mac.com wrote: > The problem is that you are setting up conditionally displaying different > sets of tabs, but then not providing the method in the session class to do > so. Since you are only using one set of tabs, you really don't need that line. > > If you want to see how "session.navigationRootChoice" is used, there is an > example in SimpleBlog that sets up simple Role based conditions for > displaying sets of tabs. > > You'll see the method returns "adminuser" if the administrator logs in and > "home" otherwise. You have already provided the "home" choices in your > existing plist, so you would now have to add the "adminuser" choices. Now I understand why there is that "home = (...)" inside childrenChoices. And I will use this feature in the near future, so I won't change the plist like you advised... The tutorial doesn't say *I* have to implement Session.navigationRootChoice(). Aside from that, my inexperience is also a serious issue: I still can't trust myself to know when something is "WOMagic" or something I have to do myself. The tutorial, as it is, may be confusing to beginners like me. Pascal, I suggest you include that or simplify the plist. > From your example it would be along the lines of: > > childrenChoices = { > home = ( > "Produtos", > "Fabricantes", > ); > adminuser = ( > "Produtos", > "Fabricantes", > "AdminFunctions", > ); > }; > > The method on session looks like this: > > public String navigationRootChoice() { > Person user = (Person) user(); > if(user != null ) { > if(user.isAdmin()==true) { > return"adminuser"; > } > return "home"; > } > return "none"; > } I made a simple "hack". I implemented the method like this: public String navigationRootChoice() { return "home"; } And it worked, indeed! I think it's "case closed" for now. Thanks go to David Holt, David LeBer, Pascal and Theodore for the huge help again! Cheers, Flavio ___ 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
Re: D2W - Problem with navigation
On 2012-10-10, at 7:48 AM, Flavio Donadio wrote: > 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"; Comment out this "children" line > childrenChoices = { > home = ( > "Produtos", > "Fabricantes", > ); > }; Change childrenChoices to: children = ( "Produtos", "Fabricantes" ); The problem is that you are setting up conditionally displaying different sets of tabs, but then not providing the method in the session class to do so. Since you are only using one set of tabs, you really don't need that line. If you want to see how "session.navigationRootChoice" is used, there is an example in SimpleBlog that sets up simple Role based conditions for displaying sets of tabs. You'll see the method returns "adminuser" if the administrator logs in and "home" otherwise. You have already provided the "home" choices in your existing plist, so you would now have to add the "adminuser" choices. >From your example it would be along the lines of: childrenChoices = { home = ( "Produtos", "Fabricantes", ); adminuser = ( "Produtos", "Fabricantes", "AdminFunctions", ); }; The method on session looks like this: public String navigationRootChoice() { Person user = (Person) user(); if(user != null ) { if(user.isAdmin()==true) { return"adminuser"; } return "home"; } return "none"; } > }, > { > 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 > > ___ > 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/programmingosx%40mac.com > > This email sent to programming...@mac.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/programmingosx%40mac.com This email sent to programming...@mac.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
Re: D2W - Problem with navigation
On 2012-10-10, at 7:48 AM, Flavio Donadio wrote: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";Comment out this "children" linechildrenChoices = {home = ("Produtos","Fabricantes",);};Change childrenChoices to:children = ( "Produtos", "Fabricantes" );The problem is that you are setting up conditionally displaying different sets of tabs, but then not providing the method in the session class to do so. Since you are only using one set of tabs, you really don't need that line.If you want to see how "session.navigationRootChoice" is used, there is an example in SimpleBlog that sets up simple Role based conditions for displaying sets of tabs. You'll see the method returns "adminuser" if the administrator logs in and "home" otherwise. You have already provided the "home" choices in your existing plist, so you would now have to add the "adminuser" choices.From your example it would be along the lines of: childrenChoices = {home = ("Produtos","Fabricantes",);adminuser = ("Produtos","Fabricantes","AdminFunctions",);};The method on session looks like this: public String navigationRootChoice() { Person user = (Person) user(); if(user != null ) { if(user.isAdmin()==true) { return"adminuser"; } return "home"; } return "none"; }},{name = "Produtos";action = "";children = ("CreateProduto","SearchProdutos");},{name = "CreateProduto";action = "";},{name = "SearchProdutos";action = "";},{name = "Fabricantes";action = "";children = ("CreateFabricante","SearchFabricantes");},{name = "CreateFabricante";action = "";},{name = "SearchFabricantes";action = "";})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 ___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/programmingosx%40mac.comThis email sent to programming...@mac.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
Re: D2W - Problem with navigation
Pascal, Maybe that's the problem. I'm gonna try it... Cheers, Flavio On 10/10/2012, at 11:57, Pascal Robert wrote: > > Le 2012-10-10 à 10:54, Flavio Donadio a écrit : > >> 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 use the settings that Golipse (with Workspace Mechanics) enable. > Automatically run EOGenerator is such a preference that is enabled by default > with Golipse, and my tutorials assume that people installed WOLips and > Eclipse with Golipse. > >> 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 wrote: > >> From: Flavio Donadio >> Subject: D2W - Problem with navigation >> To: Webobjects-dev@lists.apple.com >> 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: >> >> 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 >> ___
Re: D2W - Problem with navigation
Le 2012-10-10 à 10:54, Flavio Donadio a écrit : > 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 use the settings that Golipse (with Workspace Mechanics) enable. Automatically run EOGenerator is such a preference that is enabled by default with Golipse, and my tutorials assume that people installed WOLips and Eclipse with Golipse. > 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 wrote: > From: Flavio Donadio > Subject: D2W - Problem with navigation > To: Webobjects-dev@lists.apple.com > 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: > > 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 (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mai
Re: D2W - Problem with navigation
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 wrote: >>> From: Flavio Donadio Subject: D2W - Problem with navigation To: Webobjects-dev@lists.apple.com 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: 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com This email sent to tedp...@yahoo.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/probert%40macti.ca >> >> T
Re: D2W - Problem with navigation
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: 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 ' messageEncoding= browser=>' key 'navigationRootChoice'> Reason: 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
Re: D2W - Problem with navigation
David, The exception says there's no method or member with that name... Strange... I'll try Theodore's tip and create a new project. Cheers, Flavio On 10/10/2012, at 10:24, David LeBer wrote: > There definitely looks like there is something missing in that tutorial. > > The session needs to return a value for "navigationRootChoice" - missing > method maybe? > > D > > On 2012-10-10, at 8:39 AM, Flavio Donadio wrote: > >> 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 wrote: >>> From: Flavio Donadio Subject: D2W - Problem with navigation To: Webobjects-dev@lists.apple.com 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: 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com This email sent to tedp...@yahoo.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/dleber_wodev%40codeferous.com >> >> This email sent to dleber_wo...@codeferous.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 Subscriptio
Re: D2W - Problem with navigation
Theodore, This did the trick for EOModel class generation! Thanks! Cheers, Flavio On 10/10/2012, at 10:59, Theodore Petrosky wrote: > BTW, > > Eclipse => Preferences => WOLips => Build > > should have a check in Automatically run EOGenerator if you want automatic > generation of your model. > > Ted > > > > --- On Wed, 10/10/12, Flavio Donadio wrote: > >> From: Flavio Donadio >> Subject: Re: D2W - Problem with navigation >> To: "Theodore Petrosky" >> Cc: Webobjects-dev@lists.apple.com >> Date: Wednesday, October 10, 2012, 8:39 AM >> 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 >> wrote: >>> >>>> From: Flavio Donadio >>>> Subject: D2W - Problem with navigation >>>> To: Webobjects-dev@lists.apple.com >>>> 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: >>>> > 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:: (
Re: D2W - Problem with navigation
BTW, Eclipse => Preferences => WOLips => Build should have a check in Automatically run EOGenerator if you want automatic generation of your model. Ted --- On Wed, 10/10/12, Flavio Donadio wrote: > From: Flavio Donadio > Subject: Re: D2W - Problem with navigation > To: "Theodore Petrosky" > Cc: Webobjects-dev@lists.apple.com > Date: Wednesday, October 10, 2012, 8:39 AM > 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 > wrote: > > > >> From: Flavio Donadio > >> Subject: D2W - Problem with navigation > >> To: Webobjects-dev@lists.apple.com > >> 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: > >> 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 (Webobjects-dev@lists.apple.com) > >> Help/Unsubscribe/Update your Subscription: > >> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com > >> > >> This email sent to tedp...@yahoo.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
Re: D2W - Problem with navigation
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 wrote: >> >>> From: Flavio Donadio >>> Subject: D2W - Problem with navigation >>> To: Webobjects-dev@lists.apple.com >>> 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: >>> >>> 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 (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com >>> >>> This email sent to tedp...@yahoo.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/probert%40macti.ca > > This email sent to prob...@macti.ca ___ 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
Re: D2W - Problem with navigation
There definitely looks like there is something missing in that tutorial. The session needs to return a value for "navigationRootChoice" - missing method maybe? D On 2012-10-10, at 8:39 AM, Flavio Donadio wrote: > 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 wrote: >> >>> From: Flavio Donadio >>> Subject: D2W - Problem with navigation >>> To: Webobjects-dev@lists.apple.com >>> 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: >>> >>> 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 (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com >>> >>> This email sent to tedp...@yahoo.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/dleber_wodev%40codeferous.com > > This email sent to dleber_wo...@codeferous.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
Re: D2W - Problem with navigation
also, did you view the d2w podcasts? those tutorials are great. --- On Wed, 10/10/12, Flavio Donadio wrote: > From: Flavio Donadio > Subject: Re: D2W - Problem with navigation > To: "Theodore Petrosky" > Cc: Webobjects-dev@lists.apple.com > Date: Wednesday, October 10, 2012, 8:39 AM > 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 > wrote: > > > >> From: Flavio Donadio > >> Subject: D2W - Problem with navigation > >> To: Webobjects-dev@lists.apple.com > >> 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: > >> 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 (Webobjects-dev@lists.apple.com) > >> Help/Unsubscribe/Update your Subscription: > >> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com > >> > >> This email sent to tedp...@yahoo.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
Re: D2W - Problem with navigation
so it was not a 'virgin' new D2W app. i would try that. select new D2W wonder app. then run. do nothing else. do not add any other frameworks, nor models. it should work. --- On Wed, 10/10/12, Flavio Donadio wrote: > From: Flavio Donadio > Subject: Re: D2W - Problem with navigation > To: "Theodore Petrosky" > Cc: Webobjects-dev@lists.apple.com > Date: Wednesday, October 10, 2012, 8:39 AM > 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 > wrote: > > > >> From: Flavio Donadio > >> Subject: D2W - Problem with navigation > >> To: Webobjects-dev@lists.apple.com > >> 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: > >> 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 (Webobjects-dev@lists.apple.com) > >> Help/Unsubscribe/Update your Subscription: > >> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com > >> > >> This email sent to tedp...@yahoo.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
Re: D2W - Problem with navigation
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 wrote: > >> From: Flavio Donadio >> Subject: D2W - Problem with navigation >> To: Webobjects-dev@lists.apple.com >> 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: >> >> 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 (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com >> >> This email sent to tedp...@yahoo.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
Re: D2W - Problem with navigation
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 wrote: > From: Flavio Donadio > Subject: D2W - Problem with navigation > To: Webobjects-dev@lists.apple.com > 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: > > 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 (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com > > This email sent to tedp...@yahoo.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
Re: D2W - Problem with navigation
It would need to be in your Session class. David On 2012-10-09, at 6:31 PM, Flavio Donadio wrote: > 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: >> 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 (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com > > This email sent to programming...@mac.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
Re: D2W - Problem with navigation
Just to add some info... I can say for sure that the culprit is the line: children = "session.navigationRootChoice"; I am looking at the ERXSession class reference and can't find any member or method called navigationRootChoice. Is the tutorial wrong or am I missing something? My installation is less than a week old and the tutorial was last updated in August... Cheers, Flavio On 09/10/2012, at 22:31, Flavio Donadio wrote: > 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: >> 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 (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/flavio%40donadio.com.br > > This email sent to fla...@donadio.com.br ___ 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