Re: Re: fetching on joined table
Hi Chuck, Tables A, B, C, D haven't relationship but same fileds name. When i'am using raw rows to translate my sql in webobjects and get my data, I don't have EOF entities but dictionnaries. So I would like to know what the best practice on my case? create view with my sql request on database and fetching on view in my model? Thanks for your help. Ray Message du : 11/04/2011 De : Chuck Hill ch...@global-village.net A : naneon.raym...@neuf.fr Copie à : webobjects-dev@lists.apple.com Sujet : Re: fetching on joined table Hello Ray, On Apr 8, 2011, at 5:16 PM, naneon.raym...@neuf.fr wrote: Hi, I'm newbie on WebObjects and I have big problem to fetching on joined table. Example : I have my SQL like that : A good rule with WebObjects is If you are thinking about SQL, you are doing it wrong. There are times (i.e. when optimizing) when you do need to think about the SQL, but thinking in terms of objects is usually the better way. select a.id b.id as ID, c.option as option, decode(d.no, 1, 'one', 2, 'two', 'unknow') as order WebObjects (EOF) does not do mixed table selects like this (unless you are selecting Raw Rows). It selects whole rows of tables and makes them into related Java objects. from ta a, tb b, tc c, td d where c.option in ('1', '2','3') and c.option = b.option How to translate this SQL request in EOF using qualifier or spec qualifier? Thanks for your help. What are the relationships in the model between A, B, C, and D? What are you trying to fetch? Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Tr: Re: Re: fetching on joined table
Hi Chuck, Tables A, B, C, D haven't relationship but same fileds name. When i'am using raw rows to translate my sql in webobjects and get my data, I don't have EOF entities but dictionnaries. So I would like to know what the best practice on my case? create view with my sql request on database and fetching on view in my model? Thanks for your help. Ray Message du : 11/04/2011 De : Chuck Hill ch...@global-village.net A : naneon.raym...@neuf.fr Copie à : webobjects-dev@lists.apple.com Sujet : Re: fetching on joined table Hello Ray, On Apr 8, 2011, at 5:16 PM, naneon.raym...@neuf.fr wrote: Hi, I'm newbie on WebObjects and I have big problem to fetching on joined table. Example : I have my SQL like that : A good rule with WebObjects is If you are thinking about SQL, you are doing it wrong. There are times (i.e. when optimizing) when you do need to think about the SQL, but thinking in terms of objects is usually the better way. select a.id b.id as ID, c.option as option, decode(d.no, 1, 'one', 2, 'two', 'unknow') as order WebObjects (EOF) does not do mixed table selects like this (unless you are selecting Raw Rows). It selects whole rows of tables and makes them into related Java objects. from ta a, tb b, tc c, td d where c.option in ('1', '2','3') and c.option = b.option How to translate this SQL request in EOF using qualifier or spec qualifier? Thanks for your help. What are the relationships in the model between A, B, C, and D? What are you trying to fetch? Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: responseForComponentWithName() and session
Hi Amedeo, After invoking the child component I use response.contentString() component to retrieve the html generated and insert it programmatically somewhere in the main component html output. With pageWithName doesn't work, I have many exception of type lookup of unknown key in the child component. It seems that WO is searching in the child component the same key of the parent component. Such behavior does not happen with responseForComponentWithName. There isa only the new session problem Regards Paolo Il giorno 10/apr/2011, alle ore 22.33, Amedeo Mantica ha scritto: why not: WOComponent myPage = pageWithName(ComponentName.class); . . WOResponse response = myPage.generateResponse(); return response; regards Amedeo On 10/apr/2011, at 20.31, Paolo Sommaruga wrote: Hi, I have an application in which inside in a component I need to call a child component invoked programmatically in the java code of the parent component. I use (WOApplication.application ()). responseForComponentWithName(ComponentName, null null null uriPrefix, null); and it works. But I see that the component invoked programmatically uses a new session than the one of the calling component. Is there a way to call responseForComponentWithName() in order to open the new component in the same session of the caller component ? Thanks Paolo ___ 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/amedeomailing%40insigno.it This email sent to amedeomail...@insigno.it ___ 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/psomma%40jpaso.com This email sent to pso...@jpaso.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JProfiler 6.2.2 [Solved]
Hi Simon Thanks for this. I have now solved the issue although I am not 100% sure what the problem was. Any way I uninstalled JProfiler as a feature on Eclipse and uninstalled JProfiler itself before re-installing JProfiler. However this time I did NOT opt to integrate with Eclipse during the JProfiler setup routine, which I had done previously. This time things work as expected. I am guessing that the WOLips JProfiler plugin negates the need to integrate from JProfiler itself, and if you do both it messes thing up. I probably didn't read some instructions somewhere! Regards Giles hey giles we've done some extensive work with jprofiler this week with no problems at all. only difference is we're on java 1.6.0_22. otherwise same jprofiler version and same eclipse version. simon On 8 April 2011 20:04, Giles Palmer li...@cedarstone.co.uk wrote: Hi Having problems getting JProfiler 6.2.2 to run from Eclipse 3.6.1 with WOLips 3.6.6219 with java.version=1.6.0_24 When I try to profile the app in the console I just get.. JProfiler Protocol version 32 JProfiler Using JVMPI JProfiler The Java Virtual Machine Profiling Interface (JVMPI) is not present. Exiting. ERROR: JVMPI, an experimental interface, is no longer supported. Please use the supported interface: the JVM Tool Interface (JVM TI). Any ideas, how do I set things to use JVM TI? Thanks Giles ___ 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/simon%40potwells.co.uk This email sent to si...@potwells.co.uk ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERCalendar usage
I have tried to modify the current ERCalendar framework to work on top of iCal4j, but I wasn't able to make it work without breaking the current methods, and I don't want to break existing code. I'm working on a ERCalendar2 framework. Anyone using the ERCalendar framework from Wonder? That framework should at least use ical4j to create the event object, it would make it easier and more solid that's for sure. -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : pascal_robert ___ 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%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
wolips moved to github
thanks to quinton again ... https://github.com/wolips/wolips 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 arch...@mail-archive.com
Re: wolips moved to github
Awesome! Thanks Q and to any others who may have assisted (^_^) Ramsey On Apr 11, 2011, at 7:37 AM, Mike Schrag wrote: thanks to quinton again ... https://github.com/wolips/wolips 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/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: fetching on joined table
On Apr 11, 2011, at 3:12 AM, naneon.raym...@neuf.fr wrote: Hi Chuck, Tables A, B, C, D haven't relationship but same fileds name. If they don't have modeled relationships, then you can't use qualifiers. When i'am using raw rows to translate my sql in webobjects and get my data, I don't have EOF entities but dictionnaries. So I would like to know what the best practice on my case? create view with my sql request on database and fetching on view in my model? I think the best practice would be to change the model (and the schema too, if needed) so that there are relationships and you are fetching entities. I very rarely need to do a raw row fetch. If you give us more information on the data, maybe we can suggest a better model. Chuck Message du : 11/04/2011 De : Chuck Hill ch...@global-village.net A : naneon.raym...@neuf.fr Copie à : webobjects-dev@lists.apple.com Sujet : Re: fetching on joined table Hello Ray, On Apr 8, 2011, at 5:16 PM, naneon.raym...@neuf.fr wrote: Hi, I'm newbie on WebObjects and I have big problem to fetching on joined table. Example : I have my SQL like that : A good rule with WebObjects is If you are thinking about SQL, you are doing it wrong. There are times (i.e. when optimizing) when you do need to think about the SQL, but thinking in terms of objects is usually the better way. select a.id b.id as ID, c.option as option, decode(d.no, 1, 'one', 2, 'two', 'unknow') as order WebObjects (EOF) does not do mixed table selects like this (unless you are selecting Raw Rows). It selects whole rows of tables and makes them into related Java objects. from ta a, tb b, tc c, td d where c.option in ('1', '2','3') and c.option = b.option How to translate this SQL request in EOF using qualifier or spec qualifier? Thanks for your help. What are the relationships in the model between A, B, C, and D? What are you trying to fetch? Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: responseForComponentWithName() and session
I have an application in which inside in a component I need to call a child component invoked programmatically in the java code of the parent component. I have a feeling that you are doing something the wrong (and overly difficult) way. Could you use a WOSwitchComponent or WOComponentContent? Chuck On Apr 11, 2011, at 4:07 AM, Paolo Sommaruga wrote: Hi Amedeo, After invoking the child component I use response.contentString() component to retrieve the html generated and insert it programmatically somewhere in the main component html output. With pageWithName doesn't work, I have many exception of type lookup of unknown key in the child component. It seems that WO is searching in the child component the same key of the parent component. Such behavior does not happen with responseForComponentWithName. There isa only the new session problem Regards Paolo Il giorno 10/apr/2011, alle ore 22.33, Amedeo Mantica ha scritto: why not: WOComponent myPage = pageWithName(ComponentName.class); . . WOResponse response = myPage.generateResponse(); return response; regards Amedeo On 10/apr/2011, at 20.31, Paolo Sommaruga wrote: Hi, I have an application in which inside in a component I need to call a child component invoked programmatically in the java code of the parent component. I use (WOApplication.application ()). responseForComponentWithName(ComponentName, null null null uriPrefix, null); and it works. But I see that the component invoked programmatically uses a new session than the one of the calling component. Is there a way to call responseForComponentWithName() in order to open the new component in the same session of the caller component ? Thanks Paolo ___ 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/amedeomailing%40insigno.it This email sent to amedeomail...@insigno.it ___ 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/psomma%40jpaso.com This email sent to pso...@jpaso.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
501 user for wo apps?
I'm launching a UNIX script to generate image thumbnails and troubleshooting with a new server setup. Unless I'm mistaken, the script is unable to launch due to permissions and WO seems to be running user 501 without a username. Now I can't recall if that's how it used to be, should I be running uid 501 with no account/username? I don't want a security disaster, but I do need to launch some scripts that require a decent shell env. Advice? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: 501 user for wo apps?
user 501 without a username I will guess that showing the UID instead of the user name means that you copied a file from one machine to another and did not chown it to a user on the second machine. On Apr 11, 2011, at 11:47 AM, Jesse Tayler wrote: I'm launching a UNIX script to generate image thumbnails and troubleshooting with a new server setup. Unless I'm mistaken, the script is unable to launch due to permissions and WO seems to be running user 501 without a username. Now I can't recall if that's how it used to be, should I be running uid 501 with no account/username? I don't want a security disaster, but I do need to launch some scripts that require a decent shell env. Advice? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: 501 user for wo apps?
Le 2011-04-11 à 14:47, Jesse Tayler a écrit : I'm launching a UNIX script to generate image thumbnails and troubleshooting with a new server setup. Unless I'm mistaken, the script is unable to launch due to permissions and WO seems to be running user 501 without a username. Now I can't recall if that's how it used to be, should I be running uid 501 with no account/username? Normally, the user who run wotaskd and Monitor (and your apps) is appserver. I guess that user is not on your new server, and that since no other user have a ID of 501, it's running on the ID of the user coming from the .tar.gz of wotaskd and Monitor. So, you should create a appserver user and use 501 as the id for this user (or create the user and do a chown -R appserver on the directory where WO and your apps are). I don't want a security disaster, but I do need to launch some scripts that require a decent shell env. Advice? ___ 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%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERCalendar usage
First workable version of ERCalendar2 is in my fork of Wonder: https://github.com/pascalrobert/wonder/tree/master/Frameworks/Misc/ERCalendar2 Yes, I know, the enums have some strings in French in it :-) I'm planning to remove them and use ERXLocalizer instead. I have tried to modify the current ERCalendar framework to work on top of iCal4j, but I wasn't able to make it work without breaking the current methods, and I don't want to break existing code. I'm working on a ERCalendar2 framework. Anyone using the ERCalendar framework from Wonder? That framework should at least use ical4j to create the event object, it would make it easier and more solid that's for sure. -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : pascal_robert ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERCalendar usage
just as a git aside on best practices ... you probably should be working on this feature in a topic branch rather than your master. imagine if you were working on two different features at the same time -- you wouldn't want them both on master. instead you'd want a branch per feature. ms On Apr 11, 2011, at 3:01 PM, Pascal Robert wrote: First workable version of ERCalendar2 is in my fork of Wonder: https://github.com/pascalrobert/wonder/tree/master/Frameworks/Misc/ERCalendar2 Yes, I know, the enums have some strings in French in it :-) I'm planning to remove them and use ERXLocalizer instead. I have tried to modify the current ERCalendar framework to work on top of iCal4j, but I wasn't able to make it work without breaking the current methods, and I don't want to break existing code. I'm working on a ERCalendar2 framework. Anyone using the ERCalendar framework from Wonder? That framework should at least use ical4j to create the event object, it would make it easier and more solid that's for sure. -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : pascal_robert ___ 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%40pobox.com This email sent to msch...@pobox.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: 501 user for wo apps?
Right, but now for some reason I'm running out of memory but I note monitor has increased memory settings? Or is this because I'm trying to use a micro instance of an amazon server? the command line seems to run from the terminal, but I get this complaint in the WO app log: callUnixProcess [/home/appserver/bin/imagesize.sh 64 jpg] java.io.IOException: Cannot run program /home/appserver/bin/imagesize.sh: java.io.IOException: error=12, Cannot allocate memory here's monitor settings, includes proper memory no? unrelated? -Xms128m -Xmx256m -DWOAllowsConcurrentRequestHandling=true On Apr 11, 2011, at 2:59 PM, Pascal Robert wrote: Le 2011-04-11 à 14:47, Jesse Tayler a écrit : I'm launching a UNIX script to generate image thumbnails and troubleshooting with a new server setup. Unless I'm mistaken, the script is unable to launch due to permissions and WO seems to be running user 501 without a username. Now I can't recall if that's how it used to be, should I be running uid 501 with no account/username? Normally, the user who run wotaskd and Monitor (and your apps) is appserver. I guess that user is not on your new server, and that since no other user have a ID of 501, it's running on the ID of the user coming from the .tar.gz of wotaskd and Monitor. So, you should create a appserver user and use 501 as the id for this user (or create the user and do a chown -R appserver on the directory where WO and your apps are). I don't want a security disaster, but I do need to launch some scripts that require a decent shell env. Advice? ___ 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%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
[MEETING] WO-NoVA is NEXT TUESDAY (4/19/2011)
Greetings All, This month's WO-NoVA meeting is scheduled for Tuesday April 19, 2011 at 6:30 PM at K12's offices The topic will be using GIT (in honor of the recent changes to the repository for WOLips and Wonder using GIT instead of SVN). Dave Avendasora will be the front man for the meeting, as I, tragically, will be in Europe. Maybe I'll call in! Or not. Anyway, I'm sure it will be fascinating, and informative enough that I'll be able to subsequently annoy Dave with any git related questions I might have. As always, RSVPs are appreciated, and weirdly enough, K12 is still located at: K12, Inc 2300 Corporate Park Drive Herndon, VA 20171 http://maps.google.com/maps?f=qsource=s_qhl=engeocode=q=2300+Corporate+Park+Dr,+Herndon,+VA+20171sll=37.0625,-95.677068sspn=55.016555,76.992187ie=UTF8hq=hnear=2300+Corporate+Park+Dr,+Herndon,+Fairfax,+Virginia+20171z=17 Andrew Kinnie ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: responseForComponentWithName() and session
why u would like to do it ? put programmatically in html? what is your goal? On 11/apr/2011, at 13.07, Paolo Sommaruga wrote: Hi Amedeo, After invoking the child component I use response.contentString() component to retrieve the html generated and insert it programmatically somewhere in the main component html output. With pageWithName doesn't work, I have many exception of type lookup of unknown key in the child component. It seems that WO is searching in the child component the same key of the parent component. Such behavior does not happen with responseForComponentWithName. There isa only the new session problem Regards Paolo Il giorno 10/apr/2011, alle ore 22.33, Amedeo Mantica ha scritto: why not: WOComponent myPage = pageWithName(ComponentName.class); . . WOResponse response = myPage.generateResponse(); return response; regards Amedeo On 10/apr/2011, at 20.31, Paolo Sommaruga wrote: Hi, I have an application in which inside in a component I need to call a child component invoked programmatically in the java code of the parent component. I use (WOApplication.application ()). responseForComponentWithName(ComponentName, null null null uriPrefix, null); and it works. But I see that the component invoked programmatically uses a new session than the one of the calling component. Is there a way to call responseForComponentWithName() in order to open the new component in the same session of the caller component ? Thanks Paolo ___ 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/amedeomailing%40insigno.it This email sent to amedeomail...@insigno.it ___ 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/psomma%40jpaso.com This email sent to pso...@jpaso.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Attempting to create a D2W front end for my ERREST app
Greetings: I am attempting to create a quick and easy D2W front end for my Rest app built using ERRest. I have the EOModel and eo classes in their own framework, while the rest of the . . . er . . . rest stuff is in it's own project which links the EO framework and seems to work fine with no db issues. I therefore created a new Wonder D2W application, and linked the EO framework and ran it. (it's using the ERModern default skin for now, though I'll likely change that to a copied skin later). The db is MySQL, and works fine for the rest app. When I run the plain vanilla, out of the box wonder d2w app, it shows the expected front page with the appropriate entities, but when I search for something, I get this exception. Presumably there is something else I was supposed to do but forgot. java.lang.IllegalStateException: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@4322394: failed to open database channel. Check your connection dictionary, and ensure your database is correctly configured. [2011-4-11 17:2:14 EDT] WorkerThread10 java.lang.IllegalStateException: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@4322394: failed to open database channel. Check your connection dictionary, and ensure your database is correctly configured. at com.webobjects.eoaccess.EODatabaseContext._obtainOpenChannel(EODatabaseContext.java:1967) at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3054) at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3195) at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488) at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069) at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1206) at com.webobjects.eoaccess.EODatabaseDataSource.fetchObjects(EODatabaseDataSource.java:589) at com.webobjects.appserver.WODisplayGroup.fetch(WODisplayGroup.java:2132) at er.extensions.appserver.ERXDisplayGroup.fetch(ERXDisplayGroup.java:124) ... ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Attempting to create a D2W front end for my ERREST app
Is the MySQL connector jar in the classpath? On 2011-04-11, at 5:11 PM, Andrew Kinnie wrote: Greetings: I am attempting to create a quick and easy D2W front end for my Rest app built using ERRest. I have the EOModel and eo classes in their own framework, while the rest of the . . . er . . . rest stuff is in it's own project which links the EO framework and seems to work fine with no db issues. I therefore created a new Wonder D2W application, and linked the EO framework and ran it. (it's using the ERModern default skin for now, though I'll likely change that to a copied skin later). The db is MySQL, and works fine for the rest app. When I run the plain vanilla, out of the box wonder d2w app, it shows the expected front page with the appropriate entities, but when I search for something, I get this exception. Presumably there is something else I was supposed to do but forgot. java.lang.IllegalStateException: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@4322394: failed to open database channel. Check your connection dictionary, and ensure your database is correctly configured. [2011-4-11 17:2:14 EDT] WorkerThread10 java.lang.IllegalStateException: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@4322394: failed to open database channel. Check your connection dictionary, and ensure your database is correctly configured. at com.webobjects.eoaccess.EODatabaseContext._obtainOpenChannel(EODatabaseContext.java:1967) at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3054) at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3195) at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488) at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069) at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1206) at com.webobjects.eoaccess.EODatabaseDataSource.fetchObjects(EODatabaseDataSource.java:589) at com.webobjects.appserver.WODisplayGroup.fetch(WODisplayGroup.java:2132) at er.extensions.appserver.ERXDisplayGroup.fetch(ERXDisplayGroup.java:124) ... ___ 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/dleber_wodev%40codeferous.com This email sent to dleber_wo...@codeferous.com ;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 twitter:http://twitter.com/rebeld -- 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 arch...@mail-archive.com
Re: responseForComponentWithName() and session
I don't remember exactly but Paolo I think you need to configure your application not to create sessions when you access a component. You may be able to find some article on sessionless login for a clue. Or you may need to pass appropriate params in your method call instead of null null null... BTW, the stuff you are trying to do will turn into nightmare when you would need to take care of the component bindings programatically. I would suggest to change your approach to get the desired results. Good luck! Farrukh Amedeo Mantica amedeomail...@insigno.it wrote: why u would like to do it ? put programmatically in html? what is your goal? On 11/apr/2011, at 13.07, Paolo Sommaruga wrote: Hi Amedeo, After invoking the child component I use response.contentString() component to retrieve the html generated and insert it programmatically somewhere in the main component html output. With pageWithName doesn't work, I have many exception of type lookup of unknown key in the child component. It seems that WO is searching in the child component the same key of the parent component. Such behavior does not happen with responseForComponentWithName. There isa only the new session problem Regards Paolo Il giorno 10/apr/2011, alle ore 22.33, Amedeo Mantica ha scritto: why not: WOComponent myPage = pageWithName(ComponentName.class); . . WOResponse response = myPage.generateResponse(); return response; regards Amedeo On 10/apr/2011, at 20.31, Paolo Sommaruga wrote: Hi, I have an application in which inside in a component I need to call a child component invoked programmatically in the java code of the parent component. I use (WOApplication.application ()). responseForComponentWithName(ComponentName, null null null uriPrefix, null); and it works. But I see that the component invoked programmatically uses a new session than the one of the calling component. Is there a way to call responseForComponentWithName() in order to open the new component in the same session of the caller component ? Thanks Paolo ___ 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/amedeomailing%40insigno.it This email sent to amedeomail...@insigno.it ___ 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/psomma%40jpaso.com This email sent to pso...@jpaso.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ 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/farrukh.ijaz%40fuegodigitalmedia.com This email sent to farrukh.i...@fuegodigitalmedia.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Attempting to create a D2W front end for my ERREST app
D'oh! Thanks. On Apr 11, 2011, at 5:20 PM, David LeBer wrote: Is the MySQL connector jar in the classpath? On 2011-04-11, at 5:11 PM, Andrew Kinnie wrote: Greetings: I am attempting to create a quick and easy D2W front end for my Rest app built using ERRest. I have the EOModel and eo classes in their own framework, while the rest of the . . . er . . . rest stuff is in it's own project which links the EO framework and seems to work fine with no db issues. I therefore created a new Wonder D2W application, and linked the EO framework and ran it. (it's using the ERModern default skin for now, though I'll likely change that to a copied skin later). The db is MySQL, and works fine for the rest app. When I run the plain vanilla, out of the box wonder d2w app, it shows the expected front page with the appropriate entities, but when I search for something, I get this exception. Presumably there is something else I was supposed to do but forgot. java.lang.IllegalStateException: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@4322394: failed to open database channel. Check your connection dictionary, and ensure your database is correctly configured. [2011-4-11 17:2:14 EDT] WorkerThread10 java.lang.IllegalStateException: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@4322394: failed to open database channel. Check your connection dictionary, and ensure your database is correctly configured. at com.webobjects.eoaccess.EODatabaseContext._obtainOpenChannel(EODatabaseContext.java:1967) at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3054) at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3195) at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:488) at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4069) at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java:1206) at com.webobjects.eoaccess.EODatabaseDataSource.fetchObjects(EODatabaseDataSource.java:589) at com.webobjects.appserver.WODisplayGroup.fetch(WODisplayGroup.java:2132) at er.extensions.appserver.ERXDisplayGroup.fetch(ERXDisplayGroup.java:124) ... ___ 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/dleber_wodev%40codeferous.com This email sent to dleber_wo...@codeferous.com ;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 twitter: http://twitter.com/rebeld -- 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 arch...@mail-archive.com
Re: Problems with login and multiple instances
Thanks Chuck I think I've cracked it. Mark On 11 April 2011 05:40, Chuck Hill ch...@global-village.net wrote: Hi Mark, On Apr 10, 2011, at 4:31 PM, Mark Wardle wrote: Writing to a mailing list is always therapeutic, even before anyone has a chance to respond. :-) True, that. Now whenever I start hacking URLs like this in WebObjects, I think I'm clearly going about something the wrong way. Doesn't anyone else perform DA and component JIT by redirecting to a login page and then redirecting back to the original URL? With the above code, I'm hoping to remove all record of the application instance (unless its a minus one in which case one needs in when in direct connect/development). We do this in GVC.SiteMaker. I will attach the relevant classes. Doest that help? Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
[OT] Maquetta
For those who want a look at Dojo's widget, the Dojo Foundation have released a designer written with Dojo: http://maqetta.org It's a good way to try the different Dojo widgets in a graphical way. -- Pascal Robert prob...@macti.ca AIM/iChat : MacTICanada LinkedIn : http://www.linkedin.com/in/macti Twitter : pascal_robert ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com