Problem with pages saved in a variable
Dear List, in an Applications Session, a NSMutableDictionary object is used for caching pages. Everytime the pageWithName method is called, the dictionary is queried in order to determine if the requested page does already exist, if true the existing page is returned, else a new one is generated and stored in the dictionary. This is made in Application.java by overriding the pageWithName method: public WOComponent pageWithName(String aName, WOContext aContext) { Object result = null; if ( aContext.hasSession() ) result = ((NSMutableDictionary)((Session)aContext.session()).cachedPages()).objectForKey(aName); if ( result == null ) { result = super.pageWithName(aName, aContext); if ( aContext.hasSession() ) if ( aName != null ) ((NSMutableDictionary)((Session)aContext.session()).cachedPages()).setObjectForKey(result, aName); } return (WOComponent)result; } This works with one exception. Making changes on Enterprise Objects is not possible in every case. Saving changes works, if always the same object is changed but not if two different objects are changed (changing the first, saving the changes, then changing the second and saving the changes). But if making changes on a object, saving it, and then revert the changes (to the same state as before changing it the first time), making changes on other objects is possible. As mentioned in the WO API Reference, for pages being stored in a variable the ensureAwakeInContext method has to be called, but this has no effect. Same if refreshing the objects in the default editing context (refreshAllObjects, refaultAllObjects) which is used on all pages. Any suggestions or other hints would be appreciated. Regards Andri --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: using the keys to navigate on an AjaxSelectionList
Ok its not working, yet, but I realize that in the examples its working the downarrow but I dunno why in my list its not working when I press the arrow down key, the whole list starts to goes down but not the selection. :( G. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: using the keys to navigate on an AjaxSelectionList
Im looking at the soruce and JS of the component I see it has functions for key_up key_down, how do I make them work,? because when I press the key_up or down, the whole list goes down or up, but I don't get the next item in the list. any help plese? Thanks G. On Mon, Oct 12, 2009 at 11:14 AM, Gustavo Pizano webobjectspic...@gmail.com wrote: Hello. have my AjaxSelectionList, and its working very good, but when its long, its a PITA to clikc there to show details and then click again to select the next one and so on,... I was trying to look into the JS and HTML of the component, but I can't see a place where I make the click to see what function its bein called, or something like that.. Is there anyway to achieve this behavior? Thanks Gustavo ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Why I can't change the html styles without relaunching the app?
Hello, before I was able to modify in eclipse the Css file and then simply reload the browser, now this doesn't seem to work, I have to relaunch the application and then all its ok... why Is this happening to me? Thx. G. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
[OT] - SoftLayer
Hi! Does anyone have experience with dedicated servers at SoftLayer? Good? Bad? Yours Miguel Arroz smime.p7s Description: S/MIME cryptographic signature ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Why I can't change the html styles without relaunching the app?
Hi Gustavo. Just try rebuilding the app instead relaunch it. It works for me. On Oct 13, 2009, at 5:37 AM, Gustavo Pizano wrote: Hello, before I was able to modify in eclipse the Css file and then simply reload the browser, now this doesn't seem to work, I have to relaunch the application and then all its ok... why Is this happening to me? Thx. G. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/miguel%40toracom.net This email sent to mig...@toracom.net ___ Ing. Miguel Angel Torres Avila Director General Tel: +52 (33) 3367 1892 Cel: +52 (33) 3106 8758 E-mail: mig...@toracom.net www.toracom.net P Antes de imprimir, piense en el Medio Ambiente. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Snow Leopard and TimeZones
Hey Guys, Has anyone noticed any time zone issues with Java and Snow Leopard? Ever since migrating to snow leopard, my java default timezone is GMT-00:05, when my system is actually GMT-04:00 (America/Toronto EDT). Anyone else noticing this? I'm running Mac OS X 10.6.1 with WO 5.4.3. java -version java version 1.6.0_15 Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode) Cheers, Michael. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Snow Leopard and TimeZones
Hi! Are you sure it's 00:05 and not 05:00? Yours Miguel Arroz On 2009/10/13, at 18:39, Michael Halliday wrote: Hey Guys, Has anyone noticed any time zone issues with Java and Snow Leopard? Ever since migrating to snow leopard, my java default timezone is GMT-00:05, when my system is actually GMT-04:00 (America/Toronto EDT). Anyone else noticing this? I'm running Mac OS X 10.6.1 with WO 5.4.3. java -version java version 1.6.0_15 Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode) Cheers, Michael. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.com smime.p7s Description: S/MIME cryptographic signature ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
[MEET] Chicago CocoaHeads / CAWUG Tuesday October 13th
Hi All, Sorry for not sending out a reminder email. Our next meeting is tonight. I hope you can make it and it was on your calendar. The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group is holding our next meeting Tuesday, October 13th, at 7:00 PM at the Apple Store on Michigan Ave. Agenda: - Book Report - C4 Recap - Rise in Indie Conferences open discussion about their impact - adjournment to O'Toole's When: Tuesday, October 13th, 7:00 PM Where: Apple Store Michigan Avenue 679 North Michigan Ave. (at the corner of Huron Michigan Ave.) Chicago, IL 60611 http://tinyurl.com/Michigan-Ave-Apple-Store (Google Maps URL) - Bob Tonight I will talk about C4 and the rise of the other indie Mac Developer conferences. I'd like to open the floor to discuss the impact of the influx of new developers mostly driven by interest in iPhone development and what (if any) impact folks think it has or will have on desktop app development ecosystem. - O'Tooles We will continue our discussions at our local watering hold Timothy O'Toole's at 622 Fairbanks (2 blocks east of the store). We also wish to thank the folks who run the theater space at the Apple store for letting us have our meetings there, and Jonathan 'Wolf' Rentzsch for helping out so often. Thanks all. Also, if you are working on a project and would like to talk about it briefly / promote it, I think it would be fun for people to hear about other people's projects. Please email me off line and you can talk at a future meeting or would like a book to review we would welcome that too. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Snow Leopard and TimeZones
Hi, No it's for sure 00:05 ... if I run the following test: public static void main(String[] args) { Calendar now = Calendar.getInstance(); System.out.println(now.getTimeZone()); System.out.println(now.getTime()); } I get: sun.util.calendar.ZoneInfo [id = GMT -00 : 05 ,offset =-30,dstSavings=0,useDaylight=false,transitions=0,lastRule=null] Tue Oct 13 18:50:58 GMT-00:05 2009 It's very strange. I did a clean install of Snow Leopard too. Cheers, Michael. On 2009-10-13, at 2:10 PM, Miguel Arroz wrote: Hi! Are you sure it's 00:05 and not 05:00? Yours Miguel Arroz On 2009/10/13, at 18:39, Michael Halliday wrote: Hey Guys, Has anyone noticed any time zone issues with Java and Snow Leopard? Ever since migrating to snow leopard, my java default timezone is GMT-00:05, when my system is actually GMT-04:00 (America/Toronto EDT). Anyone else noticing this? I'm running Mac OS X 10.6.1 with WO 5.4.3. java -version java version 1.6.0_15 Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode) Cheers, Michael. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Snow Leopard and TimeZones
Open up a command line on that machine and type date: chuck$ date Tue Oct 13 12:06:50 PDT 2009 What does it show? Chuck On Oct 13, 2009, at 11:58 AM, Michael Halliday wrote: Hi, No it's for sure 00:05 ... if I run the following test: public static void main(String[] args) { Calendar now = Calendar.getInstance(); System.out.println(now.getTimeZone()); System.out.println(now.getTime()); } I get: sun .util .calendar .ZoneInfo [id = GMT -00 : 05 ,offset =-30,dstSavings=0,useDaylight=false,transitions=0,lastRule=null] Tue Oct 13 18:50:58 GMT-00:05 2009 It's very strange. I did a clean install of Snow Leopard too. Cheers, Michael. On 2009-10-13, at 2:10 PM, Miguel Arroz wrote: Hi! Are you sure it's 00:05 and not 05:00? Yours Miguel Arroz On 2009/10/13, at 18:39, Michael Halliday wrote: Hey Guys, Has anyone noticed any time zone issues with Java and Snow Leopard? Ever since migrating to snow leopard, my java default timezone is GMT-00:05, when my system is actually GMT-04:00 (America/Toronto EDT). Anyone else noticing this? I'm running Mac OS X 10.6.1 with WO 5.4.3. java -version java version 1.6.0_15 Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode) Cheers, Michael. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.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: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Problem with pages saved in a variable
You are messing up WO's maintenance of page state. I am surprised this does not cause more issues for you. Why are you doing this? It seems like a rather bad idea. Chuck On Oct 13, 2009, at 1:29 AM, Andri vonAllmen wrote: Dear List, in an Applications Session, a NSMutableDictionary object is used for caching pages. Everytime the pageWithName method is called, the dictionary is queried in order to determine if the requested page does already exist, if true the existing page is returned, else a new one is generated and stored in the dictionary. This is made in Application.java by overriding the pageWithName method: public WOComponent pageWithName(String aName, WOContext aContext) { Object result = null; if ( aContext.hasSession() ) result = ((NSMutableDictionary) ((Session)aContext.session()).cachedPages()).objectForKey(aName); if ( result == null ) { result = super.pageWithName(aName, aContext); if ( aContext.hasSession() ) if ( aName != null ) ((NSMutableDictionary) ((Session)aContext.session()).cachedPages()).setObjectForKey(result, aName); } return (WOComponent)result; } This works with one exception. Making changes on Enterprise Objects is not possible in every case. Saving changes works, if always the same object is changed but not if two different objects are changed (changing the first, saving the changes, then changing the second and saving the changes). But if making changes on a object, saving it, and then revert the changes (to the same state as before changing it the first time), making changes on other objects is possible. As mentioned in the WO API Reference, for pages being stored in a variable the ensureAwakeInContext method has to be called, but this has no effect. Same if refreshing the objects in the default editing context (refreshAllObjects, refaultAllObjects) which is used on all pages. Any suggestions or other hints would be appreciated. Regards Andri --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Google Data Client Library (gdata) install with WebObjects
Thanks Chuck, I placed the gdata folder in the Libraries folder for the app and then added it via Configure Build Path in Eclipse. This seemed to make all imports happy and the app worked in development. When it didn't work in deployment I tried moving the gdata folder to a folder within System/Libray/Java/ and changing build path. Again devel happy deployment can't seem to find it. I also added various dependencies to the System/Libray/Java/Extensions folder on both devel and deployment computers. I assume Libraries are added at compile time and need not be moved to the deployment server so if it did not work in deployment the build was a problem. What problem and how to fix it is a mystery. Or maybe I have a bad assumption. Just in case I moved the gdata folder to the server too. I also made sure all extensions were the same on both computers. Sorry for the addressing problem. Anyones wisdom in this area would be greatly appreciated. On Oct 13, 2009, at 12:00 PM, Chuck Hill wrote: Hi Greg, Please keep messages on the list. On Oct 13, 2009, at 9:19 AM, Greg Smith wrote: Thanks Chuck, you are amazing again. That worked great in development but gave the following error in the log when deployed. com.webobjects.foundation.NSForwardException [java.lang.NoClassDefFoundError] com/google/gdata/client/ Query:DirectAction Action Named 'aAction()' raised an Exception: java.lang.NoClassDefFoundError: com/google/gdata/client/Query Do you know if I need change build.xml to reflect the added library? Thanks. What did you do with it when you removed it from /Library/Java/ Extensions? It should go in the Libraries folder in one of your projects (the app or a common framework). Chuck On Sep 16, 2009, at 12:10 PM, Chuck Hill wrote: On Sep 16, 2009, at 11:50 AM, Greg Smith wrote: Greeting, Has anyone installed and used gdata with WebObjects? Gdata looks like the best option for getting google calendar data into WebObjects. I tried to install it but no luck, WO can't find imports. There may be some issues with gdata expecting to be use with Tomcat. All I've tried so far is to place the 'gdata' folder in the java extensions. If anyone has made this work I would love hear about it. Thanks /Library/Java/Extensions? That is pretty much guaranteed to be the wrong location. Put it in the Libraries folder in your app / framework. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Snow Leopard and TimeZones
It shows the following: michael$ date Tue 13 Oct 2009 15:57:50 EDT Cheers, Michael. On 2009-10-13, at 3:07 PM, Chuck Hill wrote: Open up a command line on that machine and type date: chuck$ date Tue Oct 13 12:06:50 PDT 2009 What does it show? Chuck On Oct 13, 2009, at 11:58 AM, Michael Halliday wrote: Hi, No it's for sure 00:05 ... if I run the following test: public static void main(String[] args) { Calendar now = Calendar.getInstance(); System.out.println(now.getTimeZone()); System.out.println(now.getTime()); } I get: sun .util .calendar .ZoneInfo [id = GMT -00 : 05 ,offset =-30,dstSavings=0,useDaylight=false,transitions=0,lastRule=null] Tue Oct 13 18:50:58 GMT-00:05 2009 It's very strange. I did a clean install of Snow Leopard too. Cheers, Michael. On 2009-10-13, at 2:10 PM, Miguel Arroz wrote: Hi! Are you sure it's 00:05 and not 05:00? Yours Miguel Arroz On 2009/10/13, at 18:39, Michael Halliday wrote: Hey Guys, Has anyone noticed any time zone issues with Java and Snow Leopard? Ever since migrating to snow leopard, my java default timezone is GMT-00:05, when my system is actually GMT-04:00 (America/Toronto EDT). Anyone else noticing this? I'm running Mac OS X 10.6.1 with WO 5.4.3. java -version java version 1.6.0_15 Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode) Cheers, Michael. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.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: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Problem with pages saved in a variable
Hi! Chuck is right, your completely screwing WebObjects up. pageWithName returns you a component initialized for a given context (WOContext, not EOEditingContext). If you are using the same pages for different situations and mixing up sessions and stuff, NOTHING will work. Nothing. Even if it APPEARS to work on your computer, it won't on production with many users using the app simultaneously. I can't even think about how many problems will it create, WO is simply not supposed to work like that. Also, WebObjects already caches a lot of stuff internally (if you compare the time it takes to load a page generated by a given component the first and subsequent times, you'll see this clearly), so you don't need to hack in any more caches, you're probably making the performance worse instead of improving it (and killing correctness, of course). Delete all that, and simply use pageWithName normally. Yours Miguel Arroz On 2009/10/13, at 20:24, Chuck Hill wrote: You are messing up WO's maintenance of page state. I am surprised this does not cause more issues for you. Why are you doing this? It seems like a rather bad idea. Chuck On Oct 13, 2009, at 1:29 AM, Andri vonAllmen wrote: Dear List, in an Applications Session, a NSMutableDictionary object is used for caching pages. Everytime the pageWithName method is called, the dictionary is queried in order to determine if the requested page does already exist, if true the existing page is returned, else a new one is generated and stored in the dictionary. This is made in Application.java by overriding the pageWithName method: public WOComponent pageWithName(String aName, WOContext aContext) { Object result = null; if ( aContext.hasSession() ) result = ((NSMutableDictionary) ((Session)aContext.session()).cachedPages()).objectForKey(aName); if ( result == null ) { result = super.pageWithName(aName, aContext); if ( aContext.hasSession() ) if ( aName != null ) ((NSMutableDictionary) ((Session)aContext.session()).cachedPages()).setObjectForKey(result, aName); } return (WOComponent)result; } This works with one exception. Making changes on Enterprise Objects is not possible in every case. Saving changes works, if always the same object is changed but not if two different objects are changed (changing the first, saving the changes, then changing the second and saving the changes). But if making changes on a object, saving it, and then revert the changes (to the same state as before changing it the first time), making changes on other objects is possible. As mentioned in the WO API Reference, for pages being stored in a variable the ensureAwakeInContext method has to be called, but this has no effect. Same if refreshing the objects in the default editing context (refreshAllObjects, refaultAllObjects) which is used on all pages. Any suggestions or other hints would be appreciated. Regards Andri --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.com smime.p7s Description: S/MIME cryptographic signature ___ 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:
[MEETING] WO-Nova October 27, 2009
Greetings All, Because of a K12 party and several other conflicts, we are moving this month's WO-NoVA meeting to October 27 at the usual time and place. 6:30 PM and K12's offices K12 2300 Corporate Park Drive Herndon, VA 20171 http://maps.google.com/maps?f=qsource=s_qhl=engeocode=q=2300+Corporate+Park+Dr,+Herndon,+VA+20171sll=38.951406,-77.395933sspn=0.006642,0.008175ie=UTF8z=17iwloc=A Unless I am mistaken, Travis Britt will be leading a discussion of WO vs. Ruby on Rails as part of what we hope might be an ongoing series of discussion regarding the plusses and minuses of WO vs. any of the various theoretically competing technologies. As usual, K12 will be providing eats, and if so inclined any are welcome to continue the discussion afterwards at Ned's for a beer or two. Hope to see you there! Andrew ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Google Data Client Library (gdata) install with WebObjects
You are my hero! That worked great. They are all jar files, I copied them to the Libraries folder and deleted the gdata folder that was in there. Then in Eclipse I created a new library, added all the jars from that folder and added that library to the build path. Now it works in deployment too! A follow up question about System/Libray/Java/Extensions. I have put many jar files in there to do this or that thing with general success. (Though in this case the gdata instructions seemed to indicate I would need to add mail.jar. Once I did that, email seemed to fail.) By the emphasis below, it seems that may not be the correct practice. What would it be? Same as above? Another location? For all jars, or just some? Many thanks. Greg On Oct 13, 2009, at 12:51 PM, Chuck Hill wrote: Hi Greg, On Oct 13, 2009, at 12:45 PM, Greg Smith wrote: I placed the gdata folder in the Libraries folder I think that is the root problem. WOLips is expecting files in that folder, not more folders. Can you move all the gdata files into the Libraries folder? Are they all jar/zip files? for the app and then added it via Configure Build Path in Eclipse. They should be on the Libraries and the Order and Export tabs. This seemed to make all imports happy and the app worked in development. When it didn't work in deployment I tried moving the gdata folder to a folder within System/Libray/Java/ Again, it is not expecting folders in there. and changing build path. Again devel happy deployment can't seem to find it. I also added various dependencies to the System/Libray/ Java/Extensions folder on both devel and deployment computers. Noo. You go screwing around down there, you get to keep all the pieces when it explodes. I assume Libraries are added at compile time and need not be moved to the deployment server so if it did not work in deployment the build was a problem. What problem and how to fix it is a mystery. Or maybe I have a bad assumption. Just in case I moved the gdata folder to the server too. I also made sure all extensions were the same on both computers. Sorry for the addressing problem. Anyones wisdom in this area would be greatly appreciated. Chuck On Oct 13, 2009, at 12:00 PM, Chuck Hill wrote: Hi Greg, Please keep messages on the list. On Oct 13, 2009, at 9:19 AM, Greg Smith wrote: Thanks Chuck, you are amazing again. That worked great in development but gave the following error in the log when deployed. com.webobjects.foundation.NSForwardException [java.lang.NoClassDefFoundError] com/google/gdata/client/ Query:DirectAction Action Named 'aAction()' raised an Exception: java.lang.NoClassDefFoundError: com/google/gdata/ client/Query Do you know if I need change build.xml to reflect the added library? Thanks. What did you do with it when you removed it from /Library/Java/ Extensions? It should go in the Libraries folder in one of your projects (the app or a common framework). Chuck On Sep 16, 2009, at 12:10 PM, Chuck Hill wrote: On Sep 16, 2009, at 11:50 AM, Greg Smith wrote: Greeting, Has anyone installed and used gdata with WebObjects? Gdata looks like the best option for getting google calendar data into WebObjects. I tried to install it but no luck, WO can't find imports. There may be some issues with gdata expecting to be use with Tomcat. All I've tried so far is to place the 'gdata' folder in the java extensions. If anyone has made this work I would love hear about it. Thanks /Library/Java/Extensions? That is pretty much guaranteed to be the wrong location. Put it in the Libraries folder in your app / framework. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [MEETING] WO-Nova October 27, 2009
Unless I am mistaken, Travis Britt will be leading a discussion of WO vs. Ruby on Rails as part of what we hope might be an ongoing series of discussion regarding the plusses and minuses of WO vs. any of the various theoretically competing technologies. Please, please, record that one! ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Google Data Client Library (gdata) install with WebObjects
On Oct 13, 2009, at 1:56 PM, Greg Smith wrote: You are my hero! If only that came with throngs of screaming women! That worked great. They are all jar files, I copied them to the Libraries folder and deleted the gdata folder that was in there. Then in Eclipse I created a new library, added all the jars from that folder and added that library to the build path. Now it works in deployment too! A follow up question about System/Libray/Java/Extensions. I have put many jar files in there to do this or that thing with general success. (Though in this case the gdata instructions seemed to indicate I would need to add mail.jar. Once I did that, email seemed to fail.) By the emphasis below, it seems that may not be the correct practice. What would it be? Same as above? Another location? For all jars, or just some? I think it is safe to say that you should never, ever, ever put anything in /System/Libray/Java/Extensions. Some things _can_ go in / Libray/Java/Extensions, but I would think really carefully about version dependancy problems before I did that. I confess that I often still put JDBC drivers there. The best place to put jar file dependancies is in Libraries in your app or in a re-usable framework as appropriate. Chuck On Oct 13, 2009, at 12:51 PM, Chuck Hill wrote: Hi Greg, On Oct 13, 2009, at 12:45 PM, Greg Smith wrote: I placed the gdata folder in the Libraries folder I think that is the root problem. WOLips is expecting files in that folder, not more folders. Can you move all the gdata files into the Libraries folder? Are they all jar/zip files? for the app and then added it via Configure Build Path in Eclipse. They should be on the Libraries and the Order and Export tabs. This seemed to make all imports happy and the app worked in development. When it didn't work in deployment I tried moving the gdata folder to a folder within System/Libray/Java/ Again, it is not expecting folders in there. and changing build path. Again devel happy deployment can't seem to find it. I also added various dependencies to the System/ Libray/Java/Extensions folder on both devel and deployment computers. Noo. You go screwing around down there, you get to keep all the pieces when it explodes. I assume Libraries are added at compile time and need not be moved to the deployment server so if it did not work in deployment the build was a problem. What problem and how to fix it is a mystery. Or maybe I have a bad assumption. Just in case I moved the gdata folder to the server too. I also made sure all extensions were the same on both computers. Sorry for the addressing problem. Anyones wisdom in this area would be greatly appreciated. Chuck On Oct 13, 2009, at 12:00 PM, Chuck Hill wrote: Hi Greg, Please keep messages on the list. On Oct 13, 2009, at 9:19 AM, Greg Smith wrote: Thanks Chuck, you are amazing again. That worked great in development but gave the following error in the log when deployed. com.webobjects.foundation.NSForwardException [java.lang.NoClassDefFoundError] com/google/gdata/client/ Query:DirectAction Action Named 'aAction()' raised an Exception: java.lang.NoClassDefFoundError: com/google/gdata/ client/Query Do you know if I need change build.xml to reflect the added library? Thanks. What did you do with it when you removed it from /Library/Java/ Extensions? It should go in the Libraries folder in one of your projects (the app or a common framework). Chuck On Sep 16, 2009, at 12:10 PM, Chuck Hill wrote: On Sep 16, 2009, at 11:50 AM, Greg Smith wrote: Greeting, Has anyone installed and used gdata with WebObjects? Gdata looks like the best option for getting google calendar data into WebObjects. I tried to install it but no luck, WO can't find imports. There may be some issues with gdata expecting to be use with Tomcat. All I've tried so far is to place the 'gdata' folder in the java extensions. If anyone has made this work I would love hear about it. Thanks /Library/Java/Extensions? That is pretty much guaranteed to be the wrong location. Put it in the Libraries folder in your app / framework. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge
Re: [MEETING] WO-Nova October 27, 2009
not only record it but please tell people where to go download it. On Oct 13, 2009, at 2:51 PM, Pascal Robert wrote: Unless I am mistaken, Travis Britt will be leading a discussion of WO vs. Ruby on Rails as part of what we hope might be an ongoing series of discussion regarding the plusses and minuses of WO vs. any of the various theoretically competing technologies. Please, please, record that one! ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/fousto%40me.com This email sent to fou...@me.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Community machine
Hello everyone, I'm about to create a Xen virtual machine that people can use to host their own WO open source projects/tools. I was planning to install: - Apache httpd 2.2 - WO 5.4.3 with Wonder's version of JavaMonitor and wotaskd - FrontBase, MySQL and PostgreSQL - SVN - Hudson But before I finish the setup, I want to know if any of you have a use for it. -- --- Pascal Robert Skype: MacTICanada AIM/iChat : MacTICanada ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Entity naming
If you have a table named sites what do you name your entity and the corresponding class? Sites or Site? -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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Entity naming
On Oct 13, 2009, at 4:43 PM, Lon Varscsak wrote: If you have a table named sites what do you name your entity and the corresponding class? Sites or Site? I never use plurals for this, so all would be site/Site. Slap your DBA. :-) Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Entity naming
Hmm...well in this case it was me slap target=self/. :D But I regretted it after doing it, if that makes up for it. But we have other situations (where I can't be blamed :P) where they are plural, but my templates just work better with the entities being singular...so I was curious what other people did. Thanks! -Lon On Tue, Oct 13, 2009 at 4:48 PM, Chuck Hill ch...@global-village.net wrote: On Oct 13, 2009, at 4:43 PM, Lon Varscsak wrote: If you have a table named sites what do you name your entity and the corresponding class? Sites or Site? I never use plurals for this, so all would be site/Site. Slap your DBA. :-) Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Entity naming
For myself I keep the entity name and the class name the same and have them match the table name as much as possible including singular/ plural state. I find it keeps things easy to remember and reduces mistakes. I also prefix my entity names (and class names) with Db just because I like my names for classes to somewhat match their purpose. So, if I had a table named sites then I would have an entitiy name of DbSites and a class name (including package) of something like com.rhodes.eo.DbSites. That's just my style though. Everyone has their own. ;) On Oct 13, 2009, at 7:43 PM, Lon Varscsak wrote: If you have a table named sites what do you name your entity and the corresponding class? Sites or Site? -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: http://lists.apple.com/mailman/options/webobjects-dev/grhodes%40thissmallworld.com This email sent to grho...@thissmallworld.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Build failed on Snow Leopard
Well, Snow Leopard clean install, then xcode 314, WebObjects 543, eclipse-sdk-4.4.2 and from there WOLips 3.4.5830. Everything else works fine (at the moment) except build. Stavros -- Message: 8 Date: Mon, 12 Oct 2009 22:08:39 -0700 From: Chuck Hill ch...@global-village.net Subject: Re: Build failed To: Stavros Panidis elma...@the.forthnet.gr Cc: webobjects-dev@lists.apple.com Message-ID: 6d6c406c-55a3-4870-9955-19a44068d...@global-village.net Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes On Oct 12, 2009, at 6:32 PM, Stavros Panidis wrote: Hi, trying to build for first time in Snow Leopard I get the following message BUILD FAILED /Users/elmanou/Documents/workspace/Medos/build.xml:28: Could not find /Users/elmanou/Library/wobuild.properties. are there any instructions on how to overcome this? Many thanks in advance wobuild.properties is obsolete. Which version of Eclipse are you using? Which version of WOLips? How did you create the build environment on Snow Leopard? Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Hudson and setupWorkspace.sh
I am trying to get a Hudson build server setup and I am having a few issues. Hopefully someone can/will help. As background I am running hudson on Mac OS X server and I am using subversion. 1) The setupWorkspace.sh script seems to be looking for the .classpath file in the wrong place. I setup the subversion URL as https://svnserver/path/MyProject. So when Hudson check out from subversion the .classpath is placed in $WORKSPACE/MyProject/.classpath, but setupWorkspace.sh is looking for $WORKSPACE/.classpath. What am I doing wrong? 2) The setupWorkspace.sh prints the following error even though I can go in by hand after the build and that directory does exit: rm: / Developer/Hudson/Home/jobs/MyProject/workspace/Root/System: No such file or directory 3) How will my apps and frameworks find the frameworks they depend on? Is this automatically done by the setupWorkspace.sh script as long as those frameworks have already been made? Do I have to do a build and install so that they are placed in /Library/Frameworks? 4) I can not get Hudson to Archive the Artifacts for framework builds when set to $WORKSPACE/MyProject/dist/*.framework. The configuration screen tells me that $WORKSPACE/MyProject/dist does exist but the build throws an error saying it can not find /Developer/ Hudson/Home/jobs/MyProject/workspace/MyProject/dist/*.framework. 5) Similar to #3. I have some frameworks that depend on jar projects. Do I need to somehow copy these to a location to be picked up or will the setupWorkspace fix it so that the jars will be found? Thanks, Frank ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Antw: Re: Problem with pages saved in a variable
The code has been removed. I read about caching pages using the same approach (more or less) on this list (http://lists.apple.com/archives/webobjects-dev/2003/Nov/msg00608.html). I understand that WO is not supposed to work like that. But methods like the WOComponents ensureAwakeInContext or restorePageForContextID in WOSession made me feel like this could or should work somehow. Now the WO caching mechanism will be used (again). Thanks for your guidance Chuck and Miguel. Andri Miguel Arroz ar...@guiamac.com schrieb am Dienstag, 13. Oktober 2009 um 22:13 in Nachricht ca376a61-bb2b-4fdf-adc1-b9165e43f...@guiamac.com: Hi! Chuck is right, your completely screwing WebObjects up. pageWithName returns you a component initialized for a given context (WOContext, not EOEditingContext). If you are using the same pages for different situations and mixing up sessions and stuff, NOTHING will work. Nothing. Even if it APPEARS to work on your computer, it won't on production with many users using the app simultaneously. I can't even think about how many problems will it create, WO is simply not supposed to work like that. Also, WebObjects already caches a lot of stuff internally (if you compare the time it takes to load a page generated by a given component the first and subsequent times, you'll see this clearly), so you don't need to hack in any more caches, you're probably making the performance worse instead of improving it (and killing correctness, of course). Delete all that, and simply use pageWithName normally. Yours Miguel Arroz On 2009/10/13, at 20:24, Chuck Hill wrote: You are messing up WO's maintenance of page state. I am surprised this does not cause more issues for you. Why are you doing this? It seems like a rather bad idea. Chuck On Oct 13, 2009, at 1:29 AM, Andri vonAllmen wrote: Dear List, in an Applications Session, a NSMutableDictionary object is used for caching pages. Everytime the pageWithName method is called, the dictionary is queried in order to determine if the requested page does already exist, if true the existing page is returned, else a new one is generated and stored in the dictionary. This is made in Application.java by overriding the pageWithName method: public WOComponent pageWithName(String aName, WOContext aContext) { Object result = null; if ( aContext.hasSession() ) result = ((NSMutableDictionary) ((Session)aContext.session()).cachedPages()).objectForKey(aName); if ( result == null ) { result = super.pageWithName(aName, aContext); if ( aContext.hasSession() ) if ( aName != null ) ((NSMutableDictionary) ((Session)aContext.session()).cachedPages()).setObjectForKey(result, aName); } return (WOComponent)result; } This works with one exception. Making changes on Enterprise Objects is not possible in every case. Saving changes works, if always the same object is changed but not if two different objects are changed (changing the first, saving the changes, then changing the second and saving the changes). But if making changes on a object, saving it, and then revert the changes (to the same state as before changing it the first time), making changes on other objects is possible. As mentioned in the WO API Reference, for pages being stored in a variable the ensureAwakeInContext method has to be called, but this has no effect. Same if refreshing the objects in the default editing context (refreshAllObjects, refaultAllObjects) which is used on all pages. Any suggestions or other hints would be appreciated. Regards Andri --- Disclaimer: - This email and contents is for use only by the intended recipient. If you are not the individual or entity to whom it is addressed, you are hereby formally notified that any use, copying or distribution of this email and attachments, in whole or in part, is strictly prohibited. If you have received this email in error, please notify the sender and delete the message and attachment(s) from your system. Any views, opinions or information, expressed or contained in this email, are those of the sender and not necessarily reflect those of CEDES. To help protect our environment, please avoid printing out this information unnecessarily. ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.ne t This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.