Re: WOImageButton id
This is a bug. Can you file a bug report please. Thank you Pierre -- Pierre Frisch [EMAIL PROTECTED] On Jan 21, 2008, at 21:00, Ian Joyner wrote: What I am trying to do is have a button show a pressed form when clicked, and an unpressed form when a user moves the mouse out. I'm trying to do this by swapping the image 'src' attribute in JavaScript. However, to get the input field which is generated by the WOImageButton, I'm using document.getElementById. However, when I assign an id in the WO binding wod file, it never turns up in the html. Testing it on a WOImage works just fine as http://en.wikibooks.org/wiki/Programming:WebObjects/Alternative_Technologies/Ruby_on_Rails#Myth :_You_can.27t_assign_the_name_or_id_value_of_tags_in_WebObjects. says it will do. Binding looks like: Search_button: WOImageButton { id = "btnSearchTab1"; action = session.show_search_panel; filename = "btn_search.gif"; framework = "app"; onMouseDown = "swap_image ('btnSearchTab1', 'img_search_hi');"; onMouseOut = "swap_image ('btnSearchTab1', 'img_search');"; name = "btnSearchTab1"; title = "Search mode"; vspace = 3; } Is there anyway to get id working? Does anyone use an alternative method for this? Thanks Ian ___ 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/pierre%40apple.com This email sent to [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
Re: WOLips: Too many actions for Framework Install
On 22/01/2008, at 12:56 PM, Mr. Pierre Frisch wrote: I don't understand why do you want to install in eclipse? I never have eclipse installed on my deployment machine, not even on my staging machine which I try to keep as close as possible to my deployment. I usually either create an installer of a at the minimum an install script that will put all the pieces where I need them on the target remote machine. Yeah, or if anything (at least for frameworks that you need to install on your dev machine in order to embed into another app's build) the "Install[...]" command could be enhanced by allowing you to select which domain to install to (i.e., User, Local, System...) On Jan 21, 2008, at 15:33, Guido Neitzer wrote: On 21.01.2008, at 15:37, Gaastra Dennis - WO Lists wrote: This would really help since we have tons of frameworks. Select the application that uses all these frameworks (with dependencies set correctly), click "Install ..." select all frameworks you want to have installed (they should be pre-selected with a correct setup) and do an install. It will install all frameworks AND you application in one go. cug -- Real-World WebObjects class at the Big Nerd Ranch March 2008, Frankfurt, Germany http://www.bignerdranch.com/classes/webobjects.shtml ___ 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/pierre% 40apple.com This email sent to [EMAIL PROTECTED] ___ 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/lachlan.deck% 40gmail.com This email sent to [EMAIL PROTECTED] with regards, -- Lachlan Deck ___ 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 [EMAIL PROTECTED]
WOImageButton id
What I am trying to do is have a button show a pressed form when clicked, and an unpressed form when a user moves the mouse out. I'm trying to do this by swapping the image 'src' attribute in JavaScript. However, to get the input field which is generated by the WOImageButton, I'm using document.getElementById. However, when I assign an id in the WO binding wod file, it never turns up in the html. Testing it on a WOImage works just fine as http://en.wikibooks.org/wiki/Programming:WebObjects/Alternative_Technologies/Ruby_on_Rails#Myth :_You_can.27t_assign_the_name_or_id_value_of_tags_in_WebObjects. says it will do. Binding looks like: Search_button: WOImageButton { id = "btnSearchTab1"; action = session.show_search_panel; filename = "btn_search.gif"; framework = "app"; onMouseDown = "swap_image ('btnSearchTab1', 'img_search_hi');"; onMouseOut = "swap_image ('btnSearchTab1', 'img_search');"; name = "btnSearchTab1"; title = "Search mode"; vspace = 3; } Is there anyway to get id working? Does anyone use an alternative method for this? Thanks Ian ___ 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 [EMAIL PROTECTED]
Re: Popping-up a window and updating original page: how?
I'm actually interested in all three as well. 1. The example I mentioned. 2. Ask the user, "would you like to do X?", and if they say yes, I send them to some new component. If they say no, I send them to still some other component. 3. Assistants or feedback pertaining to input as in (1). (2) and (3) were always the things that were a thorn in my side with YUIPanel as well, particularly (3). I think I'll spend some time playing with the JavaScript and see what I can get. If I come up with something useful, it will certainly make its way back to PW. Clark On 21 Jan 08, at 9:22 PM, Chuck Hill wrote: On Jan 21, 2008, at 7:57 PM, Clark Mueller wrote: That is a feeling I know well... :-( The ability to (easily) do something like ModalBox's behavior in WO is something I have felt is really lacking, so I'm a bit interested in playing around with this. I had some luck with YUIPanel, back about a year ago, but it was very buggy and I ultimately gave up with it because of this. As I recall, the reason was mostly that the YUI library was not at all interested in mixing with Scriptaculous. YUIPanel had a tendency to completely flip out when multiple submit buttons were involved. Fun! What I would like is something that enables me to use a modal dialog for more insignificant data entry forms and alerts. It is often the case that I want to edit a related entity that doesn't really have enough data to deserve a whole edit page itself. If I were doing this in an application, I would use a sheet or a panel for that, and I'd like to do the same within WO. So essentially I want something that can be modal, handle a variety of content, not choke on one or more submit buttons, work nicely with Scriptaculous, and look good (in a nutshell, be everything that ModalBox is). Like I said, I abandoned this previously and I have been using the aforementioned edit pages, but I think I'd like to start wiping that out and take a crack at developing a reusable component based on ModalBox. Doing what you want should not be too hard, relatively speaking. Mike has done a very nice job on the Ajax framework, once you wrap your head around it. So... how far along did you get? Had you given much thought to the actual design, or was this something that was just floating around in your head? Do you have any code that you'd be willing to share? Yes, but... I deleted it. I was cleaning up my disk and thought "Well, I don't need that copy of Wonder.". Of course I was using rm in Terminal not working in Finder. No big loss though, I did not have much more than a proof of concept. What I really wanted to be able to have is a modal box that could: 1. Open, accept input, and close to the same page 2. Open, accept input, and close to a different page (e.g. reload the main page with a different URL) 3. Open, accept input, and transition to a different modal dialog (think multi-step wizard) It sounds like you just want (1). IIRC, that was not so hard but I am not sure how far along I got. Chuck On 21 Jan 08, at 8:26 PM, Chuck Hill wrote: It is still on the list and I am still side tracked. :-( Some days it feels like I am running up a hill of loose sand. Chuck On Jan 21, 2008, at 7:13 PM, Clark Mueller wrote: Chuck, I am curious, have you explored this project any further? Cheers, Clark On 22 May 07, at 12:13 PM, Chuck Hill wrote: I am (was) working on an AJAX modal dialog / wizard / not quite sure where it will go solution for this (to be part of the Ajax framework in Wonder). I got side tracked onto some other tasks, I won't get back to this for a while. See http://okonet.ru/projects/modalbox/ Chuck On May 22, 2007, at 7:45 AM, Jean Pierre Malrieu wrote: Hi, I need to open a popup window (for example a file upload form), and when the user submits the form, close the popup window and update the original page. This is pretty standard practice, I am sure, but I don't know how to do it. Thanks for your solutions. JPM ___ 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 [EMAIL PROTECTED] -- 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/cpmueller%40mac.com This email sent to [EMAIL PROTECTED] -- Practical W
Re: Popping-up a window and updating original page: how?
When I was thinking about this, I was considering making it so that AjaxModelBox would be a component content which would only render its contents if a certain query parameter was passed in (probably its ID). Using this technique, you could make it so it would never render into the main page, but you could use the Ajax component url of the component in the modal box's URL with ?renderID=wo_0_5_2_whatever. When the modal box makes the request, it returns its contents, which would then render into the modal box. The nice part about this is that it mostly abstracts the fact that there is a second request coming from the standpoint of the user, which means you could very easily make alternative UI's without changing your page structure. On Jan 21, 2008, at 11:22 PM, Chuck Hill wrote: On Jan 21, 2008, at 7:57 PM, Clark Mueller wrote: That is a feeling I know well... :-( The ability to (easily) do something like ModalBox's behavior in WO is something I have felt is really lacking, so I'm a bit interested in playing around with this. I had some luck with YUIPanel, back about a year ago, but it was very buggy and I ultimately gave up with it because of this. As I recall, the reason was mostly that the YUI library was not at all interested in mixing with Scriptaculous. YUIPanel had a tendency to completely flip out when multiple submit buttons were involved. Fun! What I would like is something that enables me to use a modal dialog for more insignificant data entry forms and alerts. It is often the case that I want to edit a related entity that doesn't really have enough data to deserve a whole edit page itself. If I were doing this in an application, I would use a sheet or a panel for that, and I'd like to do the same within WO. So essentially I want something that can be modal, handle a variety of content, not choke on one or more submit buttons, work nicely with Scriptaculous, and look good (in a nutshell, be everything that ModalBox is). Like I said, I abandoned this previously and I have been using the aforementioned edit pages, but I think I'd like to start wiping that out and take a crack at developing a reusable component based on ModalBox. Doing what you want should not be too hard, relatively speaking. Mike has done a very nice job on the Ajax framework, once you wrap your head around it. So... how far along did you get? Had you given much thought to the actual design, or was this something that was just floating around in your head? Do you have any code that you'd be willing to share? Yes, but... I deleted it. I was cleaning up my disk and thought "Well, I don't need that copy of Wonder.". Of course I was using rm in Terminal not working in Finder. No big loss though, I did not have much more than a proof of concept. What I really wanted to be able to have is a modal box that could: 1. Open, accept input, and close to the same page 2. Open, accept input, and close to a different page (e.g. reload the main page with a different URL) 3. Open, accept input, and transition to a different modal dialog (think multi-step wizard) It sounds like you just want (1). IIRC, that was not so hard but I am not sure how far along I got. Chuck On 21 Jan 08, at 8:26 PM, Chuck Hill wrote: It is still on the list and I am still side tracked. :-( Some days it feels like I am running up a hill of loose sand. Chuck On Jan 21, 2008, at 7:13 PM, Clark Mueller wrote: Chuck, I am curious, have you explored this project any further? Cheers, Clark On 22 May 07, at 12:13 PM, Chuck Hill wrote: I am (was) working on an AJAX modal dialog / wizard / not quite sure where it will go solution for this (to be part of the Ajax framework in Wonder). I got side tracked onto some other tasks, I won't get back to this for a while. See http://okonet.ru/projects/modalbox/ Chuck On May 22, 2007, at 7:45 AM, Jean Pierre Malrieu wrote: Hi, I need to open a popup window (for example a file upload form), and when the user submits the form, close the popup window and update the original page. This is pretty standard practice, I am sure, but I don't know how to do it. Thanks for your solutions. JPM ___ 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 [EMAIL PROTECTED] -- 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@
NPE in WOHTTPConnection readResponse()
I'm trying to get WOPayPal working in WO 5.4, and I've narrowed down to a problem in readResponse(). Below is some sample code I am using to fetch a page from my own web server, and it fails on that as well. I anybody using WOHTTPConnection.readResponse() ? What am I doing wrong? I'm running on 10.5.1 client (same happens on server) with WO 5.4 and a 5.4-specific version of WOnder from late December. It does the same with last night's build of the 5.4 WOnder. Regards Thomas // both connectHost and connectPath are set to valid values. WOHTTPConnection ppEchoConnection = new WOHTTPConnection(connectHost, 80); NSMutableDictionary headers = new NSMutableDictionary(); headers.setObjectForKey("en", "Accept-Language"); headers.setObjectForKey("iso-8859-1,*,utf-8", "Accept-Charset"); headers.setObjectForKey("image/gif, image/x-xbitmap, image/jpeg, image/ pjpeg, image/png, */*", "Accept"); headers.setObjectForKey("WebObjects/5.4 [en] (i386; Mac OS X 10.5.1)","User-Agent"); WORequest request = new WORequest("GET", connectPath, "HTTP/1.1", headers, null, null); request.setContent(connectPath); ppEchoConnection.setReceiveTimeout(90 * 1000); boolean success = ppEchoConnection.sendRequest(request); // everything is working fine to this point. The web server log shows the correct URL is requested and content returned. if (success) { stringA = ppEchoConnection.readResponse().contentString(); // NPE below happens here } java.lang.NullPointerException at com.webobjects.foundation.NSArray.toArray(NSArray.java:965) at java.util.ArrayList.(ArrayList.java:136) at com.webobjects.appserver.WOMessage.appendHeaders(WOMessage.java:645) at com .webobjects .appserver.WOHTTPConnection.setResponseHeaders(WOHTTPConnection.java: 124) at com .webobjects .appserver.WOHTTPConnection.readResponse(WOHTTPConnection.java:581) at biz.webjini.Test.fetchURL(Test.java:106) ___ 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 [EMAIL PROTECTED]
Re: Popping-up a window and updating original page: how?
On Jan 21, 2008, at 7:57 PM, Clark Mueller wrote: That is a feeling I know well... :-( The ability to (easily) do something like ModalBox's behavior in WO is something I have felt is really lacking, so I'm a bit interested in playing around with this. I had some luck with YUIPanel, back about a year ago, but it was very buggy and I ultimately gave up with it because of this. As I recall, the reason was mostly that the YUI library was not at all interested in mixing with Scriptaculous. YUIPanel had a tendency to completely flip out when multiple submit buttons were involved. Fun! What I would like is something that enables me to use a modal dialog for more insignificant data entry forms and alerts. It is often the case that I want to edit a related entity that doesn't really have enough data to deserve a whole edit page itself. If I were doing this in an application, I would use a sheet or a panel for that, and I'd like to do the same within WO. So essentially I want something that can be modal, handle a variety of content, not choke on one or more submit buttons, work nicely with Scriptaculous, and look good (in a nutshell, be everything that ModalBox is). Like I said, I abandoned this previously and I have been using the aforementioned edit pages, but I think I'd like to start wiping that out and take a crack at developing a reusable component based on ModalBox. Doing what you want should not be too hard, relatively speaking. Mike has done a very nice job on the Ajax framework, once you wrap your head around it. So... how far along did you get? Had you given much thought to the actual design, or was this something that was just floating around in your head? Do you have any code that you'd be willing to share? Yes, but... I deleted it. I was cleaning up my disk and thought "Well, I don't need that copy of Wonder.". Of course I was using rm in Terminal not working in Finder. No big loss though, I did not have much more than a proof of concept. What I really wanted to be able to have is a modal box that could: 1. Open, accept input, and close to the same page 2. Open, accept input, and close to a different page (e.g. reload the main page with a different URL) 3. Open, accept input, and transition to a different modal dialog (think multi-step wizard) It sounds like you just want (1). IIRC, that was not so hard but I am not sure how far along I got. Chuck On 21 Jan 08, at 8:26 PM, Chuck Hill wrote: It is still on the list and I am still side tracked. :-( Some days it feels like I am running up a hill of loose sand. Chuck On Jan 21, 2008, at 7:13 PM, Clark Mueller wrote: Chuck, I am curious, have you explored this project any further? Cheers, Clark On 22 May 07, at 12:13 PM, Chuck Hill wrote: I am (was) working on an AJAX modal dialog / wizard / not quite sure where it will go solution for this (to be part of the Ajax framework in Wonder). I got side tracked onto some other tasks, I won't get back to this for a while. See http:// okonet.ru/projects/modalbox/ Chuck On May 22, 2007, at 7:45 AM, Jean Pierre Malrieu wrote: Hi, I need to open a popup window (for example a file upload form), and when the user submits the form, close the popup window and update the original page. This is pretty standard practice, I am sure, but I don't know how to do it. Thanks for your solutions. JPM ___ 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 [EMAIL PROTECTED] -- 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/cpmueller% 40mac.com This email sent to [EMAIL PROTECTED] -- 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 -- 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/
Re: Popping-up a window and updating original page: how?
That is a feeling I know well... The ability to (easily) do something like ModalBox's behavior in WO is something I have felt is really lacking, so I'm a bit interested in playing around with this. I had some luck with YUIPanel, back about a year ago, but it was very buggy and I ultimately gave up with it because of this. As I recall, the reason was mostly that the YUI library was not at all interested in mixing with Scriptaculous. YUIPanel had a tendency to completely flip out when multiple submit buttons were involved. What I would like is something that enables me to use a modal dialog for more insignificant data entry forms and alerts. It is often the case that I want to edit a related entity that doesn't really have enough data to deserve a whole edit page itself. If I were doing this in an application, I would use a sheet or a panel for that, and I'd like to do the same within WO. So essentially I want something that can be modal, handle a variety of content, not choke on one or more submit buttons, work nicely with Scriptaculous, and look good (in a nutshell, be everything that ModalBox is). Like I said, I abandoned this previously and I have been using the aforementioned edit pages, but I think I'd like to start wiping that out and take a crack at developing a reusable component based on ModalBox. So... how far along did you get? Had you given much thought to the actual design, or was this something that was just floating around in your head? Do you have any code that you'd be willing to share? Clark On 21 Jan 08, at 8:26 PM, Chuck Hill wrote: It is still on the list and I am still side tracked. :-( Some days it feels like I am running up a hill of loose sand. Chuck On Jan 21, 2008, at 7:13 PM, Clark Mueller wrote: Chuck, I am curious, have you explored this project any further? Cheers, Clark On 22 May 07, at 12:13 PM, Chuck Hill wrote: I am (was) working on an AJAX modal dialog / wizard / not quite sure where it will go solution for this (to be part of the Ajax framework in Wonder). I got side tracked onto some other tasks, I won't get back to this for a while. See http://okonet.ru/projects/modalbox/ Chuck On May 22, 2007, at 7:45 AM, Jean Pierre Malrieu wrote: Hi, I need to open a popup window (for example a file upload form), and when the user submits the form, close the popup window and update the original page. This is pretty standard practice, I am sure, but I don't know how to do it. Thanks for your solutions. JPM ___ 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 [EMAIL PROTECTED] -- 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/cpmueller%40mac.com This email sent to [EMAIL PROTECTED] -- 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 [EMAIL PROTECTED]
Re: Popping-up a window and updating original page: how?
It is still on the list and I am still side tracked. :-( Some days it feels like I am running up a hill of loose sand. Chuck On Jan 21, 2008, at 7:13 PM, Clark Mueller wrote: Chuck, I am curious, have you explored this project any further? Cheers, Clark On 22 May 07, at 12:13 PM, Chuck Hill wrote: I am (was) working on an AJAX modal dialog / wizard / not quite sure where it will go solution for this (to be part of the Ajax framework in Wonder). I got side tracked onto some other tasks, I won't get back to this for a while. See http://okonet.ru/ projects/modalbox/ Chuck On May 22, 2007, at 7:45 AM, Jean Pierre Malrieu wrote: Hi, I need to open a popup window (for example a file upload form), and when the user submits the form, close the popup window and update the original page. This is pretty standard practice, I am sure, but I don't know how to do it. Thanks for your solutions. JPM ___ 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 [EMAIL PROTECTED] -- 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/cpmueller% 40mac.com This email sent to [EMAIL PROTECTED] -- 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 [EMAIL PROTECTED]
Re: Popping-up a window and updating original page: how?
Chuck, I am curious, have you explored this project any further? Cheers, Clark On 22 May 07, at 12:13 PM, Chuck Hill wrote: I am (was) working on an AJAX modal dialog / wizard / not quite sure where it will go solution for this (to be part of the Ajax framework in Wonder). I got side tracked onto some other tasks, I won't get back to this for a while. See http://okonet.ru/projects/modalbox/ Chuck On May 22, 2007, at 7:45 AM, Jean Pierre Malrieu wrote: Hi, I need to open a popup window (for example a file upload form), and when the user submits the form, close the popup window and update the original page. This is pretty standard practice, I am sure, but I don't know how to do it. Thanks for your solutions. JPM ___ 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 [EMAIL PROTECTED] -- 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/cpmueller%40mac.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: WOLips: Too many actions for Framework Install
I don't understand why do you want to install in eclipse? I never have eclipse installed on my deployment machine, not even on my staging machine which I try to keep as close as possible to my deployment. I usually either create an installer of a at the minimum an install script that will put all the pieces where I need them on the target remote machine. Pierre -- Pierre Frisch [EMAIL PROTECTED] On Jan 21, 2008, at 15:33, Guido Neitzer wrote: On 21.01.2008, at 15:37, Gaastra Dennis - WO Lists wrote: This would really help since we have tons of frameworks. Select the application that uses all these frameworks (with dependencies set correctly), click "Install ..." select all frameworks you want to have installed (they should be pre-selected with a correct setup) and do an install. It will install all frameworks AND you application in one go. cug -- Real-World WebObjects class at the Big Nerd Ranch March 2008, Frankfurt, Germany http://www.bignerdranch.com/classes/webobjects.shtml ___ 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/pierre%40apple.com This email sent to [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
Re: No WOResponse?
If you are using a reasonably recent version of WOLips, do not change manually the encoding in the .woo file. Change the real encoding in the properties and WOLips willo keep the .woo in synch. By the way the correct encoding is "UTF-8" the NSxxStringEncoding is deprecated. Pierre -- Pierre Frisch [EMAIL PROTECTED] On Jan 20, 2008, at 17:22, Pascal Robert wrote: Le 08-01-20 à 19:38, Jacob Mouka a écrit : It might be the component's text encoding (i've seen the blank page thing when the encoding got screwed up ... in my case xcode changed it to unicode). i'm not quite sure how to change the file's encoding in eclipse, Right-click on the file -> Properties -> Resource, change the encoding. If you are talking about the encoding in the .woo file ("NSxxStringEncoding"), open the component, open the DisplayGroups tab, open the Source tab, and change the encoding there. On 20-Jan-08, at 3:01 PM, Lachlan Deck wrote: On 20/01/2008, at 7:05 AM, Jonathan Miller wrote: I don't think so. For a sanity test I created a two new components with identical information found in Main.wo and the other component in the landing page. Then I changed the default action to point to the new landing page. That worked! And did you try deleting Main and the other component in the landing page and renaming your two new components + readjusting your DA? I've gone through .xcodeproj folder and the PB.project file but I cannot find anything that looks out of place. Is there another place to look? Thanks in advance, Jon On Jan 18, 2008, at 3:32 PM, Chuck Hill wrote: Sounds like your DirectAction class has a bug in it. Is there anything unusual in it? Chuck On Jan 18, 2008, at 5:28 PM, Jonathan Miller wrote: hmmm if I remove the following from the application constructor: WORequestHandler rh = requestHandlerForKey("wa"); setDefaultRequestHandler(rh); I can get to the first page but all subsequent (DirectAction) requests fail. Does that make any sense to anyone? Jon On Jan 18, 2008, at 10:52 AM, Chuck Hill wrote: Override performActionNamed() in DirectAction, wrap the call to super in an try...catch block and see if there are any exceptions to be logged out. Also try return super.performActionNamed(name).generateResponse(); Chuck On Jan 18, 2008, at 12:48 PM, Jonathan Miller wrote: Hi, I'm trying to import an OLD Xcode project into WOLips. I've successfully imported all the sources, components et al... There are no warning or errors that Eclipse reports and it can compile normally. However, when I open a web page with the application's URL I just get a blank page. I can see from logging statements that the default Direct Action gets fired and the component gets called. There are no errors that are reported to the console. I can run other WebObjects programs on this computer. Does anyone have a suggestion on how to continue to debug this? Thanks in advance, Jon ___ 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 [EMAIL PROTECTED] -- 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 -- 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/lachlan.deck%40gmail.com This email sent to [EMAIL PROTECTED] with regards, -- Lachlan Deck ___ 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/jmouka%40gmail.com This email sent to [EMAIL PROTECTED] ___ 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/probert%40os.ca This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing li
Re: WOLips: Project Triangles do not work.
On 21.01.2008, at 17:05, David den Boer wrote: I am having the same problem since updating. I see the following error : Invalid classpath container: 'WebObjects Frameworks' in project 'ISTWeb' I had to go in the .classpath file and remove two entries from the classpath container named "WebObjects frameworks". Was something with none-existing frameworks or duplicates in that entry. cug -- Real-World WebObjects class at the Big Nerd Ranch March 2008, Frankfurt, Germany http://www.bignerdranch.com/classes/webobjects.shtml ___ 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 [EMAIL PROTECTED]
Re: WOLips: Project Triangles do not work.
I am having the same problem since updating. I see the following error : Invalid classpath container: 'WebObjects Frameworks' in project 'ISTWeb' On Jan 21, 2008, at 3:34 PM, Guido Neitzer wrote: On 21.01.2008, at 15:41, Gaastra Dennis - WO Lists wrote: With WOLips, several projects cannot be viewed in the "WO Package" view. Clicking on a project's triangle will just make the triangle disappear, but will not open the project. Versions: Eclipse 3.3.1.1 + WOLips 3.3.4767. Also, saving the workspace, and opening a file by other means within such projects, always fails with a Null Pointer Exception. This happens when you managed to screw up your classpath (which doesn't have to be your fault - often happens with version control in a team). Check the errors view, it will probably show a classpath error for that project. cug -- Real-World WebObjects class at the Big Nerd Ranch March 2008, Frankfurt, Germany http://www.bignerdranch.com/classes/webobjects.shtml ___ 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/ddenboer% 40apple.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: WOLips: 80 character width gutter?
How very retro and quaint for 2008. There are some frameworks I use, (perhaps even one on which this list is based) that might make me wrap, but for me, part of the art of computer programming is making ones code pleasing to the eye. This includes making sure that the visual look is pleasing. At one time, I'd comment C the same way I'd comment assembly language, a comment on every line starting about col 50. Later, starting them at col 80. I don't use listings as much as I once did, so, I really don't care, and try not to allow the editor to wrap my lines for me. So, for me, I'd like my code to take 3/4 of my screen width, I can't always pull that off with eclipse, but I've found that I can double click on the tab and get a wider area to work in. On Jan 21, 2008 12:31 PM, Gaastra Dennis - WO Lists < [EMAIL PROTECTED]> wrote: > > Poll: How many WO developers still enforce 80 character width for > their java code? > ___ 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 [EMAIL PROTECTED]
Re: WOLips: 80 character width gutter?
I actually quite liked programming in APL. On Jan 21, 2008, at 2:57 PM, David LeBer wrote: On 21-Jan-08, at 5:52 PM, Chuck Hill wrote: I gave that up when I sold my 24x80 terminal and 300 baud modem. :-P When I was 10 or 11 my brother (5 years my senior) was overjoyed to get a IBM Selectric type ball for his birthday so he could program in APL (?) at the local university... ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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/ddenboer% 40apple.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: WOLips: 80 character width gutter?
Columns 1-72: program text, 73-80: line number, 80-90: patch level - on punch cards! Even with just 72 columns, ALGOL programs hardly ever needed wrapping. Come to think of it I really hated the style of putting commas at the beginning of lines: INTEGER A ,B ,C ,ANOTHER_VARIABLE ; just to save a little bit of work shifting commas and semis around when inserting new variables (come to think of it I hate semicolons and statement terminators). OK, I'll admit now I make each program statement one line and let the editor wrap – something Eclipse doesn't seem to do too well. Is there a way to enable this? Ian On 22/01/2008, at 9:52 AM, Chuck Hill wrote: I gave that up when I sold my 24x80 terminal and 300 baud modem. :-P On Jan 21, 2008, at 2:34 PM, Ken Anderson wrote: Not me! On Jan 21, 2008, at 5:31 PM, Gaastra Dennis - WO Lists wrote: Poll: How many WO developers still enforce 80 character width for their java code? ___ 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 [EMAIL PROTECTED] -- 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/ian.joyner%40sportstec.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: WOLips: Project Triangles do not work.
On 21.01.2008, at 15:41, Gaastra Dennis - WO Lists wrote: With WOLips, several projects cannot be viewed in the "WO Package" view. Clicking on a project's triangle will just make the triangle disappear, but will not open the project. Versions: Eclipse 3.3.1.1 + WOLips 3.3.4767. Also, saving the workspace, and opening a file by other means within such projects, always fails with a Null Pointer Exception. This happens when you managed to screw up your classpath (which doesn't have to be your fault - often happens with version control in a team). Check the errors view, it will probably show a classpath error for that project. cug -- Real-World WebObjects class at the Big Nerd Ranch March 2008, Frankfurt, Germany http://www.bignerdranch.com/classes/webobjects.shtml ___ 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 [EMAIL PROTECTED]
Re: WOLips: Too many actions for Framework Install
On 21.01.2008, at 15:37, Gaastra Dennis - WO Lists wrote: This would really help since we have tons of frameworks. Select the application that uses all these frameworks (with dependencies set correctly), click "Install ..." select all frameworks you want to have installed (they should be pre-selected with a correct setup) and do an install. It will install all frameworks AND you application in one go. cug -- Real-World WebObjects class at the Big Nerd Ranch March 2008, Frankfurt, Germany http://www.bignerdranch.com/classes/webobjects.shtml ___ 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 [EMAIL PROTECTED]
Re: WOLips: 80 character width gutter?
Side-by-side is great especially on the 30 inch display. IMHO, the one-window-over-whole-screen is so nineties + MS Windows! With Kind Regards, Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca] Chief Technology Officer, On 21-Jan-08, at 3:09 PM, Chuck Hill wrote: On Jan 21, 2008, at 3:07 PM, Gaastra Dennis - WO Lists wrote: I remember my Commodore 64 had a hack where one could double the character width from 40 to 80; e.g. 4 pixel wide characters!!! But seriously, here at WEBAPPZ we still tend to adhere to the 80 character width standard; main reason: code legibility. You do realize that they make 17, 19, even 21 inch or larger monitors now, right? Right? :-P On 21-Jan-08, at 2:57 PM, David LeBer wrote: On 21-Jan-08, at 5:52 PM, Chuck Hill wrote: I gave that up when I sold my 24x80 terminal and 300 baud modem. :-P When I was 10 or 11 my brother (5 years my senior) was overjoyed to get a IBM Selectric type ball for his birthday so he could program in APL (?) at the local university... ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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/ webobjects_lists%40webappz.com This email sent to [EMAIL PROTECTED] -- 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 [EMAIL PROTECTED]
Re: WOLips: 80 character width gutter?
On Jan 21, 2008, at 2:57 PM, David LeBer wrote: On 21-Jan-08, at 5:52 PM, Chuck Hill wrote: I gave that up when I sold my 24x80 terminal and 300 baud modem. :-P When I was 10 or 11 my brother (5 years my senior) was overjoyed to get a IBM Selectric type ball for his birthday so he could program in APL (?) at the local university... Yes, APL. Mostly Greek symbols. Most programs were a line or two. I think 10 was the most we got to. If you can debug APL, you can debug almost anything. Chuck -- 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 [EMAIL PROTECTED]
Re: WOLips: 80 character width gutter?
On Jan 21, 2008, at 3:07 PM, Gaastra Dennis - WO Lists wrote: I remember my Commodore 64 had a hack where one could double the character width from 40 to 80; e.g. 4 pixel wide characters!!! But seriously, here at WEBAPPZ we still tend to adhere to the 80 character width standard; main reason: code legibility. You do realize that they make 17, 19, even 21 inch or larger monitors now, right? Right? :-P On 21-Jan-08, at 2:57 PM, David LeBer wrote: On 21-Jan-08, at 5:52 PM, Chuck Hill wrote: I gave that up when I sold my 24x80 terminal and 300 baud modem. :-P When I was 10 or 11 my brother (5 years my senior) was overjoyed to get a IBM Selectric type ball for his birthday so he could program in APL (?) at the local university... ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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/ webobjects_lists%40webappz.com This email sent to [EMAIL PROTECTED] -- 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 [EMAIL PROTECTED]
Re: WOLips: 80 character width gutter?
I remember my Commodore 64 had a hack where one could double the character width from 40 to 80; e.g. 4 pixel wide characters!!! But seriously, here at WEBAPPZ we still tend to adhere to the 80 character width standard; main reason: code legibility. With Kind Regards, Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca] Chief Technology Officer, WEBAPPZ Systems, Inc. On 21-Jan-08, at 2:57 PM, David LeBer wrote: On 21-Jan-08, at 5:52 PM, Chuck Hill wrote: I gave that up when I sold my 24x80 terminal and 300 baud modem. :-P When I was 10 or 11 my brother (5 years my senior) was overjoyed to get a IBM Selectric type ball for his birthday so he could program in APL (?) at the local university... ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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/ webobjects_lists%40webappz.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: WOLips: 80 character width gutter?
On 21-Jan-08, at 5:52 PM, Chuck Hill wrote: I gave that up when I sold my 24x80 terminal and 300 baud modem. :-P When I was 10 or 11 my brother (5 years my senior) was overjoyed to get a IBM Selectric type ball for his birthday so he could program in APL (?) at the local university... ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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 [EMAIL PROTECTED]
Re: WOLips: 80 character width gutter?
I gave that up when I sold my 24x80 terminal and 300 baud modem. :-P On Jan 21, 2008, at 2:34 PM, Ken Anderson wrote: Not me! On Jan 21, 2008, at 5:31 PM, Gaastra Dennis - WO Lists wrote: Poll: How many WO developers still enforce 80 character width for their java code? ___ 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 [EMAIL PROTECTED] -- 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 [EMAIL PROTECTED]
Re: WOLips: Project Triangles do not work.
With WOLips, several projects cannot be viewed in the "WO Package" view. Clicking on a project's triangle will just make the triangle disappear, but will not open the project. Versions: Eclipse 3.3.1.1 + WOLips 3.3.4767. Also, saving the workspace, and opening a file by other means within such projects, always fails with a Null Pointer Exception. Please log a bug with the stack trace on the wolips jira ... Also this is better posted on the woproject-dev list. ms ___ 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 [EMAIL PROTECTED]
Re: WOLips: Too many actions for Framework Install
On 21-Jan-08, at 5:37 PM, Gaastra Dennis - WO Lists wrote: Dear List, We found with WOLips, to install a framework, one always has to do the following: 1. Press "Control" button on keyboard. 2. Click inside your project. 3. Move mouse down to "WOLips Ant Tools" 4. Move mouse to the right over "Install" 5. Click button. Questions: A. Could there be a "Install" button on the top; like the green run button. How to do this? B. Could this be automated; such that every time the framework is re- build, also this ant-build is performed. This works for me: 1. Change your build style from incremental to ant in Project -> Properties -> WOLips Build 2. Edit the build.xml file so the default build type is "install" ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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 [EMAIL PROTECTED]
WOLips: Project Triangles do not work.
Dear List, With WOLips, several projects cannot be viewed in the "WO Package" view. Clicking on a project's triangle will just make the triangle disappear, but will not open the project. Versions: Eclipse 3.3.1.1 + WOLips 3.3.4767. Also, saving the workspace, and opening a file by other means within such projects, always fails with a Null Pointer Exception. With Kind Regards, Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca] Chief Technology Officer, WEBAPPZ Systems, Inc. ___ 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 [EMAIL PROTECTED]
Re: WOLips: 80 character width gutter?
80 is kinda tight. I try to keep it within 150 characters. -- Galen Rhodes [EMAIL PROTECTED] "There is no worse tyranny than to force a man to pay for what he does not want merely because you think it would be good for him." -- Robert Heinlein -- On Jan 21, 2008, at 5:31 PM, Gaastra Dennis - WO Lists wrote: Dear List, How does one show a vertical line toward the right side of a java editor - indicating 80 character width. In XCode, one could select "show gutter" at 80 characters. Poll: How many WO developers still enforce 80 character width for their java code? With Kind Regards, Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca] Chief Technology Officer, WEBAPPZ Systems, Inc. ___ 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 [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: WOLips: 80 character width gutter?
How does one show a vertical line toward the right side of a java editor - indicating 80 character width. In XCode, one could select "show gutter" at 80 characters. Preferences=>General=>Editors=>Text Editors=>Show Print Margin, 80 Poll: How many WO developers still enforce 80 character width for their java code? I can't stand this. I hate code wrapping more than just about any other style dogma. Well, actually i hate instance variables that are named the same as method parameters more, I think. Code wrapping is a close second. ms ___ 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 [EMAIL PROTECTED]
WOLips: Too many actions for Framework Install
Dear List, We found with WOLips, to install a framework, one always has to do the following: 1. Press "Control" button on keyboard. 2. Click inside your project. 3. Move mouse down to "WOLips Ant Tools" 4. Move mouse to the right over "Install" 5. Click button. Questions: A. Could there be a "Install" button on the top; like the green run button. How to do this? B. Could this be automated; such that every time the framework is re- build, also this ant-build is performed. This would really help since we have tons of frameworks. With Kind Regards, Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca] Chief Technology Officer, WEBAPPZ Systems, Inc. ___ 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 [EMAIL PROTECTED]
Re: Development using SSSL with Eclipse and WOLips
Hi Don, Is -WODirectConnectEnabled to false ? Do you use the good IP adresse in -WOAdaptorURL ? You can configure these launch arguments in the "WO" tab in "Run Dialog". If you prefer to put them in the "Arguments" tab, don't forget to disable them in the "WO" tab. Good luck! On 08-01-17, at 10:17, Don Lindsay wrote: Hello; I am developing an application using Dave Newnans WOSecurity framework. This framework uses SSL. However for some reason SSL does not work within Eclipse. I have setup my "OS X" machine to use apache with SSL. The SSL works fine when navigating to my machine, but I cannot get it to operate when running a webobjects application from within Eclipse. I get an error: Not Found The requested URL /cgi-bin/WebObjects/securedamis.woa/-1/wa/ com.webobjects.security.SPDirectAction/sslReturn was not found on this server. Is there something I need to do to enable SSL from within Eclipse? Thanks Don ___ 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/jgagnon% 40druide.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: WOLips: 80 character width gutter?
Not me! On Jan 21, 2008, at 5:31 PM, Gaastra Dennis - WO Lists wrote: Poll: How many WO developers still enforce 80 character width for their java code? ___ 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 [EMAIL PROTECTED]
WOLips: 80 character width gutter?
Dear List, How does one show a vertical line toward the right side of a java editor - indicating 80 character width. In XCode, one could select "show gutter" at 80 characters. Poll: How many WO developers still enforce 80 character width for their java code? With Kind Regards, Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca] Chief Technology Officer, WEBAPPZ Systems, Inc. ___ 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 [EMAIL PROTECTED]
Re: Velocity EOGenerator create package problem
not in yet On Jan 21, 2008, at 5:03 PM, David Holt wrote: Hi Mike, Is the "default package" definition for EOs setting in Entity Modeler yet? If so, where can I set it? Thanks, David On 19-Dec-07, at 5:48 PM, Mike Schrag wrote: is it possible to setup packagename argument in the EOGenerator command or turn on create package functionality? No, because this is really a setting of your EOModel, not just of the generation of Java files. However, there is a new setting coming to Entity Modeler that will allow you to define the default package name for entities (which WILL actually write into the model file properly). (coming = probably next week) ___ 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 [EMAIL PROTECTED]
Re: Velocity EOGenerator create package problem
Hi Mike, Is the "default package" definition for EOs setting in Entity Modeler yet? If so, where can I set it? Thanks, David On 19-Dec-07, at 5:48 PM, Mike Schrag wrote: is it possible to setup packagename argument in the EOGenerator command or turn on create package functionality? No, because this is really a setting of your EOModel, not just of the generation of Java files. However, there is a new setting coming to Entity Modeler that will allow you to define the default package name for entities (which WILL actually write into the model file properly). (coming = probably next week) ___ 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 [EMAIL PROTECTED]
Re: Using JavaEOGenerator w/ WOLips
Thanks, but using Velocity now :) On Jan 21, 2008, at 4:22 PM, Lachlan Deck wrote: On 22/01/2008, at 6:44 AM, Ken Anderson wrote: A good shot - I had to do a bit more than that, but it doesn't throw an exception anymore. Unfortunately, it also fails to include the text inside the conditional, whether or not negate="true" is there or not... Try: negate="[true]" On Jan 21, 2008, at 2:27 PM, David Elliott wrote: On Jan 21, 2008, at 2:18 PM, Ken Anderson wrote: David, Seems like that is not supported... when I try this: value="boolean"> Test boolean stuff Or should that be like this? value="[\"boolean\"]"> I'm not completely up with WO5.4 inline syntax. Find the docs for them and that'll probably help. I get this: com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Template: 71:1: wo:WOKeyValueConditional {null={key=[attribute.prototypeName], value=boolean}} has no WOElement at com .webobjects .appserver .parser.woml.WOMLTemplateParser.process(WOMLTemplateParser.java: 364) at com .webobjects .appserver .parser.woml.WOMLTemplateParser.parse(WOMLTemplateParser.java:504) Would the extensions possibly not be included in JavaEOGenerator? with regards, -- Lachlan Deck ___ 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 [EMAIL PROTECTED]
Re: Using JavaEOGenerator w/ WOLips
On 22/01/2008, at 6:44 AM, Ken Anderson wrote: A good shot - I had to do a bit more than that, but it doesn't throw an exception anymore. Unfortunately, it also fails to include the text inside the conditional, whether or not negate="true" is there or not... Try: negate="[true]" On Jan 21, 2008, at 2:27 PM, David Elliott wrote: On Jan 21, 2008, at 2:18 PM, Ken Anderson wrote: David, Seems like that is not supported... when I try this: value="boolean"> Test boolean stuff Or should that be like this? value="[\"boolean\"]"> I'm not completely up with WO5.4 inline syntax. Find the docs for them and that'll probably help. I get this: com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Template: 71:1: wo:WOKeyValueConditional {null={key= [attribute.prototypeName], value=boolean}} has no WOElement at com.webobjects.appserver.parser.woml.WOMLTemplateParser.process (WOMLTemplateParser.java:364) at com.webobjects.appserver.parser.woml.WOMLTemplateParser.parse (WOMLTemplateParser.java:504) Would the extensions possibly not be included in JavaEOGenerator? with regards, -- Lachlan Deck ___ 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 [EMAIL PROTECTED]
Re: NSTimestamp mapped to DATE for mysql
Hi John, On 21/01/2008, at 10:54 PM, John Pollard wrote: Solved! ... pass time zone in user.timezone, don't set in code Brute force approach ay. The only problem this poses is that you can no longer do NSTimeZone.systemTimeZone() and get anything other than GMT. Thanks for going into some detail in your reply. No worries. I'm also needing to double check my own app for this stuff at the moment so it's good timing :-) On 19 Jan 2008, at 12:32, Lachlan Deck wrote: On 18/01/2008, at 2:44 AM, John Pollard wrote: Many thanks for your reply. I do do all the default timezone setting in my application, client and server side. However, I found SimpleDateTimes used for conversions don't use the system timezone and you also have to set it on these explicitly. I currently set it to London/Europe. Hmm. Firstly, are you certain you're setting the runtime TimeZone for java correctly? Because SimpleDateFormat will use a Calendar initiated with TimeZone.getDefault(), and Locale for that matter. I was setting it much as you do in your code, but I have now worked out that my SimpleDateFormat was being statically initialised before I was setting the default TimeZone. That wasn't my main problem exactly, but does explain why I thought wrongly that SimpleDateFormat wasn't using the default time zone. Great. Easily solved. Secondly, setting it to London/Europe for parsing/formatting dates is your problem. This is the rule of thumb that works for working with dates (as opposed to datetimes): 'Dates are dates are dates. They do not have timezones. They are like constants. They don't change.' My birthdate, for example, doesn't change should I travel to somewhere with a different timezone. The rest of your reply mainly drills home the perils of storing a date with no time in conjunction with using a non GMT timestamp. That message has certainly got through. I have now finally solved this. Setting the time zone in code on both server and client sides of my application was not enough. It was the first thing I did in code, but apparently not soon enough. Is that because of previously mentioned static initialisers? Lazy initialisation /should/ do the trick unless I've missed something or there's a bug somewhere. It may be that my own experience with my statically initialised SimpleDateFormat is a clue to what is happening, but some underlying WO code still operates in the wrong time zone (BST dates arrive back on my client 1 hour shifted). So somehow my system default time zone (Europe/London) was still getting a hold on parts of my application. Interesting. Possible. Strange. Would have to peek in on the deserializers to check... which I need to do for Axis/WO as I've got a 1hour shift happening from remote app to mine for non-dst timestamps that I'm tracking down atm. Note, there's also a list of properties that are worth checking out with regards to your jdbc connection. Search for 'timezone' in the following: http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference- configuration-properties.html This is also helpful: http://dev.mysql.com/doc/refman/5.1/en/time-zone-support.html The solution... Pass the following to the java VM for both my server and client side applications: -Duser.timezone=GMT So whatever bits of my WO app were picking up the default time zone from my box (Europe/London), now don't, they use GMT instead and it works. I will strip out all my attempts to set the timezone in code as they appear to miss the boat (note Java Client application). Nice you've got it working. If you do find you need a handle on the system's timezone (which is usually a nice-to-have on the client side) I'd be digging deeper... depending on other priorities of course. with regards, -- Lachlan Deck ___ 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 [EMAIL PROTECTED]
Re: WOLips package explorer is swallowing GeneratedEOs
It's quite cool - and now that I know about it, I'll leave it on :) On Jan 21, 2008, at 3:52 PM, Mike Schrag wrote: The default was changed in the newer builds to default on ... The point was that you're not supposed to care about them -- they just autogenerate, they're there, and you never think about them again, so I hid them by default to just not clutter up package explorer. It ended up just confusing people. On Jan 21, 2008, at 3:46 PM, Ken Anderson wrote: Geez - cool, but how is anyone supposed to know that? :) Thanks Pascal! Ken On Jan 21, 2008, at 3:41 PM, Pascal Robert wrote: Filters my friend :-) Uncheck "EOGenerator _Files" I imported my model framework into Eclipse 3.3.1.1 with WOLips 3.3.4763, and under GeneratedEOs, it shows the right classpath, but there's no triangle to open to see the _.java files. If I switch to the regular Java explorer, the files are there, and the inline compiler obviously seems them since the project has no red marks. Any ideas? I've tried everything from deleting and reimporting, to refreshing, to completely starting over with the workspace - to no avail. ___ 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/mschrag% 40mdimension.com This email sent to [EMAIL PROTECTED] ___ 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/kenlists% 40anderhome.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: WOLips package explorer is swallowing GeneratedEOs
The default was changed in the newer builds to default on ... The point was that you're not supposed to care about them -- they just autogenerate, they're there, and you never think about them again, so I hid them by default to just not clutter up package explorer. It ended up just confusing people. On Jan 21, 2008, at 3:46 PM, Ken Anderson wrote: Geez - cool, but how is anyone supposed to know that? :) Thanks Pascal! Ken On Jan 21, 2008, at 3:41 PM, Pascal Robert wrote: Filters my friend :-) Uncheck "EOGenerator _Files" I imported my model framework into Eclipse 3.3.1.1 with WOLips 3.3.4763, and under GeneratedEOs, it shows the right classpath, but there's no triangle to open to see the _.java files. If I switch to the regular Java explorer, the files are there, and the inline compiler obviously seems them since the project has no red marks. Any ideas? I've tried everything from deleting and reimporting, to refreshing, to completely starting over with the workspace - to no avail. ___ 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/mschrag%40mdimension.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: WOLips package explorer is swallowing GeneratedEOs
Geez - cool, but how is anyone supposed to know that? :) Thanks Pascal! Ken On Jan 21, 2008, at 3:41 PM, Pascal Robert wrote: Filters my friend :-) Uncheck "EOGenerator _Files" I imported my model framework into Eclipse 3.3.1.1 with WOLips 3.3.4763, and under GeneratedEOs, it shows the right classpath, but there's no triangle to open to see the _.java files. If I switch to the regular Java explorer, the files are there, and the inline compiler obviously seems them since the project has no red marks. Any ideas? I've tried everything from deleting and reimporting, to refreshing, to completely starting over with the workspace - to no avail. ___ 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 [EMAIL PROTECTED]
Re: WOLips package explorer is swallowing GeneratedEOs
Hi Ken, This got me a few weeks ago. Click on the triangle at the top of the WO Package Explorer pane to drop the menu down, and select "Filters..." from the list - scroll down the menu and you should see that the "EOGenerator _Files" option is ticked. Clear the box and click OK, and you should now be able to see the _Entity files. Hope this brief description makes sense, if not, just follow the instructions on the WOLips Wiki that tells you how to see the Properties file, and select the EOGenerator _Entity option in the menu instead. Best regards, -- Steve On 21 Jan 2008, at 20:36, Ken Anderson wrote: I imported my model framework into Eclipse 3.3.1.1 with WOLips 3.3.4763, and under GeneratedEOs, it shows the right classpath, but there's no triangle to open to see the _.java files. If I switch to the regular Java explorer, the files are there, and the inline compiler obviously seems them since the project has no red marks. Any ideas? I've tried everything from deleting and reimporting, to refreshing, to completely starting over with the workspace - to no avail. Ken ___ 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/steve%40me-experior.com This email sent to [EMAIL PROTECTED] Steve Sharman CTO Me-Experior +44 (0) 7836 739986 (mobile) +44 (0) 1386 834942 (office) [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: WOLips package explorer is swallowing GeneratedEOs
Ken: http://wiki.objectstyle.org/confluence/display/WOL/WOLips-Eclipse +beginner+mistakes+and+questions#WOLips- Eclipsebeginnermistakesandquestions-Whydon%27tIseeallmyfiles%3F Look for "EOGenerator _Files" Tobias On Jan 21, 2008, at 3:36 PM, Ken Anderson wrote: I imported my model framework into Eclipse 3.3.1.1 with WOLips 3.3.4763, and under GeneratedEOs, it shows the right classpath, but there's no triangle to open to see the _.java files. If I switch to the regular Java explorer, the files are there, and the inline compiler obviously seems them since the project has no red marks. Any ideas? I've tried everything from deleting and reimporting, to refreshing, to completely starting over with the workspace - to no avail. Ken ___ 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/tcrawley% 40gmail.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
WOLips package explorer is swallowing GeneratedEOs
I imported my model framework into Eclipse 3.3.1.1 with WOLips 3.3.4763, and under GeneratedEOs, it shows the right classpath, but there's no triangle to open to see the _.java files. If I switch to the regular Java explorer, the files are there, and the inline compiler obviously seems them since the project has no red marks. Any ideas? I've tried everything from deleting and reimporting, to refreshing, to completely starting over with the workspace - to no avail. Ken ___ 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 [EMAIL PROTECTED]
Re: Using JavaEOGenerator w/ WOLips
A good shot - I had to do a bit more than that, but it doesn't throw an exception anymore. Unfortunately, it also fails to include the text inside the conditional, whether or not negate="true" is there or not... Does anyone have an example similar to this? Thanks again all! Ken On Jan 21, 2008, at 2:27 PM, David Elliott wrote: Hi Ken, A very quick look at the MacOSClassPath.txt file would seem to indicate they're not. You ought to be able to simply add them. -Dave On Jan 21, 2008, at 2:18 PM, Ken Anderson wrote: David, Seems like that is not supported... when I try this: value="boolean"> Test boolean stuff I get this: com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Template: 71:1: wo:WOKeyValueConditional {null={key=[attribute.prototypeName], value=boolean}} has no WOElement at com .webobjects .appserver .parser.woml.WOMLTemplateParser.process(WOMLTemplateParser.java:364) at com .webobjects .appserver .parser.woml.WOMLTemplateParser.parse(WOMLTemplateParser.java:504) Would the extensions possibly not be included in JavaEOGenerator? ___ 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 [EMAIL PROTECTED]
Re: [Announcement] WOJC databinding library released
On Jan 21, 2008, at 15:22, David Avendasora wrote: So, does the entire JBND framework exist on the client-side of the application? Yes. It looks like to me you could add a Java Client application on top of any existing web application without actually touching any of the existing code at all. Dave Yes :) You could. You would need to add the JavaClient wo component to your existing WO app. Besides that, sure. I'd however refrain from doing that because it would complicate debugging. It is super simple making a WO app to serve JavaClient apps, like 10 minutes of work, so unless you have some very important logic existing in the WO app, it might be a better solution to separate the two WO apps. Flor ___ 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 [EMAIL PROTECTED]
Re: Using JavaEOGenerator w/ WOLips
Hi Ken, A very quick look at the MacOSClassPath.txt file would seem to indicate they're not. You ought to be able to simply add them. -Dave On Jan 21, 2008, at 2:18 PM, Ken Anderson wrote: David, Seems like that is not supported... when I try this: value="boolean"> Test boolean stuff I get this: com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Template: 71:1: wo:WOKeyValueConditional {null={key= [attribute.prototypeName], value=boolean}} has no WOElement at com.webobjects.appserver.parser.woml.WOMLTemplateParser.process (WOMLTemplateParser.java:364) at com.webobjects.appserver.parser.woml.WOMLTemplateParser.parse (WOMLTemplateParser.java:504) Would the extensions possibly not be included in JavaEOGenerator? ___ 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 [EMAIL PROTECTED]
Re: [Announcement] WOJC databinding library released
Too bad people are moving to Flex or other alternatives :-) But it's true that Java client-side still have a future, since it's the other tech where you can use client-side EOF. Very nice Florijan! With this and Paolo's alternate, the future is looking much brighter for JC than just a few months ago when I considered it a dead technology. This is the first time in years that I have though it was actually worth looking at it. Chuck On Jan 21, 2008, at 11:14 AM, David Avendasora wrote: Wow Flor! This is great! Not only is there an overview and code there, you actually have documentation and a working example too! I think this is a big step forward for WebObjects Java Client development. I've added it to the Complimentary Frameworks on the Java Client section of the WO Wiki (http://wiki.objectstyle.org/confluence/ display/WO/Java+Client). Dave On Jan 21, 2008, at 2:00 PM, Florijan Stamenkovic wrote: Hi all, I am happy to say that the databinding library I've been working on (for WO + Swing) is ready for it's initial release. Of course, please note that this is version 0.x, and there could be serious bugs in it. Accompanying documentation and examples are there as well. http://web.mac.com/flor385/JBND/ My best, Flor -- 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/probert%40os.ca This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: [Announcement] WOJC databinding library released
So, does the entire JBND framework exist on the client-side of the application? It looks like to me you could add a Java Client application on top of any existing web application without actually touching any of the existing code at all. Dave On Jan 21, 2008, at 2:14 PM, David Avendasora wrote: Wow Flor! This is great! Not only is there an overview and code there, you actually have documentation and a working example too! I think this is a big step forward for WebObjects Java Client development. I've added it to the Complimentary Frameworks on the Java Client section of the WO Wiki (http://wiki.objectstyle.org/confluence/ display/WO/Java+Client). Dave On Jan 21, 2008, at 2:00 PM, Florijan Stamenkovic wrote: Hi all, I am happy to say that the databinding library I've been working on (for WO + Swing) is ready for it's initial release. Of course, please note that this is version 0.x, and there could be serious bugs in it. Accompanying documentation and examples are there as well. http://web.mac.com/flor385/JBND/ My best, Flor ___ 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/webobjects% 40avendasora.com This email sent to [EMAIL PROTECTED] ___ 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/webobjects% 40avendasora.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Unique Fields in Database
Hello Neil; What I tend to do is to have a lock in the database and then the thread adding the new code has to acquire the lock and write the record before being able to unlock the the lock. Addition of a unique index will also ensure that the column values are not duplicated. cheers. I think that your second idea of checking for the value before insert is prone to a 0.1% chance of another instance inserting the same random number in between you checking the DB and inserting into the DB. I don't think that WO supports SQL transaction-based mode of operation (although am happy to be educated on this point if it does). I'm not even sure if RawRow based operations can be coerced into using transactions? Using your first idea though, means that I don't need to go down this route. I'd still be interested, in general, in how to avoid these 'millisecond' windows of potential disaster between a read and a write request. ___ Andrew Lindesay technology : www.lindesay.co.nz business : www.silvereye.co.nz ___ 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 [EMAIL PROTECTED]
Re: [Announcement] WOJC databinding library released
Very nice Florijan! With this and Paolo's alternate, the future is looking much brighter for JC than just a few months ago when I considered it a dead technology. This is the first time in years that I have though it was actually worth looking at it. Chuck On Jan 21, 2008, at 11:14 AM, David Avendasora wrote: Wow Flor! This is great! Not only is there an overview and code there, you actually have documentation and a working example too! I think this is a big step forward for WebObjects Java Client development. I've added it to the Complimentary Frameworks on the Java Client section of the WO Wiki (http://wiki.objectstyle.org/confluence/ display/WO/Java+Client). Dave On Jan 21, 2008, at 2:00 PM, Florijan Stamenkovic wrote: Hi all, I am happy to say that the databinding library I've been working on (for WO + Swing) is ready for it's initial release. Of course, please note that this is version 0.x, and there could be serious bugs in it. Accompanying documentation and examples are there as well. http://web.mac.com/flor385/JBND/ My best, Flor -- 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 [EMAIL PROTECTED]
Re: Using JavaEOGenerator w/ WOLips
David, Seems like that is not supported... when I try this: value="boolean"> Test boolean stuff I get this: com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Template: 71:1: wo:WOKeyValueConditional {null={key=[attribute.prototypeName], value=boolean}} has no WOElement at com .webobjects .appserver .parser.woml.WOMLTemplateParser.process(WOMLTemplateParser.java:364) at com .webobjects .appserver .parser.woml.WOMLTemplateParser.parse(WOMLTemplateParser.java:504) Would the extensions possibly not be included in JavaEOGenerator? Ken On Jan 21, 2008, at 11:26 AM, David LeBer wrote: On 21-Jan-08, at 11:08 AM, Ken Anderson wrote: Looks like I'll have to go Velocity as well. I have comparisons in my EOGenerator templates like: <$if Attribute.prototypeName eq 'boolean'$> Which doesn't have an equivalent that I know of in the WO template world. Any suggestions from people using JavaEOGenerator ? Ken, I believe that JaveEOGenerator just uses the WO template engine. So wouldn't a WOKeyValueConditional work? ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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 [EMAIL PROTECTED]
Re: [Announcement] WOJC databinding library released
Wow Flor! This is great! Not only is there an overview and code there, you actually have documentation and a working example too! I think this is a big step forward for WebObjects Java Client development. I've added it to the Complimentary Frameworks on the Java Client section of the WO Wiki (http://wiki.objectstyle.org/confluence/ display/WO/Java+Client). Dave On Jan 21, 2008, at 2:00 PM, Florijan Stamenkovic wrote: Hi all, I am happy to say that the databinding library I've been working on (for WO + Swing) is ready for it's initial release. Of course, please note that this is version 0.x, and there could be serious bugs in it. Accompanying documentation and examples are there as well. http://web.mac.com/flor385/JBND/ My best, Flor ___ 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/webobjects% 40avendasora.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
[Announcement] WOJC databinding library released
Hi all, I am happy to say that the databinding library I've been working on (for WO + Swing) is ready for it's initial release. Of course, please note that this is version 0.x, and there could be serious bugs in it. Accompanying documentation and examples are there as well. http://web.mac.com/flor385/JBND/ My best, Flor ___ 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 [EMAIL PROTECTED]
Re: Accessing Text files in a WebObject Application
Le 08-01-21 à 13:03, asim hussain a écrit : Hello, I am trying to access a text file through the Main component and I have tried various things such as - placing the text file in the web-server resources folder, - placing the file in the Main component - placing the file in the Resources folder. Put it somewhere else. If you store the file in your application and people modify it, what will happen when you install a new version of your application ? Good chances that the text file will be overriden that an older file... A good place would be under /Library/WebServer/Documents Could any one please let me know where to add the file to in this XCode project and what to set its target to. Please note that the file would change from client-to-client Any help is appreciated Regards Asim ___ 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/probert%40os.ca This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Accessing Text files in a WebObject Application
Hello, I am trying to access a text file through the Main component and I have tried various things such as - placing the text file in the web-server resources folder, - placing the file in the Main component - placing the file in the Resources folder. Could any one please let me know where to add the file to in this XCode project and what to set its target to. Please note that the file would change from client-to-client Any help is appreciated Regards Asim ___ 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 [EMAIL PROTECTED]
Re: Using JavaEOGenerator w/ WOLips
Looks like I'll have to go Velocity as well. I have comparisons in my EOGenerator templates like: <$if Attribute.prototypeName eq 'boolean'$> Which doesn't have an equivalent that I know of in the WO template world. Any suggestions from people using JavaEOGenerator ? This is one of the reasons I prefer Velocity ... You could obviously write your own components and package them into JavaEOGenerator to do this, but it seems like a lot of pain. ms ___ 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 [EMAIL PROTECTED]
Re: Using JavaEOGenerator w/ WOLips
Thanks David - shows you how much I use the front end part of WOF :) On Jan 21, 2008, at 11:26 AM, David LeBer wrote: On 21-Jan-08, at 11:08 AM, Ken Anderson wrote: Looks like I'll have to go Velocity as well. I have comparisons in my EOGenerator templates like: <$if Attribute.prototypeName eq 'boolean'$> Which doesn't have an equivalent that I know of in the WO template world. Any suggestions from people using JavaEOGenerator ? Ken, I believe that JaveEOGenerator just uses the WO template engine. So wouldn't a WOKeyValueConditional work? ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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 [EMAIL PROTECTED]
Re: Using JavaEOGenerator w/ WOLips
On 21-Jan-08, at 11:08 AM, Ken Anderson wrote: Looks like I'll have to go Velocity as well. I have comparisons in my EOGenerator templates like: <$if Attribute.prototypeName eq 'boolean'$> Which doesn't have an equivalent that I know of in the WO template world. Any suggestions from people using JavaEOGenerator ? Ken, I believe that JaveEOGenerator just uses the WO template engine. So wouldn't a WOKeyValueConditional work? ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ 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 [EMAIL PROTECTED]
Re: Writing a beginners tutorial, some D2W questions on Webassistant and ERAtachment
I think the key to this whole discussion is that different people learn things differently. Some need that really low-barrier-to-entry way of getting started, then they can learn the more complicated parts. Others want to understand how everything works at the core before they can start writing code, and for a few they can get that core understanding in just a few days. For others it's a journey of months or years. D2W, and in the past D2JC, greatly lower the learning curve for starting out in WO. There are people out there like me that would have never picked up WO if it hadn't been for the ease of getting started with the D2-technologies. Now, I will say that I think my application could have been so much better if I had spent a few months really learning WO first, but by starting with D2JC I had already deployed the first version of my application by then. Changes asked for by the users were generally insanely simple. Tweak the model, tweak the .d2wmodel with the Assistant, done. It made me look very responsive and allowed me to work out a lot of kinks with the model long before I started writing hardly any Java code that needed to be refactored. I think if you are new to Java and WO the D2W technology is a great place to start to use it at it's most basic - as a CRUD front-end for your model. Sure its possible to do so much more with it, but as everyone has pointed out you need to _really_ be an expert in WO to leverage it in more advanced ways. For me the learning curve goes something like this: 1) Modeling/D2 to see how the model is reflected in the UI (you know, prototyping) 2) Basic WO development, with some simple D2 stuff sprinkled in. 3) Advanced WO development 4) Advanced D2 development Saying that you really have to understand WO at its deepest levels before getting into D2W, is assuming that you must use D2W at its most powerful. How does that saying go? 1. Make it work, 2. Make it work right, 3. Make it work fast. Basic D2W can be used to do step 1 really quickly by a complete Java/ WO noob, and is a perfect place to start for many projects. Dave ___ 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 [EMAIL PROTECTED]
Re: Using JavaEOGenerator w/ WOLips
Looks like I'll have to go Velocity as well. I have comparisons in my EOGenerator templates like: <$if Attribute.prototypeName eq 'boolean'$> Which doesn't have an equivalent that I know of in the WO template world. Any suggestions from people using JavaEOGenerator ? Ken On Jan 21, 2008, at 9:37 AM, Mike Schrag wrote: Sorry .. You're beyond my JavaEOGenerator experience at this point. I use Velocity EOGenerator. ms On Jan 21, 2008, at 9:35 AM, Ken Anderson wrote: Mike, OK - I'm still having trouble here. I can successfully run JavaEOGenerator the way I want (without the 'base' prepended before the filename) using this command line: /Developer/Applications/JavaEOGenerator.woa/JavaEOGenerator -model ~/testing/Commoditrack.eomodeld -templatedir ~/testing - javatemplate JavaSourceEOF52.eotemplate -subclassjavatemplate JavaSubclassSourceEOF5.eotemplate -packagedirs -java - subclassdestination ~/testing/GeneratedEOs -destination ~/testing/ src -verbose -filenametemplate "\"[entity.classPackageName]\"/>.\"[entity.classNameWithoutPackage]\"/>" The important part being the end, where I set the filenames to work the old EOGenerator way... Unfortunately, when I put this into the Filename Template: field of the eogen inspector: ".value=\"[entity.classNameWithoutPackage]\"/>" (with or without the outside quotes) it still generates the base dirs. Even more of an issue, it still generates a file for EOGenericRecord (just weird). How can I get JavaEOGenerator to work from WOLips with the filenames the way I want? I can't find the command line WOLips is using anywhere to help debug... Thanks, Ken On Jan 18, 2008, at 3:10 PM, Mike Schrag wrote: I feel like an idiot, but I don't know what you're talking about. If you mean the EOGenerator prefs panel, I only have: Executable Path Template Folder Java Template Subclass Java Template I'm using 2.0.0.4118 because of that problem I had with WOFrameworks not showing up... http://wiki.objectstyle.org/confluence/display/WOL/Generating+EO+Java+Classes I'm actually not sure that JavaEOGenerator works properly with 4118, actually ... I have a fuzzy memory of having to fix some things with path management for it to work properly. ms ___ 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/kenlists%40anderhome.com This email sent to [EMAIL PROTECTED] ___ 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/kenlists%40anderhome.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Using JavaEOGenerator w/ WOLips
Ken: The .eogen file is just the command line arguments to the generator. So looking at that file in a text editor will give you the command that wolips will use, without the /path/to/JavaEOGen prefix. Tobias On Jan 21, 2008, at 9:35 AM, Ken Anderson wrote: Mike, OK - I'm still having trouble here. I can successfully run JavaEOGenerator the way I want (without the 'base' prepended before the filename) using this command line: /Developer/Applications/JavaEOGenerator.woa/JavaEOGenerator -model ~/testing/Commoditrack.eomodeld -templatedir ~/testing - javatemplate JavaSourceEOF52.eotemplate -subclassjavatemplate JavaSubclassSourceEOF5.eotemplate -packagedirs -java - subclassdestination ~/testing/GeneratedEOs -destination ~/testing/ src -verbose -filenametemplate "\"[entity.classPackageName]\"/>.\"[entity.classNameWithoutPackage]\"/>" The important part being the end, where I set the filenames to work the old EOGenerator way... Unfortunately, when I put this into the Filename Template: field of the eogen inspector: ".value=\"[entity.classNameWithoutPackage]\"/>" (with or without the outside quotes) it still generates the base dirs. Even more of an issue, it still generates a file for EOGenericRecord (just weird). How can I get JavaEOGenerator to work from WOLips with the filenames the way I want? I can't find the command line WOLips is using anywhere to help debug... Thanks, Ken On Jan 18, 2008, at 3:10 PM, Mike Schrag wrote: I feel like an idiot, but I don't know what you're talking about. If you mean the EOGenerator prefs panel, I only have: Executable Path Template Folder Java Template Subclass Java Template I'm using 2.0.0.4118 because of that problem I had with WOFrameworks not showing up... http://wiki.objectstyle.org/confluence/display/WOL/Generating+EO +Java+Classes I'm actually not sure that JavaEOGenerator works properly with 4118, actually ... I have a fuzzy memory of having to fix some things with path management for it to work properly. ms ___ 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/kenlists% 40anderhome.com This email sent to [EMAIL PROTECTED] ___ 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/tcrawley% 40gmail.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Writing a beginners tutorial, some D2W questions on Webassistant and ERAtachment
I love D2W. That was actually how I started my first big WebObject project. I kept on modeling and modeling and then running the model in D2W. It was a really great way to validate the model, the majority of relationships etc. It was after that that I started really coding and then without D2W. However, my app uses D2W for a reporting function which is very cool. My users can query almost anything, pick the fields they want to display and then run the report. I even use custom D2W web components to link to my projects from the report, etc. Don't know what I would have done without D2W, Anjo and Travis on this list as there are some very ambiguous docs concerning it. Though it would be really, really, really nice if we could get the source for WebAssistant and wrote it to make simple rules, simple. It did use to screw up everything for me and I too had to drop it, especially after hand coding some rules. my 2¢ James Cicenia ___ 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 [EMAIL PROTECTED]
Re: Using JavaEOGenerator w/ WOLips
Sorry .. You're beyond my JavaEOGenerator experience at this point. I use Velocity EOGenerator. ms On Jan 21, 2008, at 9:35 AM, Ken Anderson wrote: Mike, OK - I'm still having trouble here. I can successfully run JavaEOGenerator the way I want (without the 'base' prepended before the filename) using this command line: /Developer/Applications/JavaEOGenerator.woa/JavaEOGenerator -model ~/ testing/Commoditrack.eomodeld -templatedir ~/testing -javatemplate JavaSourceEOF52.eotemplate -subclassjavatemplate JavaSubclassSourceEOF5.eotemplate -packagedirs -java - subclassdestination ~/testing/GeneratedEOs -destination ~/testing/ src -verbose -filenametemplate "\"[entity.classPackageName]\"/>.\"[entity.classNameWithoutPackage]\"/>" The important part being the end, where I set the filenames to work the old EOGenerator way... Unfortunately, when I put this into the Filename Template: field of the eogen inspector: ".value=\"[entity.classNameWithoutPackage]\"/>" (with or without the outside quotes) it still generates the base dirs. Even more of an issue, it still generates a file for EOGenericRecord (just weird). How can I get JavaEOGenerator to work from WOLips with the filenames the way I want? I can't find the command line WOLips is using anywhere to help debug... Thanks, Ken On Jan 18, 2008, at 3:10 PM, Mike Schrag wrote: I feel like an idiot, but I don't know what you're talking about. If you mean the EOGenerator prefs panel, I only have: Executable Path Template Folder Java Template Subclass Java Template I'm using 2.0.0.4118 because of that problem I had with WOFrameworks not showing up... http://wiki.objectstyle.org/confluence/display/WOL/Generating+EO+Java+Classes I'm actually not sure that JavaEOGenerator works properly with 4118, actually ... I have a fuzzy memory of having to fix some things with path management for it to work properly. ms ___ 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/kenlists%40anderhome.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: Using JavaEOGenerator w/ WOLips
Mike, OK - I'm still having trouble here. I can successfully run JavaEOGenerator the way I want (without the 'base' prepended before the filename) using this command line: /Developer/Applications/JavaEOGenerator.woa/JavaEOGenerator -model ~/ testing/Commoditrack.eomodeld -templatedir ~/testing -javatemplate JavaSourceEOF52.eotemplate -subclassjavatemplate JavaSubclassSourceEOF5.eotemplate -packagedirs -java - subclassdestination ~/testing/GeneratedEOs -destination ~/testing/src - verbose -filenametemplate "\"[entity.classPackageName]\"/>.\"[entity.classNameWithoutPackage]\"/>" The important part being the end, where I set the filenames to work the old EOGenerator way... Unfortunately, when I put this into the Filename Template: field of the eogen inspector: ".\"[entity.classNameWithoutPackage]\"/>" (with or without the outside quotes) it still generates the base dirs. Even more of an issue, it still generates a file for EOGenericRecord (just weird). How can I get JavaEOGenerator to work from WOLips with the filenames the way I want? I can't find the command line WOLips is using anywhere to help debug... Thanks, Ken On Jan 18, 2008, at 3:10 PM, Mike Schrag wrote: I feel like an idiot, but I don't know what you're talking about. If you mean the EOGenerator prefs panel, I only have: Executable Path Template Folder Java Template Subclass Java Template I'm using 2.0.0.4118 because of that problem I had with WOFrameworks not showing up... http://wiki.objectstyle.org/confluence/display/WOL/Generating+EO+Java+Classes I'm actually not sure that JavaEOGenerator works properly with 4118, actually ... I have a fuzzy memory of having to fix some things with path management for it to work properly. ms ___ 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/kenlists%40anderhome.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: NSTimestamp mapped to DATE for mysql
Hi Lachlan, Solved! ... pass time zone in user.timezone, don't set in code Thanks for going into some detail in your reply. On 19 Jan 2008, at 12:32, Lachlan Deck wrote: On 18/01/2008, at 2:44 AM, John Pollard wrote: Many thanks for your reply. I do do all the default timezone setting in my application, client and server side. However, I found SimpleDateTimes used for conversions don't use the system timezone and you also have to set it on these explicitly. I currently set it to London/Europe. Hmm. Firstly, are you certain you're setting the runtime TimeZone for java correctly? Because SimpleDateFormat will use a Calendar initiated with TimeZone.getDefault(), and Locale for that matter. I was setting it much as you do in your code, but I have now worked out that my SimpleDateFormat was being statically initialised before I was setting the default TimeZone. That wasn't my main problem exactly, but does explain why I thought wrongly that SimpleDateFormat wasn't using the default time zone. Secondly, setting it to London/Europe for parsing/formatting dates is your problem. This is the rule of thumb that works for working with dates (as opposed to datetimes): 'Dates are dates are dates. They do not have timezones. They are like constants. They don't change.' My birthdate, for example, doesn't change should I travel to somewhere with a different timezone. The rest of your reply mainly drills home the perils of storing a date with no time in conjunction with using a non GMT timestamp. That message has certainly got through. I have now finally solved this. Setting the time zone in code on both server and client sides of my application was not enough. It was the first thing I did in code, but apparently not soon enough. It may be that my own experience with my statically initialised SimpleDateFormat is a clue to what is happening, but some underlying WO code still operates in the wrong time zone (BST dates arrive back on my client 1 hour shifted). So somehow my system default time zone (Europe/London) was still getting a hold on parts of my application. The solution... Pass the following to the java VM for both my server and client side applications: -Duser.timezone=GMT So whatever bits of my WO app were picking up the default time zone from my box (Europe/London), now don't, they use GMT instead and it works. I will strip out all my attempts to set the timezone in code as they appear to miss the boat (note Java Client application). John ___ 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 [EMAIL PROTECTED]
Re: Writing a beginners tutorial, some D2W questions on Webassistant and ERAtachment
On 20 jan 2008, at 21:35, Anjo Krank wrote: Am 20.01.2008 um 21:24 schrieb Lachlan Deck: I agree. If you start your tutorial by saying that "you'll need a deep understanding of WO/EOF that'll take you 5 years or so before you touch D2*" they'll never come back. Maybe they should... I remember I re-"wrote" my first D2W app about 5 times because I just couldn't figure out what went wrong. I agree with Guido here, even though I'd wish I didn't have to: D2W *looks* like a beginner tool, but as the assistant is unmaintained and broken for years now, it really, really is not. They way it is now, you simply can't do more than a beefed up "Hello World" without Wonder (or at least fix the bugs we fixed, which is *highly* unlikely). I suggest you report bugs on the assistant to Apple or pressure them to donate the source. Then we might get somewhere with the Assistant. Cheers, Anjo Radar 5696685 ___ 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/johan%40netsense.nl This email sent to [EMAIL PROTECTED] Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6273852 ___ 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 [EMAIL PROTECTED]
Re: Writing a beginners tutorial
On 21 jan 2008, at 10:59, elni wrote: Hi there. I am an experienced developer but an absolute WebObjects Newbie. What I found deeply lacking in the WO world is the availability of Screen casts. Did you consider to simply do some screen casts instead of writing tutorials? No need to be an entertainer but you can still get your message across much faster. The human brain is designed to learn much faster by watching someone else solving some kind of problem. Actually, there are some. Look at http://www.wocommunity.org/ The reason I do not want a screen cast for a tutorial is that I am of a generation that prefers to read: I know it is very old hat that one wants to go back to a previous segment, without having to listen to all the stuff in between that you have already heard several times, but that is all possible with this technology called paper reading. Isn't that cool? (quoting Steve J.) No seriously, I think screen cast would be an option if the manual is more or less stable. At the moment I am still in the building and testing phase of the example, to try to get into it all the things that people would like to know in a beginner's tutorial on WebObjects and WOLips developing. Sometimes that requires reshuffling information, perhaps putting D2W on the back burner etc. As soon as it is a little more stable, I'd consider it. If only Anjo would like to comment with a heavy german accent, and Pascal with a heavy french accent, we could do a WebObjects Allo Allo!... If things get really complex, release a new Screencast every other week that builds up on the last one. I use SubSonic (Open-Source ORM) a lot and the creator cranks out nice Screen casts on a regular basis (http://www.subsonicproject.com/). Just my 2 cents... El ___ 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/johan%40netsense.nl This email sent to [EMAIL PROTECTED] Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6273852 ___ 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 [EMAIL PROTECTED]
Re: Unique Fields in Database
Hi Stuart, Thanks for your reply. The separate table is a workable solution. And I think that my stored procedure can take care of all the housekeeping so that all WO has to concentrate on is inserting the received value into a database: something it does rather well. I think that your second idea of checking for the value before insert is prone to a 0.1% chance of another instance inserting the same random number in between you checking the DB and inserting into the DB. I don't think that WO supports SQL transaction-based mode of operation (although am happy to be educated on this point if it does). I'm not even sure if RawRow based operations can be coerced into using transactions? Using your first idea though, means that I don't need to go down this route. I'd still be interested, in general, in how to avoid these 'millisecond' windows of potential disaster between a read and a write request. .neilmac On 21 Jan 2008, at 05:15, Stuart Parker wrote: Neil Create a table with as many unique values as you will ever need. When you need one, grab it from the table and delete it so it can't be used again. Instead of looking for an exception when inserting the code, just check that the value you are about to insert does not exist in the new table before you call saveChanges. cheers Stuart On 21/01/2008, at 1:06 PM, Neil MacLennan wrote: Following on from the postings on subject, "Avoiding duplicate records" can I get my understanding right? (so that I don't waste any more time trying to fix what can't be fixed): I'm looking for, say, a six-character unique field in my database record. I generate this randomly so that each is unpredictable (at least within 36^6 guesses). As I understand it, there's no way to: i) generate the random character string, ii) check for uniqueness in the database iii) insert it into the database with the guarantee that no other instance has co-incidentally inserted the same string in the milliseconds between ii) and iii) Currently I have a stored procedure (in MySQL) finding me a free random string (I figure that this will be quicker than WO trying to find me one) and then inserting that String into my EO and saving it. I then look for a EOGeneralAdaptorException on saveChanges() and parse it for MySQL's error code for failing a UNIQUE constraint on the DB (error code: 1062). If an exception is thrown, I go back an look for another free string from the stored procedure. I do this in a loop repeating 50 times, at which point I give up and throw the Exception right up to the user interface level as a "problem". I'll only be using 0.1% of the available key space for a 6- character alpha-num string, so I figure that a loop of 50 will be sufficient to always find me an available string. But, in the general case, it just seems "undesirable" as a solution. Is this the best I can hope for? .neilmac ___ 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 [EMAIL PROTECTED]
Re: Writing a beginners tutorial
Hi there. I am an experienced developer but an absolute WebObjects Newbie. What I found deeply lacking in the WO world is the availability of Screen casts. Did you consider to simply do some screen casts instead of writing tutorials? No need to be an entertainer but you can still get your message across much faster. The human brain is designed to learn much faster by watching someone else solving some kind of problem. If things get really complex, release a new Screencast every other week that builds up on the last one. I use SubSonic (Open-Source ORM) a lot and the creator cranks out nice Screen casts on a regular basis (http://www.subsonicproject.com/). Just my 2 cents... El ___ 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 [EMAIL PROTECTED]
Re: Unique Fields in Database
Thanks for the suggestions. __UUID__ The problem is that a UUID is too long at 32 hex chars, and shortening a freshly generated UUID doesn't guarantee uniqueness any more. __MySQL AutoIncrement__ This will then give me the next 'guessable' ID in the sequence, which presents a security issue. My 6-character codes are customer-facing. I could append an incrementing integer to a random string of characters to create a 'random' incrementing code number e.g. DYAV2-56, ICV3G-57 but when I get to large numbers, which I will, then FS8W8-18532, begins get too long again to be a useful customer-facing identifier. It also gives away their position in the sales sequence, which I'd rather avoid. I could perhaps turn the incrementing integer into hex, I save one character space on average and the number in the sequence is less visible to the average Joe. I'll still need to increase the overall string length so that the next number in the sequence isn't easily computed. I'll happily save the discussion on how to implement secure-customer- facing-fields to an [OT] thread, but in order to stay relevant to this list, I'm more interested in data uniqueness between WO and the database. Cheers, .neilmac On 21 Jan 2008, at 03:48, Jerome Chan wrote: If you are using mysql, can you use an incrementing integer ? On 21 Jan 2008, at 02:49, Jake MacMullin wrote: Have you thought about using a Universally Unique Identifier (UUID)? http://java.sun.com/j2se/1.5.0/docs/api/java/util/UUID.html Regards, Jake On 21/01/2008, at 1:06 PM, Neil MacLennan wrote: Following on from the postings on subject, "Avoiding duplicate records" can I get my understanding right? (so that I don't waste any more time trying to fix what can't be fixed): I'm looking for, say, a six-character unique field in my database record. I generate this randomly so that each is unpredictable (at least within 36^6 guesses). As I understand it, there's no way to: i) generate the random character string, ii) check for uniqueness in the database iii) insert it into the database with the guarantee that no other instance has co-incidentally inserted the same string in the milliseconds between ii) and iii) Currently I have a stored procedure (in MySQL) finding me a free random string (I figure that this will be quicker than WO trying to find me one) and then inserting that String into my EO and saving it. I then look for a EOGeneralAdaptorException on saveChanges() and parse it for MySQL's error code for failing a UNIQUE constraint on the DB (error code: 1062). If an exception is thrown, I go back an look for another free string from the stored procedure. I do this in a loop repeating 50 times, at which point I give up and throw the Exception right up to the user interface level as a "problem". I'll only be using 0.1% of the available key space for a 6- character alpha-num string, so I figure that a loop of 50 will be sufficient to always find me an available string. But, in the general case, it just seems "undesirable" as a solution. Is this the best I can hope for? .neilmac ___ 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/jmacmullin%40mac.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]