Re: How do I change the classpath order?
Hi Paul, The order I define in WOLips works fine in development but not in deployment where I get a totally different setup. Manually updating the classpath file every time I redeploy is not an option and is prone to a lot of errors. There must be a way to act on the deployed classpath file?!? rdm On 10/ott/2012, at 00:39, Paul Hoadley pa...@logicsquad.net wrote: Hi Riccardo, On 05/10/2012, at 3:20 AM, Riccardo De Menna wrote: Question… How do I change the order of the entires in the generated classpath files on deployment? I have a class that patches one from Wonder to add some functionality. It works fine locally but when I deploy, the generated classpath file puts ERXExtensions above my framework. I can see that ERXExtension.jar and Ajax.jar are the first ones so I assume that the order is not random but it does not look like it's following my eclipse order. Is there a way to act on it? The .classpath file in your project's root should handle this. You can edit it manually, or use WOLips: [Project] Build Path Configure Build Path... Order and Export -- Paul Hoadley http://logicsquad.net/ ___ 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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br 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: 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 (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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br 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: 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 (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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br Subject: Re: D2W - Problem with navigation To: Theodore Petrosky tedp...@yahoo.com 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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br 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: 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 (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
also, did you view the d2w podcasts? those tutorials are great. --- On Wed, 10/10/12, Flavio Donadio fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br Subject: Re: D2W - Problem with navigation To: Theodore Petrosky tedp...@yahoo.com 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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br 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: 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 (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
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 fla...@donadio.com.br 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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br 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: 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 (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
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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br 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: 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 (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
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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br Subject: Re: D2W - Problem with navigation To: Theodore Petrosky tedp...@yahoo.com 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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br 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: 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 (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, 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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br Subject: Re: D2W - Problem with navigation To: Theodore Petrosky tedp...@yahoo.com 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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br 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: 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 (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
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 fla...@donadio.com.br 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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br 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: 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 (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
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
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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br 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: 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 (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
Le 2012-10-10 à 10:54, Flavio Donadio fla...@donadio.com.br 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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br 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: 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 (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
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 fla...@donadio.com.br 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 fla...@donadio.com.br wrote: From: Flavio Donadio fla...@donadio.com.br 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: 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 (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:
Re: How do I change the classpath order?
I thought, as Paul pointed out, when one goes in Eclipse to [Project] Build Path Configure Build Path... Order and Export and changes the order of the frameworks, it changes the order of the frameworks in the .classpath file for you. And when we do an ant build and looking in the OSClassPath.txt file for the application, the order is the same as in the .classpath file. Is that not working for you? Michael On 10/10/2012 12:30 AM, Riccardo De Menna wrote: Hi Paul, The order I define in WOLips works fine in development but not in deployment where I get a totally different setup. Manually updating the classpath file every time I redeploy is not an option and is prone to a lot of errors. There must be a way to act on the deployed classpath file?!? rdm On 10/ott/2012, at 00:39, Paul Hoadley pa...@logicsquad.net wrote: Hi Riccardo, On 05/10/2012, at 3:20 AM, Riccardo De Menna wrote: Question… How do I change the order of the entires in the generated classpath files on deployment? I have a class that patches one from Wonder to add some functionality. It works fine locally but when I deploy, the generated classpath file puts ERXExtensions above my framework. I can see that ERXExtension.jar and Ajax.jar are the first ones so I assume that the order is not random but it does not look like it's following my eclipse order. Is there a way to act on it? The .classpath file in your project's root should handle this. You can edit it manually, or use WOLips: [Project] Build Path Configure Build Path... Order and Export -- Paul Hoadley http://logicsquad.net/ ___ 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/mhast%40desertsky.com This email sent to mh...@desertsky.com -- Tel: (602) 279-4600 ext: 635 Desert Sky Software: www.desertsky.com Specializing in the Development and Hosting of e-Business Applications. ___ 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,FlavioWebObjects Error.html ___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
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) { returnadminuser; } 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 WebObjects Error.html ___ 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 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) { returnadminuser; } 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
WOLips default binding definitions
Hi, in WOLips source code I found the definition file for the standard bindings of components like WOForm that have shortcut forms. For most of the bindings there is an attribute passthrough as in binding name=href passthrough=NO/ I could neither find information on the web nor WO documentation nor WOLips source code where that attribute is mentioned. I suppose this is some relict from long time ago but just out of curiosity does someone know what it was used for? jw ___ 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: Creating a Git Server
When I switched over to git, I had problems with git on my 10.5 server. According to my notes, installing via macports solved my problems. On Tue, Oct 9, 2012 at 1:30 PM, Roger Perryman ro...@xeotech.com wrote: Can anyone confirm (or deny) that git 1.7.5.4 is the latest version that works on OSX 10.5? I installed the latest version (1.7.12.2) but it complained about some dylibs. The dmg name included snow-leopard so I assumed it required snow-leopard. I then installed the latest leopard version (1.7.5.4) and it works but some of the server solutions I'm looking at require later versions. ___ 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/ted.archibald%40gmail.com This email sent to ted.archib...@gmail.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
Trouble with ERXLocalizer and currencies
Hey all, I'm working with an app that's setup to do two languages (English and Japanese) and am working on some code to localize currencies (just formatting). I've added a key to both the English and Japanese Localizable.strings files and reference those keys in numberformat declarations. This mostly works okay. :) For Japanese, everything is fine...the Yen symbol in the format string is represented properly. The problem I'm having is with the dollar sign symbol…which, when formatted by NSNumberFormatter converts to an international currency symbol. It looks like when ERXLocalizer creates it's NSNumberFormatters it sets the localizesPattern property to true, which then tells the formatter to replace $ with the Locale's country's appropriate currency symbol (plus some other formatting features). The problem is that the Locales that ERXLocalizer creates don't really have enough information to have NSNumberFormatter's localizesPattern logic to work properly. Since it creates Locale's based soley on language, and never a country, the $ replacement logic defaults to the international format. I would argue that ERXLocalizer shouldn't be setting NSNumberFormatter's localizesPatterns property to true, since it's never going to have a country. Or, ERXLocalizer needs to support Locale properties that are more than just the short language. en_US for example, still just equates to a Locale without a country (not equivalent to Locale.US). Any thoughts or ideas on how to work around this? -Lon ___ 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: Generate a pdf with multiple page - [RESOLVED]
Hi, I think my problem is resolved. All works fine. Thanks a lot Envoyé depuis iCloud Le 9 oct. 2012 à 20:56, Theodore Petrosky tedp...@yahoo.com a écrit : I use JasperReports also but I pass in my EO and let the framework do its magic. Ted --- On Tue, 10/9/12, Raymond NANEON rnan...@me.com wrote: From: Raymond NANEON rnan...@me.com Subject: Re: Generate a pdf with multiple page. To: Miguel Torres w...@toracom.net Cc: WebObjects Development webobjects-dev@lists.apple.com Date: Tuesday, October 9, 2012, 1:16 PM Hi Miguel, Thanks your recommendation. I choosed jasperreports and I am finalizing my .jasper and subreports. I made tests and it works fine. I use Xml data source too (a method which transforms data fetched in xml). Ray Envoyé depuis iCloud Le 8 oct. 2012 à 22:44, Miguel Torres w...@toracom.net a écrit : Hi Raymond We use BIRT Reports for PDF creation because it is easy to use and allows us to improve the graphic quality of our reports. http://www.eclipse.org/birt/phoenix/ We use XML files as data source, so we have coded clases that generate those XML structures that feed ours reports. Hope this helps. Miguel Torres On 01/10/2012, at 09:00, Raymond NANEON rnan...@me.com wrote: Hi List, I have a list of projects which contains 2pages (cf list_projet). I want to generate a detail of each project (2pages per project or less) in the same pdf. Can I do it with ERPDFGeneration or another framework? liste_projets example of project pages: page1 page2 Can I have methods examples or advices on how can I do it? Thanks for your help. Envoyé depuis iCloud ___ 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/wo%40toracom.net This email sent to w...@toracom.net ___ 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/rnaneon%40me.com This email sent to rnan...@me.com -Inline Attachment Follows- ___ 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: How do I change the classpath order?
Hi Riccardo, On 10/10/2012, at 6:00 PM, Riccardo De Menna wrote: The order I define in WOLips works fine in development but not in deployment where I get a totally different setup. Manually updating the classpath file every time I redeploy is not an option and is prone to a lot of errors. There must be a way to act on the deployed classpath file?!? How are you building for deployment? Standard Ant build scripts? -- Paul Hoadley http://logicsquad.net/ ___ 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