Re: Snow Leopard, Java 1.7, WebObjects
On 30 jul. 2013, at 17:10, Chuck Hill ch...@global-village.net wrote: It is the application you need to do this in, not wotaskd. wotaskd uses a script to launch a new JVM for the app so changes to the JVM for wotaskd do not affect the application. Chuck Been there, done that: ostadeserver:MacOS root# cat MacOSClassPath.txt # JVM == /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java # JVMOptions == # JDB == jdb # JDBOptions == # ApplicationClass == nl.netsense.theaterres.Application I also add the arg in MacOSXServerClassPath.txt log: date: Tue Jul 30 17:52:37 CEST 2013 args: /Library/WebObjects/Applications/theaterres.woa/theaterres -WOHost localhost -WOPort 2009 -WOCachingEnabled YES -WODebuggingEnabled NO - WOOutputPath /Library/WebObjects/Logs/theaterresnew-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebe atEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMi n 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () -WOSessionTimeOut 3600 -WOApplicationName theaterresnew -WOMonitorEnabled YES -WONoPa use YES -Djava.awt.headless=true Reading MacOSClassPath.txt ... Launching theaterres.woa ... /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory=/System -DWOLoca lRootDirectory= -DWOUserDirectory=/Library/WebObjects/JavaApplications/wotaskd.woa -DWOEnvClassPath= -DWOApplicationClass=nl.netsense.th eaterres.Application -DWOPlatform=MacOS -Dcom.webobjects.pid=34753 -Djava.awt.headless=true -classpath WOBootstrap.jar com.webobjects._bootstr ap.WOBootstrap -WOHost localhost -WOPort 2009 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/theaterresne w-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOA daptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchP ath () -WOSessionTimeOut 3600 -WOApplicationName theaterresnew -WOMonitorEnabled YES -WONoPause YES -Djava.awt.headless=true Loading /Library/WebObjects/Applications/theaterres.woa/Contents/MacOS/MacOSClassPath.txt snip /Library/WebObjects/Extensions/ java.lang.UnsupportedClassVersionError: nl/netsense/theaterres/Application : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84) On 2013-07-30, at 2:21 AM, Johan Henselmans wrote: Op 30 jul. 2013, om 10:40 heeft Elizabeth Lynch l...@plsys.co.uk het volgende geschreven: Hi Johan You could try changing the Java reference in /Library/WebObjects/JavaApplications/wotaskd.woa/Contents/MacOS/MacOSClassPath.txt from # JVM == java to something more like # JVM == /System/Library/Frameworks/JavaVM.framework/Versions/1.7.25//Commands/ java I don't know for sure this is the right solution, but it seems like it would be worth a try. Tried it in /Library/WebObjects/JavaApplications/wotaskd.woa/Contents/MacOS/MacOSClassPath.txt and MacOSXServerClassPath.txt, and in the app's MacOSClassPath.txt. I am getting: Launching theaterres.woa ... /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory=/System -DWOLocalRootDirectory= -DWOUserDirectory=/Library/WebObjects/JavaApplications/wotaskd.woa -DWOEnvClassPath= -DWOApplicationClass=nl.netsense.theaterres.Application -DWOPlatform=MacOS -Dcom.webobjects.pid=23891 -Djava.awt.headless=true -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOHost localhost -WOPort 2001 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/theaterres-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16
Re: Snow Leopard, Java 1.7, WebObjects
Op 30 jul. 2013, om 17:10 heeft Chuck Hill ch...@global-village.net het volgende geschreven: It is the application you need to do this in, not wotaskd. wotaskd uses a script to launch a new JVM for the app so changes to the JVM for wotaskd do not affect the application. Chuck I also noticed this in the system log: === Jul 30 17:45:03 ostadeserver com.webobjects.wotaskd[23665]: 2013-07-30 17:45:03,127 WARN 19.19 MB/14.75 MB [WorkerThread9] logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:44) - Application 'theaterresnew-1' on 127.0.0.1:2009 stopped running at 2013-07-30 15:45:03 Etc/GMT. Jul 30 17:45:03 ostadeserver com.webobjects.wotaskd[23665]: The app's current state was: STARTING. Jul 30 17:45:03 ostadeserver com.webobjects.wotaskd[23665]: The app did not respond for 63501118983seconds which is greater than the allowed threshold of 12 seconds (Lifebeat Interval * WOAssumeApplicationIsDeadMultiplier) so it is assumed to be dead. Jul 30 17:45:03 ostadeserver com.webobjects.wotaskd[23665]: The last successful communication occurred at: 1-04-25 00:00:00 Etc/GMT. This may be the result of a crash or an intentional shutdown from outside of wotaskd Jul 30 17:53:36 ostadeserver com.webobjects.wotaskd[23665]: 2013-07-30 17:53:36,582 WARN 20.5 MB/13.44 MB [main] logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:44) - Application 'theaterresnew-1' on 127.0.0.1:2009 stopped running at 2013-07-30 15:53:36 Etc/GMT. Jul 30 17:53:36 ostadeserver com.webobjects.wotaskd[23665]: The app's current state was: STARTING. = = !! Jul 30 17:53:36 ostadeserver com.webobjects.wotaskd[23665]: The app did not respond for 63501119496seconds which is greater than the allowed threshold of 12 seconds (Lifebeat Interval * WOAssumeApplicationIsDeadMultiplier) so it is assumed to be dead. Jul 30 17:53:36 ostadeserver com.webobjects.wotaskd[23665]: The last successful communication occurred at: 1-04-25 00:00:00 Etc/GMT. This may be the result of a crash or an intentional shutdown from outside of wotaskd That is a lot of seconds. I assume this has nothing to do with the java 1.6 or 1.7 version, but it is odd… On 2013-07-30, at 2:21 AM, Johan Henselmans wrote: Op 30 jul. 2013, om 10:40 heeft Elizabeth Lynch l...@plsys.co.uk het volgende geschreven: Hi Johan You could try changing the Java reference in /Library/WebObjects/JavaApplications/wotaskd.woa/Contents/MacOS/MacOSClassPath.txt from # JVM == java to something more like # JVM == /System/Library/Frameworks/JavaVM.framework/Versions/1.7.25//Commands/ java I don't know for sure this is the right solution, but it seems like it would be worth a try. Tried it in /Library/WebObjects/JavaApplications/wotaskd.woa/Contents/MacOS/MacOSClassPath.txt and MacOSXServerClassPath.txt, and in the app's MacOSClassPath.txt. I am getting: Launching theaterres.woa ... /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory=/System -DWOLocalRootDirectory= -DWOUserDirectory=/Library/WebObjects/JavaApplications/wotaskd.woa -DWOEnvClassPath= -DWOApplicationClass=nl.netsense.theaterres.Application -DWOPlatform=MacOS -Dcom.webobjects.pid=23891 -Djava.awt.headless=true -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOHost localhost -WOPort 2001 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/theaterres-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () -WOSessionTimeOut 3600 -WOApplicationName theaterres -WOMonitorEnabled YES -WONoPause YES -Djava.awt.headless=true Loading /Library/WebObjects/Applications/theaterres.woa/Contents/MacOS/MacOSClassPath.txt Still at the end: java.lang.UnsupportedClassVersionError: nl/netsense/theaterres/Application : Unsupported major.minor version 51.0 Liz On 30 Jul 2013, at 07:30, Johan Henselmans jo...@netsense.nl wrote: Here's the situation: I have to use a framework which is java 1.7+ I have to use Snow Leopard I have to use WebObjects. I got this far: I am compiling on Mac Os 10.8, Eclipse 3.7, have set the Java Parameter on 1.7, compiles fine, app runs fine in 10.8 from wotaskd. On Snow Leopard: I Installed java 1.7.25 on Snow Leopard with Pacifist, it displays in Java Preferences, and I have set it to be the default JVM in JavaPreferences: PastedGraphic-1.png I installed wotaskd and womonitor form
Re: ImageIO Native Java 1.6 / Small Progress
at least. :-) Ramsey On Apr 2, 2013, at 9:43 AM, Tim Worman wrote: I'm not quite as passionate about it, but that's why I use homebrew. :-) Tim UCLA GSEIS On Apr 2, 2013, at 7:55 AM, Þór Sigurðsson th...@us.is wrote: Actually no - since macports and fink install dependant libraries that the system already has installed, it's hardly an enhancement since now you have _two_ or more sets of the same libraries which each needs its own method of updating. The net result of overusing fink/macports is a machine that requires more time to manage than to use - hardly a productive result (unless you don't care about security, updates or management, in which case it's perfectly fine). One should strive to keep the management footprint at a minimum. /Þór On 2.4.2013, at 14:34, Kieran Kelleher wrote: There .. fixed it for you ;) On Apr 2, 2013, at 9:32 AM, Þór Sigurðsson th...@us.is wrote: If you don't want to enhance your system with macports/fink, then you can use the cactuslabs build: http://cactuslab.com/imagemagick/ /Þór Fyrirvari á tölvupósti / e-mail disclaimer http://us.is/fyrirvari ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com This email sent to li...@thetimmy.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/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: https://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com This email sent to li...@thetimmy.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jlmiller%40kahalawai.com This email sent to jlmil...@kahalawai.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com This email sent to li...@thetimmy.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WOCommunity Association is now a non-profit corporation
On 30 jan. 2013, at 17:03, Pascal Robert prob...@macti.ca wrote: FYI, I got confirmation that the WOCommunity Association is now a non-profit corporation! We still have to open a bank account and write the by-laws, but at least the first part is done. It might be an idea for the United States people to hook up with this: http://spi-inc.org/projects/associated-project-howto/ It seems to be a nice way to combine tax deduction, and giving money. (I found this when looking for libreoffice 4.0 which was announced at FOSDEM 2013) If someone wants to contribute or comment the by-laws, I wrote a draft in the wiki: http://wiki.wocommunity.org/display/WOCOM/Organization+Incorporation Please be aware that we defined two classes of members: « The corporation is authorized to establish Class A members and Class B members as follows : (1) The Class A members shall be entitled to receive notice of and to attend all meetings of the members of the Corporation and each Class A member shall have one (1) vote at each such meeting, except for meetings at which only members of another class are entitled to vote separately as a class. (2) Except as otherwise provided by the Canada Not-for-Profit Corporations Act, S.C. 2009, c.23 the Class B members shall not be entitled to receive notice of, attend or vote at meetings of the members of the Corporation. » The by-laws needs to define who is going in each class. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Project Wonder cookbook
On 10 sep. 2012, at 19:53, Pascal Robert prob...@macti.ca wrote: Ok, so one of the objectives of WOCommunity for this year is to write a Project Wonder Cookbook. If you ever bought a O'Reilly Cookbook, you know what I'm talking about. If not, those books have a really simple purpose: to provide examples and answers for specific topics. Guess what? I already wrote a chapter: http://wiki.wocommunity.org/display/WOCOM/Emails One of the advantages is that it can be written by a team, something that can be difficult for a regular book. So I want to know who want to contribute to it. The idea I have is that we provide the cookbook for free on the wiki, and that we sell a PDF/ePub version to raise money. Lastly, we will use WOCommunity money to pay people who contribute to the book! The task is to find and edit tips and answers, and to provide code sample when possible (see https://github.com/wocommunity/CookbookExamples). So, who's in? Sorry for responding so late, I was away. But I would love to contribute, provided there is some group doing the work and redacting, commenting. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Wonder D2W and relationships on same entity
On 19-jul.-2012, at 19:20, Ramsey Gurley wrote: Hi Pierre, We should really post this somewhere obvious. It's a known issue with the ERModern look due of the way it handles ids for update containers. If you look in your page source, you'll see more than one ajax update container with the same id. That's what is causing your error. IDs must be unique. A workaround is to put the relationships in separate tabs/steps so there is no id collision. Another workaround is to assign the idForMainContainer manually with a rule. The one time I had the problem, I assigned the id manually. I don't remember the exact LHS, but I think it was similar to: 100: session.context.page.d2wContext.propertyKey = 'contactTypeA1' = idForMainContainer = hokuspokus [Assignment] 100: session.context.page.d2wContext.propertyKey = 'contactTypeA2' = idForMainContainer = abracadabra [Assignment] That assumes your top level page is the one with the duplicate ids. Johan H. recently had this same problem. He may have some other workarounds to share :-) Ah, yes, um, I looked at it, looked at it some more, and decided to wait for WOWODC to sort everything out, but then, well, you know, eh, No, I did not find a solution. I'll let you know when I can come up with something more suitable. Ramsey On Jul 19, 2012, at 9:18 AM, Pierre Gilquin wrote: Thanks Fabian, As a complete beginner with d2w, I have not any idea how to make many tabs. By default, I have a Main tab. You are taking about this tab, right ? Hi Pierre, What are your display property keys? Something like (contactTypeA1,contactTypeA2,contactTypeB1 etc) What do you mean by not responding? When clicking Search or New nothing happen. Well only the image wait ! For the first one, I get the Query Contact panel. I seem to have come across this, but don't remember any details. You could try using a tab inspect page, placing each relationship on a different tab. Fabian David On 2012-07-19, at 8:13 AM, Pierre Gilquin wrote: hi, I have a problem with a wonder D2W app. In my data model, an entity A has many relationships on the same entity B. NB ; Not a to-many relationship but several to-one relationships. In edit mode, the first visible relationship can be managed but all others relationships are not responding. Thanks in advance for any help ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lists.fabian%40e-lumo.com This email sent to lists.fab...@e-lumo.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/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: https://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Improvements to deployment tools
On 24-jul.-2012, at 14:22, Pascal Robert wrote: Hi guys, This is something I'm thinking about for months, and since I see a lot of people having issues with deployment, I have a couple of ideas to improve it. 1) To have REST actions inside wotaskd. By having that, we won't ever need JavaMonitor to manage wotaskd. You could use curl or any HTTP tools, and you could rewrite Monitor in JavaScript or whatever. 2) Upload support into wotaskd so that you can ship the app to it and wotaskd will take care of putting it at the correct location. 3) Deployment support in WOLips. Choose WOLips Tools - Deploy and build/deploy your app directly from WOLips. 4) Deployment plugin in Jenkins that would connect to the REST actions of wotaskd. 5) RPM and .deb packages of wotaskd and mod_webobjects, with a Yum/apt-get repositories to install/update the deployment tools on Linux. Good idea. I used epm (www.epmhome.org) to create installers for different platforms. Supports AIX, Debian GNU/Linux, FreeBSD, HP-UX, IRIX, Mac OS X, NetBSD, OpenBSD, Red Hat Linux, Slackware Linux, Solaris, and Tru64 UNIX Basic trick is to define dependencies (per platform) and files to install per platform in a epm.list, than do epm epm.list, the program will find out which platfom you are running on. It will even sort out the architecture (which can be a pain in the ass as I found out because debian uses x86_64 and amd64 in situations, and then refuses to install on amd64 because the package is defined for x86_x64). Opinions? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Anyone like to transcripti WOWODC podcasts via Mechanical Turk?
On 13-jul.-2012, at 12:55, Ted Archibald wrote:You can use MTurk by using crowdflower.com outside the US. I'm in Canada and I use WO app that submits jobs and pulls data from MTurk via crowdflower. I highly suggest it. It makes MTurk far easier to use as well. Sorry for the late reply, I got…. distracted by doing a transcript myself.Thanks for the suggestion, I had a look at it, but apparently they do not want to to transcription:So I went to the transcription service they advised: castingwords.com.They do transcription in which the price is based on minutes of text, the cheapest is $ 1 per minute, the most expensive one is $2,50 per minute.This would mean the average transcription would cost between 60 and 150 US$.That being said, wouldn't it be easier just to shoot the files to a transcription company? Especially since there's alot of domain specific terminology.As I am currently not part of the 1 percent of the population that spends their money on islands, airplanes, Bugatti Veyrons and party donations (all for the benefit of the creation of employment of course!), I assume we have to wait until there is a not-for-profit company funded in Canada, so that we can start donations flowing in that direction, and decide if it is wise to spend it on such a service.In the meanwhile I have completed my first transcription, of Chuck's (and others) 2008 session on Best Pratices. If you are interested in commenting about the format or have an idea in which we could add such transcriptions to the movies, please let me know. I can send you this first sample, and we might work something out that can be of use to others.The biggest pain I've had with crowd-sourcing is getting your error rate down. You can brute force it with high cost jobs or job repetition (which crowdflower does beautiful). Or you need to manually review everything. Or you can do it with trial and error, and how your job is designed. I only got the hang of it after submitting 6-12k jobs per month for at least 4 months before I was really happy. On Fri, Jul 13, 2012 at 2:56 AM, Amy Worrall amo...@gmail.com wrote: On Fri, Jul 13, 2012 at 9:11 AM, Johan Henselmans jo...@netsense.nl wrote: Some people reported having transcripts done this way. Unfortunately, I am not allowed to use this tool, as I am not a citizen of the US of A. I've used it (from Britain) via those companies that offer a service where they submit the audio to Mechanical Turk and collate the results. It wasn't too expensive and it was a lot better than having to transcribe it myself! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com This email sent to ted.archib...@gmail.com Johan Henselmansjo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Anyone like to transcripti WOWODC podcasts via Mechanical Turk?
Last week, I have done some experiments with transcribing podcasts, as it seemed a good idea to make information in the podcasts more accessible. (I do not like scrolling through podcasts of an hour of which I can read the transcript in 15 minutes). I have tried Mac Speech Scribe with a presentation of Chuck Hill (Best Practices in WO, 2008) and of David Leber (Troubleshooting D2wRules, 2009) The way stiff stuff works is that you first train the application with a section of the text of the specific person, and then start transcribing it. The results, even after training, were …interesting. It seems David and Chuck both have a lot of interest in Iran, Cuba, moral, sections, and other anti-terror stuff. So after the first run through I then copied the transcript in transcripter software of Atze Spohr, to do corrections and add time indication (the app does that automatically). It takes about 30 minutes to do 10 minutes of podcast. David Holt pointed me to the Mechanical Turk, where you can ask people to do work for you: https://www.mturk.com/mturk/welcome Some people reported having transcripts done this way. Unfortunately, I am not allowed to use this tool, as I am not a citizen of the US of A. So my question is: Can anybody in located in the United States try to get a podcast transcribed to see if the quality is OK? (preferably one of the harder ones: Pascal because of his Quebec-english accent or Chuck because of the speed of his speak). It might be a rather cheap solution to have the podcasts transcribed (provided you don't mind having people working for you on sub-MacDonald's wages). Johan Henselmans jo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: I am going to write a WO book
Op 10-jun.-2012, om 00:37 heeft Ted Archibald het volgende geschreven: Since the public will never see a new release of WO, WO 6.0 = Wonder. It's kinda like saying that someone should write a book on Hypercard, and we should all participate in what Hypercard 3.0 from apple would look like. It would be great to capture how easy it worked compared to this eclipse/wonder stuff. I wasn't an expert at the old WO style, but dear god is the new form of development + wonder many times better. Just last year I had to rewrite a legacy app I wrote 6 years ago and make it into a modern app. What I can implement now is crazy compared to the basic system I had then. Debugging, maintenance and refactoring is now a dream compared to the nightmare before. And would that contradict ease of development of dragging eo's on components to create displaygroups, or having a rulemodeler that could derive possible rules based on entities or attributes? Does XCode not have drag and drop because it is easy to do refactoring? I suppose that ease of use for a new/accidental developer is not on the list of things to do for people who can enhance the developer environment, which is fully understandable: they know what to do, and work in a certain optimized way, but I think it will ultimately lead to the demise of a developers environment. If a school or university teacher has to demonstrate concepts of MVC, or ORM, I would not choose WOLips, while I know that there were classes that use WebObjects Builder and EOModeler for just that. On Sat, Jun 9, 2012 at 2:31 PM, Bart Rijpers jazzsa...@me.com wrote: Hi list, I think it is a very good idea to write a book about legacy WebObjects. It would be great to capture how easy it worked compared to this eclipse/wonder stuff. It would be even nicer if everyone one the list could participate in describing how an updated WO 2012 à la Apple would look like: - added support for new databases - integration with iOS app development (deploy WOA on iOS) - Jquery mobile kind of support like the framework Ken wrote, but integrated in an app like WO builder - New HTML editor in WO builder - integration with Netbeans / glassfish server for deployment - more? In other words: which architecture would be used for WO 6.0? Cheers, Bart On 9 Jun 2012, at 21:00, webobjects-dev-requ...@lists.apple.com wrote: Send Webobjects-dev mailing list submissions to webobjects-dev@lists.apple.com To subscribe or unsubscribe via the World Wide Web, visit https://lists.apple.com/mailman/listinfo/webobjects-dev or, via email, send a message with subject or body 'help' to webobjects-dev-requ...@lists.apple.com You can reach the person managing the list at webobjects-dev-ow...@lists.apple.com When replying, please edit your Subject line so it is more specific than Re: Contents of Webobjects-dev digest... Today's Topics: 1. Re: I am going to write a WO book (Lon Varscsak) 2. Re: Custom Entity Classes (Chuck Hill) 3. ERAttachment and _dbupdater do not agree in Wonder integration? (Johan Henselmans) 4. Creating Wonder D2W Application using WOLips without ERModernLook? (Farrukh Ijaz) 5. Re: Creating Wonder D2W Application using WOLips without ERModernLook? (David Holt) 6. Re: Creating Wonder D2W Application using WOLips without ERModernLook? (Farrukh Ijaz) 7. Re: I am going to write a WO book (James Cicenia) -- Message: 1 Date: Fri, 08 Jun 2012 12:35:23 -0700 From: Lon Varscsak lon.varsc...@gmail.com To: WebObjects Apple Dev webobjects-dev@lists.apple.com Subject: Re: I am going to write a WO book Message-ID: calaw18wie2qdzquh7u0vfv77j-qepq5vomdo5yhcd3cysqp...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 I felt left out. :P +1 Long live WOnder! On Fri, Jun 8, 2012 at 11:57 AM, Kieran Kelleher kelleh...@gmail.com wrote: +1. On Jun 8, 2012, at 1:16 PM, Chuck Hill wrote: +1 There is no sense in writing a pure WO app these days, IMO. On 2012-06-08, at 9:55 AM, Pascal Robert wrote: +1 Aren't pure Apple WO apps dead aside from legacy? IMO wonder is the ONLY option to learn new. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/chill
ERAttachment and _dbupdater do not agree in Wonder integration?
I am using integration from Wonder and noticed the fix that David Avendasora has pushed to make sure that cfPath is added to the erattachment table for the cloudfile extension. Unfortunately, I still got errors because cfPath was not created, which should have been because ERAttachment2.java in migrations of the ERAttachment Library. Looking in _dbupdater, I noticed that ERAttachment was on version 4: lockowner | modelname | updatelock | version | ERAttachment|0 | 4 Is there any explanation how this version number got updated to 4, while there is only one migration from ERAttachment? (I fixed it by setting the version to 1 via: update _dbupdater set version = 1 where modelname = 'ERAttachment'; ) Johan Henselmans jo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERJQueryMobile and Ajax frameworks
Op 7-jun.-2012, om 17:24 heeft Amedeo Mantica het volgende geschreven: I don't use the ERJQuerymobile, but I guess you cannot use AjaxUpdateContainer and AjaxObserve fields because they rely on Prototype and Scriptaculous You should not mix ERJQueryMobile with the legacy Ajax stuff Amedeo As far as I know it should work, but perhaps something else is into play here: the use of the $ as a variable sign instead of the [ ] (squarebrackets). As far a OGNL is concerned, you might user either, or something else. I do not know if the parsing of the $ stuff interferes with the javascript stuff, but I do know that Ken is very much trying to play nice with the non-jquery javascript code. On 05/giu/2012, at 18:15, Stavros Panidis wrote: Hello list, I am trying to test ERJQueryMobile. I had no problem to work with most of my components but seems that AjaxUpdateContainer and AjaxObserveField does not work. For example wo:conditional condition = $theVar.ischaracter wo:conditional condition = $theVar.inputasoptions wo:AjaxUpdateContainer id = $theVar.id.toString wo:ERQMPopUpButton id = $theVar.name list = $theVar.optionsArray selection = $theVar.content mini = true / wo:conditional condition = $theVar.shownewoption wo:ERQMInputString value = $theVar.newoption / /wo:conditional /wo:AjaxUpdateContainer /wo:conditional wo:conditional condition = $theVar.inputasoptions negate = yes wo:ERQMInputString value = $theVar.content mini = true / /wo:conditional /wo:conditional The above is not working, while if I put out Ajax lines it works. Also, certainly it works fine when not ERQMHtmlTemplate. I would appreciated to have some help on this. Many thanks in advance Stavros ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/amedeomantica%40me.com This email sent to amedeomant...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Inserting a new obligatory entity in an relation, where? (SOLVED?)
On Apr 17, 2012, at 7:25 PM, Pascal Robert wrote: Le 2012-04-17 à 13:18, Ramsey Gurley a écrit : Agreed. I like George's original suggestion. In the migration that creates the required contract relationship, go through all the existing Shows and create a default contract there. Keep the data clean. Don't use awakeFromFetch for tricks like this. OK, thanks for all the suggestions, it was merely an intellectual exercise, I wuuld neer do such of thing in realty, would I? (Oops, just did it, now I have to remove the code again... +1. I have done that a couple of times for the WOCommmunity stuff. But beware, post migration is only done for the last migration, so let's say on your dev db, you are at migration 10 but prod is at migration 8, if your post migration to fix problems is in migration 9, post migration won't happen when migrations 9 and 10 are on in production. I cannot imagine a deployment database that is ahead of the dev database, or am I misunderstanding your remark? Why would I only do it with the migration that created the contract relationship? I understood you could always get away with it, as long as it is in a migration after the change in the database that requires it. Suppose you're on migration 6, migration 7 creates the contract relationship, than migration 8 and 9 add something else, after which I decide it would be a dandy idea to add default contracts to each show, what would be the problem to add the default stuff in migration 10? In the deployment, all the migrations would be replayed until they are at the current level, isn't it? Think about it... What if the company hires some J2EE/Ruby/PHP jockey to build an app on the same database? How's it going to look for WO when he complains that WO apps have miserable data integrity? :-) Ramsey On Apr 17, 2012, at 9:45 AM, Chuck Hill wrote: Doing all this in awakeFromFetch makes me feel kind of nervous. Chuck On 2012-04-17, at 9:41 AM, Kieran Kelleher wrote: Try refaulting the Show after you create the Contract to see if that helps. ec.refaultObject(...) On Apr 17, 2012, at 5:40 AM, Johan Henselmans wrote: On Apr 16, 2012, at 6:16 PM, Ramsey Gurley wrote: On Apr 16, 2012, at 9:13 AM, Johann Werner wrote: Am 16.04.2012 um 16:43 schrieb Johan Henselmans: On Apr 14, 2012, at 10:20 PM, Johan Henselmans wrote: On Apr 14, 2012, at 4:17 PM, George Domurot wrote: In your code snip, you aren't adding the newContract object into the editing context. To reduce errors like these, always use: Thanks, after I posted the code I noticed that error and added eo,insert(newContract) It still does not want to run. I suppose there is some faulting going on: I noticed that the if (contract()==null) clause did not get triggered while fetching shows that did not have a contract. OK, some reading on Faulting in the Enterprise Objects Framework Developers Guide indeed told me that the relationship contract() would not be null, because of the faulting behaviour (page 205). However, asking for an attribute of a relationship would trigger a round trip to the database and would give me the required error. After a lot of tinkering (I am a big fan, out of necessity of Wonder Tinkering) I cam up with the following solution: public void awakeFromFetch(EOEditingContext eo){ super.awakeFromFetch(eo); try{ contract().contractDescription(); } catch (Exception e){ Contract newContract = new Contract(); newContract._setValueForPrimaryKey(new Integer(ShowInfo.this.primaryKey()), contractId); eo.insertObject(newContract); newContract.setContractAmount(new BigDecimal(0.0)); newContract.setContractDescription(empty: fake Contract); newContract.setContractRemarks(empty: fake contract+this._primaryKey); newContract.setContractType(ContractTypeEnum.RENT); eo.saveChanges(); I think here you should be careful saving an editing context you don't know what else has been changed in. It would be safer to create a new editing context, make a localInstanceIn() and save it there. I was about to say the same thing. Think about what happens if you're half way through a wizard page when those things get fetched. It's going to try to save the changes to the ec and throw a validation exception. Thanks for the comments. For me here the confusion sets in. We havei ECShow, which contains the Show. It might contain other stuff that is not saved, so if we add Contract to ECSnow and tell save, then the other stuff gets saved too (or not, throwing an exception), which you both corretly pointed out. So we create a new EC, ECContract, in which we
Re: Inserting a new obligatory entity in an relation, where? (SOLVED?)
On Apr 16, 2012, at 6:16 PM, Ramsey Gurley wrote: On Apr 16, 2012, at 9:13 AM, Johann Werner wrote: Am 16.04.2012 um 16:43 schrieb Johan Henselmans: On Apr 14, 2012, at 10:20 PM, Johan Henselmans wrote: On Apr 14, 2012, at 4:17 PM, George Domurot wrote: In your code snip, you aren't adding the newContract object into the editing context. To reduce errors like these, always use: Thanks, after I posted the code I noticed that error and added eo,insert(newContract) It still does not want to run. I suppose there is some faulting going on: I noticed that the if (contract()==null) clause did not get triggered while fetching shows that did not have a contract. OK, some reading on Faulting in the Enterprise Objects Framework Developers Guide indeed told me that the relationship contract() would not be null, because of the faulting behaviour (page 205). However, asking for an attribute of a relationship would trigger a round trip to the database and would give me the required error. After a lot of tinkering (I am a big fan, out of necessity of Wonder Tinkering) I cam up with the following solution: public void awakeFromFetch(EOEditingContext eo){ super.awakeFromFetch(eo); try{ contract().contractDescription(); } catch (Exception e){ Contract newContract = new Contract(); newContract._setValueForPrimaryKey(new Integer(ShowInfo.this.primaryKey()), contractId); eo.insertObject(newContract); newContract.setContractAmount(new BigDecimal(0.0)); newContract.setContractDescription(empty: fake Contract); newContract.setContractRemarks(empty: fake contract+this._primaryKey); newContract.setContractType(ContractTypeEnum.RENT); eo.saveChanges(); I think here you should be careful saving an editing context you don't know what else has been changed in. It would be safer to create a new editing context, make a localInstanceIn() and save it there. I was about to say the same thing. Think about what happens if you're half way through a wizard page when those things get fetched. It's going to try to save the changes to the ec and throw a validation exception. Thanks for the comments. For me here the confusion sets in. We havei ECShow, which contains the Show. It might contain other stuff that is not saved, so if we add Contract to ECSnow and tell save, then the other stuff gets saved too (or not, throwing an exception), which you both corretly pointed out. So we create a new EC, ECContract, in which we create a local instance of Show, then add the contract, and be done with it. Now, however, the fetch in ECShow goes on, knows nothing about Show having a Contract, and throws up, because every Show should have a Contract, Am I correct in my reasoning? So my question is: how do I get the Show in ECShow to acknowledge there is a contract available? Or am I completely missing the point? } } I tried just creating a new contract, and add that to the show, but that did not create the proper primary keys (show owns the contract and Propagates the Primary Key), so some very strange things happened then. Does anybody see any caveats in creating records that are not there like this? (apart from the fact that you should not create records in such a way but via ERMigrations or a perl script or whatever)? ERXEOControlUtilities.createAndInsertObject I'd recommend not doing this in awakeFromFetch, but making this a step in your migration to clean-up your DB/object graph. 1,500 new objects is a light amount of processing and will keep your model object's code clean. -G I know that would be a simpler solution, (and propably will do it) but I am still curious why the code does not work. On Apr 14, 2012, at 1:52 AM, Johan Henselmans wrote: I am working with shows, that should have contracts. That was only discovered after some shows (let's say 1500) had already been in the database. So I created a new entity Contract, that has a not null relation to show, get's it's primarykey propagated from the show which owns the destination. If the shows is deleted, the contract is deleted (Cascade), like so: PastedGraphic-9.png PastedGraphic-8.png I thought that with the code: public void awakeFromFetch(EOEditingContext eo){ if (contract()==null){ Contract newContract = new Contract(); newContract.setContractAmount(new BigDecimal(0.0)); newContract.setContractDescription(tempDescription); newContract.setContractRemarks(tempRemarks); newContract.setContractType(ContractTypeEnum.RENT); setContractRelationship(newContract); eo.saveChanges
Re: Inserting a new obligatory entity in an relation, where? (SOLVED?)
On Apr 14, 2012, at 10:20 PM, Johan Henselmans wrote: On Apr 14, 2012, at 4:17 PM, George Domurot wrote: In your code snip, you aren't adding the newContract object into the editing context. To reduce errors like these, always use: Thanks, after I posted the code I noticed that error and added eo,insert(newContract) It still does not want to run. I suppose there is some faulting going on: I noticed that the if (contract()==null) clause did not get triggered while fetching shows that did not have a contract. OK, some reading on Faulting in the Enterprise Objects Framework Developers Guide indeed told me that the relationship contract() would not be null, because of the faulting behaviour (page 205). However, asking for an attribute of a relationship would trigger a round trip to the database and would give me the required error. After a lot of tinkering (I am a big fan, out of necessity of Wonder Tinkering) I cam up with the following solution: public void awakeFromFetch(EOEditingContext eo){ super.awakeFromFetch(eo); try{ contract().contractDescription(); } catch (Exception e){ Contract newContract = new Contract(); newContract._setValueForPrimaryKey(new Integer(ShowInfo.this.primaryKey()), contractId); eo.insertObject(newContract); newContract.setContractAmount(new BigDecimal(0.0)); newContract.setContractDescription(empty: fake Contract); newContract.setContractRemarks(empty: fake contract+this._primaryKey); newContract.setContractType(ContractTypeEnum.RENT); eo.saveChanges(); } } I tried just creating a new contract, and add that to the show, but that did not create the proper primary keys (show owns the contract and Propagates the Primary Key), so some very strange things happened then. Does anybody see any caveats in creating records that are not there like this? (apart from the fact that you should not create records in such a way but via ERMigrations or a perl script or whatever)? ERXEOControlUtilities.createAndInsertObject I'd recommend not doing this in awakeFromFetch, but making this a step in your migration to clean-up your DB/object graph. 1,500 new objects is a light amount of processing and will keep your model object's code clean. -G I know that would be a simpler solution, (and propably will do it) but I am still curious why the code does not work. On Apr 14, 2012, at 1:52 AM, Johan Henselmans wrote: I am working with shows, that should have contracts. That was only discovered after some shows (let's say 1500) had already been in the database. So I created a new entity Contract, that has a not null relation to show, get's it's primarykey propagated from the show which owns the destination. If the shows is deleted, the contract is deleted (Cascade), like so: PastedGraphic-9.png PastedGraphic-8.png I thought that with the code: public void awakeFromFetch(EOEditingContext eo){ if (contract()==null){ Contract newContract = new Contract(); newContract.setContractAmount(new BigDecimal(0.0)); newContract.setContractDescription(tempDescription); newContract.setContractRemarks(tempRemarks); newContract.setContractType(ContractTypeEnum.RENT); setContractRelationship(newContract); eo.saveChanges(); } } In the extended class of the _Show this would make sure that everything gets filled, in the case a contract has not been created as it does with new shows because it is an old show. Alas, that does not seem to be the case. What should I do to create a contract the moment an old show does not have a contract? Vriendelijke Groeten, Johan Henselmans jo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/mastermind%40knuckleheads.net This email sent to masterm...@knuckleheads.net Vriendelijke Groeten, Johan Henselmans jo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Vriendelijke Groeten, Johan Henselmans jo...@netsense.nl
Re: Inserting a new obligatory entity in an relation, where?
On Apr 14, 2012, at 4:17 PM, George Domurot wrote: In your code snip, you aren't adding the newContract object into the editing context. To reduce errors like these, always use: Thanks, after I posted the code I noticed that error and added eo,insert(newContract) It still does not want to run. I suppose there is some faulting going on: I noticed that the if (contract()==null) clause did not get triggered while fetching shows that did not have a contract. ERXEOControlUtilities.createAndInsertObject I'd recommend not doing this in awakeFromFetch, but making this a step in your migration to clean-up your DB/object graph. 1,500 new objects is a light amount of processing and will keep your model object's code clean. -G I know that would be a simpler solution, (and propably will do it) but I am still curious why the code does not work. On Apr 14, 2012, at 1:52 AM, Johan Henselmans wrote: I am working with shows, that should have contracts. That was only discovered after some shows (let's say 1500) had already been in the database. So I created a new entity Contract, that has a not null relation to show, get's it's primarykey propagated from the show which owns the destination. If the shows is deleted, the contract is deleted (Cascade), like so: PastedGraphic-9.png PastedGraphic-8.png I thought that with the code: public void awakeFromFetch(EOEditingContext eo){ if (contract()==null){ Contract newContract = new Contract(); newContract.setContractAmount(new BigDecimal(0.0)); newContract.setContractDescription(tempDescription); newContract.setContractRemarks(tempRemarks); newContract.setContractType(ContractTypeEnum.RENT); setContractRelationship(newContract); eo.saveChanges(); } } In the extended class of the _Show this would make sure that everything gets filled, in the case a contract has not been created as it does with new shows because it is an old show. Alas, that does not seem to be the case. What should I do to create a contract the moment an old show does not have a contract? Vriendelijke Groeten, Johan Henselmans jo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/mastermind%40knuckleheads.net This email sent to masterm...@knuckleheads.net Vriendelijke Groeten, Johan Henselmans jo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Optimizing EOF Applications - what does this mean to you?
On Apr 3, 2012, at 9:37 PM, Chuck Hill wrote: Hi, My topic for WOWODC this year is EOF Optimization. This was chosen based on frequent requests in the yearly surveys. I do have some things to address, but I would really like to hear what YOU are interested in for YOUR projects. Please let me know and I will try my best to accommodate all requests. Thanks, mightDelete, willDelete, willUpdate, willInsert, awakeFromInsertion: which one to use when? 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/gvc/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: https://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Vriendelijke Groeten, Johan Henselmans jo...@netsense.nl ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Quote kills nifty description field in javascript, how to prevent?
I had a nice website that displays pictures, and as it happens to be thee are of course some quotes and double quotes involved. I noticed at a certain moment that the stuff I did (it's a google map with markers) did not display any more. I first thought it was caused by the intertubes, but apparently somebody had put a quote in the description which caused the javascript to fail. this is the resulting HTML : google.maps.event.addListener(marker0, 'click', function() { // $(a[rel=marker0]).fancybox( $.fancybox( [ { href: /PH/digitalassets/2/6/c/92.jpg, title: From Idan York @ chiuki.com: Rowing on the Nieuwe Prinsengracht at the Onbekendegracht toward the Amstel, beside Carre' Theatre, the Sluises and the Magerebrug.} , ], The quote in the title field, before Theatre, is causing mayhem for the javascript. So my humble question is: how do I prevent the quote that is in the description field of the record to be displayed as a quote? I thought I could get away with escapeHTML=YES, but that did not change the outcome. Here is my current code: a rel=markerwo:WOString value = $counter/ href=wo:WOString value =$tmpPicture.pictureattachment.webPath/ title=wo:WOString value =$tmpPicture.description escapeHTML=YES/ /a Oh yes, and answer in 10 minutes, quick! (Did you notice this trend that people ask questions and want answers NOW via mailinglists?) Johan Henselmans jo...@netsense.nl ___ Do not 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: Quote kills nifty description field in javascript, how to prevent?
On Oct 20, 2011, at 2:09 PM, Kieran Kelleher wrote: Hi John, Any reason why you would not use a WOGenericContainter for the 'a' element and provide bindings that way, with logic, such as StringEscapeUtils.escapeJavaScript(..) that escapes the title text? Perhaps because I did not know of such a possibility? Thanks for the tip, I will try to find out the right incantation. If I am not here the coming days, you know why that is. 35 minutes round trip BTW, do not ever do that again. Post your answer but send it of with a default timelag of at least 8 hours. Otherwise people might start to rely on the Kelleher Quick Response Task Force. BTW, StringEscapeUtils.escapeJavaScript(..) resides in Wonder/ERJars/commons-lang-2.5.jar Regards, Kieran On Oct 20, 2011, at 7:45 AM, Johan Henselmans wrote: I had a nice website that displays pictures, and as it happens to be thee are of course some quotes and double quotes involved. I noticed at a certain moment that the stuff I did (it's a google map with markers) did not display any more. I first thought it was caused by the intertubes, but apparently somebody had put a quote in the description which caused the javascript to fail. this is the resulting HTML : google.maps.event.addListener(marker0, 'click', function() { //$(a[rel=marker0]).fancybox( $.fancybox( [ { href: /PH/digitalassets/2/6/c/92.jpg, title: From Idan York @ chiuki.com: Rowing on the Nieuwe Prinsengracht at the Onbekendegracht toward the Amstel, beside Carre' Theatre, the Sluises and the Magerebrug.} , ], The quote in the title field, before Theatre, is causing mayhem for the javascript. So my humble question is: how do I prevent the quote that is in the description field of the record to be displayed as a quote? I thought I could get away with escapeHTML=YES, but that did not change the outcome. Here is my current code: a rel=markerwo:WOString value = $counter/ href=wo:WOString value =$tmpPicture.pictureattachment.webPath/ title=wo:WOString value =$tmpPicture.description escapeHTML=YES/ /a Oh yes, and answer in 10 minutes, quick! (Did you notice this trend that people ask questions and want answers NOW via mailinglists?) Johan Henselmans jo...@netsense.nl ___ Do not 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/kelleherk%40gmail.com This email sent to kelleh...@gmail.com Johan Henselmans jo...@netsense.nl ___ Do not 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: Vertical Inheritance qualifier based on to many relationship
Thanks for all the comments. It seems I have to rewrite the first part of my introductory WO-tutorial on creating a webobjects app, in which I did a vertical inheritance with subclasses of the contacts. On 21 aug. 2011, at 00:04, David Avendasora wrote: On Aug 20, 2011, at 10:43 PM, Ken Anderson wrote: David, When you say have a Relationship to the abstract Role class, I'm assuming you're recommending inheritance here. I do it the exact same way, just wanted to make sure it's not confusing to say do abstract this and also get rid of inheritance. Ah. Yes. Good point. I meant get rid of Inheritance on Contact. The roles themselves can make use of inheritance, or an even better way is for them to be individual Classes, but use interfaces to enforce what behaviors they each must have. Then you can have multiple interfaces associated with each role. For me, I have this type of structure in a few places. In one of them, the subclasses of Role use single table inheritance, since the subclasses all have similar data, but the methods are different. For another, I use horizontal, since the data structures vary significantly. Thankfully, there aren't thousands of objects, so performance is not a problem here. Johan, you can always implement something in your Contact class like: - (boolean) isActor { // check to see if the to-one (or to-many) role(s) relationship has an instance of the Actor role } or something like this: - (ActorRole *) actorRole { // find actor role in relationship or return null } to see if the contact fits the bill for a particular situation or not. Personally, I always make the role relationship to-many, so that someone can have multiple roles (will ALWAYS happen IMHO). Ken On Aug 20, 2011, at 6:33 AM, David Avendasora wrote: I've been there, Johan. Don't use inheritance. That's what is messing with you. An EO can't switch from being one Class to another. It completely er... um... screws with EOF. Get rid of the inheritance. Just have a Contact class that has a relationship to the abstract Role class, and make all the the roles subclasses of Role. You can change a contacts behaviors by setting the role relationship to an instance of one of the subclasses on-the-fly, however you want. Each subclass of Role can implement the various behaviors in their own way. The trick is that when you want a contact to behave as an actor, you set the role relationship to an instance of actor then call contact.role.assignUnderstudy(contact). Wait, you say, it is completely invalid to take a role nicepersontoalwayinviteforfreetoanyshow and say contact.role.assgnUnderstudy(contact)! well, the NicePersonToAlwaysInviteForFreeToAnyShow class has an empty implementation of the assgnUnderstudy(contact) method, or one that throws an error that the UI catches to tell the user that they are a daft git for doing something stupid as trying to give a nicepersontoalwayinviteforfreetoanyshow an understudy. Shesh. Everyone knows they can only be assigned AS understudies. That's the basics. Just get rid of Inheritance. Especially Vertical Inheritance (sorry Lachlan). Dave On Aug 20, 2011, at 4:58 PM, Johan Henselmans wrote: On 20 aug. 2011, at 01:26, Chuck Hill wrote: On 2011-08-19, at 2:46 PM, Johan Henselmans wrote: My idea: I have an entity contact, that gets vertically inherited into actor, employee, visitor, nicepersontoalwayinviteforfreetoanyshow, whatever, based on the role somebody/thing plays. A contact can have different roles, which makes this contact playing actor, employee, visitor, nicepersontoalwayinviteforfreetoanyshow or whatever. So there is a m-n relation roles in a contact. Where is Kieran? This is his favourite question. It sounds like you should be using the Role pattern and not inheritance. http://objectdiscovery.com/solutions/publications/roles/index.html I thought I used a Role pattern. situation: base class is contact, others are inheritances all in the same table contact - visitor -actor -director -nice person role class - (defined via eo) contact-role m:n I would assume that figure 13 in the article would be the most desirable solution, as the role definition is dynamic (roles can be added) figure-13.gif but I do not get how in that situation the specific methods and data of a specific role would then be defined. Or perhaps I miss the point? For instance, and actor can have a relationship to a specific show, a theatergroup, a paycheck, a visitor can have visited a specific performance, etc. Where would you define that kind of behavior? I assumed that I should be able to create and get a visitor if I could describe in the EOModel qualifier something like roles.ROLE.name = 'visitor' Something like this: PastedGraphic-3.png
Re: Vertical Inheritance qualifier based on to many relationship
On 20 aug. 2011, at 01:26, Chuck Hill wrote:On 2011-08-19, at 2:46 PM, Johan Henselmans wrote:My idea:I have an entity contact, that gets vertically inherited into actor, employee, visitor, nicepersontoalwayinviteforfreetoanyshow, whatever, based on the role somebody/thing plays. A contact can have different roles, which makes this contact playing actor, employee, visitor, nicepersontoalwayinviteforfreetoanyshow or whatever. So there is a m-n relation roles in a contact. Where is Kieran? This is his favourite question. It sounds like you should be using the Role pattern and not inheritance. http://objectdiscovery.com/solutions/publications/roles/index.htmlI thought I used a Role pattern. situation:base class is contact, others are inheritances all in the same tablecontact - visitor -actor -director -nice personrole class - (defined via eo)contact-role m:nI would assume that figure 13 in the article would be the most desirable solution, as the role definition is dynamic (roles can be added)but I do not get how in that situation the specific methods and data of a specific role would then be defined. Or perhaps I miss the point?For instance, and actor can have a relationship to a specific show, a theatergroup, a paycheck, a visitor can have visited a specific performance, etc. Where would you define that kind of behavior?I assumed that I should be able to create and get a visitor if I could describe in the EOModel qualifier something like roles.ROLE.name = 'visitor'Something like this:PastedGraphic-3.pngAnd I would create the relation to the role in the awakeFromInsertion phase of the Visitor. Of course this is not working, (nothing ever works where I live) as I am getting takeValueForKey(): attempt to assign value to unknown key: 'roles.ROLE.name'. This class does not have an instance variable of the name roles.ROLE.nameWhat is the proper incantation to do this?I think that is not possible. The restricting qualifier has to be evaluated on that single entity only.Chuck-- Chuck Hill Senior Consultant / VP DevelopmentPractical 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 Johan Henselmansjo...@netsense.nl ___ Do not 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
Look, a displaygroup!
I remember that in the old days it was possible to drag an entitiy into a component and TADA, you had a working displaygroup. What is the current tada way of doing that? Johan Henselmans jo...@netsense.nl ___ Do not 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
Vertical Inheritance qualifier based on to many relationship
My idea:I have an entity contact, that gets vertically inherited into actor, employee, visitor, nicepersontoalwayinviteforfreetoanyshow, whatever, based on the role somebody/thing plays.A contact can have different roles, which makes this contact playing actor, employee, visitor,nicepersontoalwayinviteforfreetoanyshowor whatever. So there is a m-n relation roles in a contact.I assumed that I should be able to create and get a visitor if I could describe in the EOModel qualifier something like roles.ROLE.name = 'visitor'Something like this:And I would create the relation to the role in the awakeFromInsertion phase of the Visitor.Of course this is not working, (nothing ever works where I live) as I am gettingtakeValueForKey(): attempt to assign value to unknown key: 'roles.ROLE.name'. This class does not have an instance variable of the name roles.ROLE.nameWhat is the proper incantation to do this? Johan Henselmansjo...@netsense.nl ___ Do not 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: Lion and WO
Op 7 aug. 2011, om 06:37 heeft Ramsey Gurley het volgende geschreven: Not entirely fine… Just in case anyone is trying to install Postgres on a clean install of Lion, you'll hit a snag at the very end of the installer that prevents the creation of the initial database and installation of the apps in /Applications. Until the Postgres people fix this in their install script, you'll need to: sudo dscl . -append /Users/_postgres RecordName postgres sudo dscl . -append /Groups/_postgres RecordName postgres sudo dscl . -change /Users/_postgres UserShell /usr/bin/false /bin/bash In Lion Server postgresql is directly available, instead of Mysql. I do not know about Lion Client, I upgrade my MacBookPro to Lion, and my macports postgresql just continued to run. I would go the macports route anyway. The first two commands will alias the underscore username with a username/group the install script expects. The third line is necessary to su to the postgres user. It seems all three are required prior to running the installer in order to get it to complete normally. Ramsey On Jul 25, 2011, at 4:24 PM, Andy 'Dru' Satori wrote: PostgreSQL is just fine in lion Andy 'Dru' Satori - all typos courtesy of fat finger and an iPad On Jul 25, 2011, at 7:15 PM, Ramsey Gurley rgur...@smarthealth.com wrote: Postgresql? On Jul 25, 2011, at 11:38 AM, Tim Worman wrote: The only problem I had was that I had to use Direct Connect in Lion - probably a config problem somewhere. I'm stuck in Snow Leopard for dev right now since my current database doesn't install in Lion. Tim Worman UCLA GSEIS On Jul 20, 2011, at 10:08 AM, Mike Schrag wrote: yes, long ago .. works fine. On Jul 20, 2011, at 1:06 PM, Simon wrote: what about upgrading a dev machine - anyone braved it yet ? On 20 July 2011 16:32, Pascal Robert prob...@macti.ca wrote: Just before people start asking. I installed Lion Server on a Mac Mini Server and the Wonder variants of wotaskd and Monitor works well. Apache WO adaptor compiles correctly too. But Java is not pre-installed, so just start any Java process (a simple call to /usr/bin/java will do) and Finder will ask you if you want to install Java. If you say so, it will download Java 1.6 (from Apple) and install 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/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/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/lists%40thetimmy.com This email sent to li...@thetimmy.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/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/dru%40druware.com This email sent to d...@druware.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/ramseygurley%40gmail.com This email sent to ramseygur...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not 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
Re: Time Picker component for NSTimestamp
Op 3 aug. 2011, om 21:15 heeft Paul D Yu het volgende geschreven: Being a little lazy here, but has anyone created a date + time setting component? I thought I just saw a commit in the last month or so??? I have one in my wonder github, but I need to clean it up, as the localization does not work properly. Hopefully next week. (I am in my half-yearly fixing and creating webobjects projects for about a month, aka the casual webobjects developer) Thanks. Paul ___ Do not 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 jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not 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
D2W app and Excel and PDF generation example
I want to add PDF and Excel generation to some pages in a D2W application. I saw some talk about adding Excel or PDF on the mailinglist, but most of it was way over my head, mostly because there seem to be 3 or more ways to achieve the same thing. I looked if I could find some example in the Wonder Examples and the wiki, but did not find it. Is there any concise example that someone can share? (I'd also like to add this feature to ERD2W/CoolComponents, that one could have something like task=list ErPDFDownloadButton=true, if that does not exist already) Johan Henselmans jo...@netsense.nl ___ Do not 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: D2W app and Excel and PDF generation example
Op 4 aug. 2011, om 11:22 heeft Paul Hoadley het volgende geschreven: On 04/08/2011, at 6:36 PM, Johan Henselmans wrote: Is there any concise example that someone can share? There's a short screencast of Quinton's that shows you how to get ERPDFGeneration off the ground using the ERPDFWrapper component. http://idisk.mac.com/qdolan-Public/webobjects/PDFIn60Seconds.mov Thanks, I have seen that one, but it does not explain how to get a D2W ListPage or InspectPage to be downloaded as a PDF document, it is in the 'regular' WOComponent way. But thanks anyway. See also the component's Javadocs: http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/pdf/ERPDFWrapper.html 1. The component content must be valid XHTML. 2. ERPDFWrapper should be the outermost component on the page, and the closing tag should not have any trailing content, even whitespace. 3. The default rendering engine (FlyingSaucer + iText) understands some print-specific CSS, such as page sizes, the 'page-break-inside' property. -- Paul. http://logicsquad.net/ Johan Henselmans jo...@netsense.nl ___ Do not 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 on eclipse 3.7
Op 2 aug. 2011, om 06:35 heeft Q het volgende geschreven: Can anyone else confirm that this doesn't work? It works fine for me. Oops, userinterface bug: I had to refresh the project to see the created java classes… Sorry about the confusion. WOLips 3.7.10091 is fine. On 02/08/2011, at 1:40 PM, Johan Henselmans wrote: Op 2 aug. 2011, om 01:44 heeft Q het volgende geschreven: I think this is related to a recent commit I made to fix a different problem. I will take a look at it sometime later today. Quinton, the null message is away, and the .eogen file has sensible values, but the generation is not taking place. (WOLips 3.7.10091) Amazing how quick one gets dependent on a tool… On 02/08/2011, at 12:22 AM, Alexis Tual wrote: Hi list, I've just switched to eclipse 3.7 with WOLips from http://webobjects.mdimension.com/hudson/job/WOLips37Current/lastSuccessfulBuild/artifact/site/ Everything seemed to work fine until I tried to eogenerate which failed silently (see sshot attached) Capture d’écran 2011-08-01 à 16.15.27.png Maybe something concerning paths changed because when I open a eogenerator file with the wolips editor, it prepends the eclipse 3.7 path (edited with a text editor, the path shows Resources/Cocowork.eomodeld, which is correct) : Capture d’écran 2011-08-01 à 16.19.40.png Has anybody experienced this ? Thanks Alex ___ Do not 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/qdolan%40gmail.com This email sent to qdo...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Johan Henselmans jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not 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 on eclipse 3.7
I have the same problem, I noticed that generating the eogen file created a variable of which the model should be generated which is: /Applications/Developing/eclipse/Eclipse.app/Contents/MacOS/Resources/Theater.eomodeld. It should be something like: /Users/localadmin/Documents/Theater/eclipseprojects/NLNetsenseTheaterBL/Resources/Theater.eomodeld Every time I remove the model and reinsert it with Add, the Eclipse app folder is added, not the project folder. I add the absolute paths manually, but no dice. On another eclipse on another machine, it still works. WOLips 3.7.10089 works, WOLips 3.7.10090 does not work. Op 2 aug. 2011, om 00:15 heeft Alexis Tual het volgende geschreven: That works if I set the eomodel absolute path in the eogen file. Something must be wrong with my setup, that's weird I tried also with a clean workspace (-clean and no custom prefs) Alex Le 1 août 2011 à 16:41, Alexis Tual a écrit : Thanks for your suggestion, I've tried that with no luck Alex Le 1 août 2011 à 16:37, Marius Soutier a écrit : Have you tried renaming the folder from eclipse-indigio to e.g. EclipseIndigo? On 01.08.2011, at 16:22, Alexis Tual wrote: Hi list, I've just switched to eclipse 3.7 with WOLips from http://webobjects.mdimension.com/hudson/job/WOLips37Current/lastSuccessfulBuild/artifact/site/ Everything seemed to work fine until I tried to eogenerate which failed silently (see sshot attached) Capture d’écran 2011-08-01 à 16.15.27.png Maybe something concerning paths changed because when I open a eogenerator file with the wolips editor, it prepends the eclipse 3.7 path (edited with a text editor, the path shows Resources/Cocowork.eomodeld, which is correct) : Capture d’écran 2011-08-01 à 16.19.40.png Has anybody experienced this ? Thanks Alex ___ Do not 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/m.soutier%40starhealthcare.info This email sent to m.sout...@starhealthcare.info ___ Do not 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 jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not 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 on eclipse 3.7
Op 2 aug. 2011, om 01:44 heeft Q het volgende geschreven: I think this is related to a recent commit I made to fix a different problem. I will take a look at it sometime later today. Quinton, the null message is away, and the .eogen file has sensible values, but the generation is not taking place. (WOLips 3.7.10091) Amazing how quick one gets dependent on a tool… On 02/08/2011, at 12:22 AM, Alexis Tual wrote: Hi list, I've just switched to eclipse 3.7 with WOLips from http://webobjects.mdimension.com/hudson/job/WOLips37Current/lastSuccessfulBuild/artifact/site/ Everything seemed to work fine until I tried to eogenerate which failed silently (see sshot attached) Capture d’écran 2011-08-01 à 16.15.27.png Maybe something concerning paths changed because when I open a eogenerator file with the wolips editor, it prepends the eclipse 3.7 path (edited with a text editor, the path shows Resources/Cocowork.eomodeld, which is correct) : Capture d’écran 2011-08-01 à 16.19.40.png Has anybody experienced this ? Thanks Alex ___ Do not 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/qdolan%40gmail.com This email sent to qdo...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not 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
Direct Connect! Profit!
I am trying to set up my work environment such as a grown up adult should do, with Migrations, and Git and ERAttachment etc, and now the final step: in http://wiki.objectstyle.org/confluence/display/WO/Development-Direct+Connect a man called Chuck Hill claims that this will lead to Profit. I checked my Paypal, Google CheckOut, Bitcoin, WorldPay, Digicash, and some other accounts, nothing. All I get is: inline: PastedGraphic-1.png I symlinked the WOA app in build folder in Eclipse to /Library/WebServer/Documents/WebObjects/ so as to have the stuff available in the WebServer. Should I do something extra to make profit? Johan Henselmans jo...@netsense.nl 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: Direct Connect! Profit!
On 6 apr 2011, at 15:50, Pascal Robert wrote: Probably that wotaskd is only listening to localhost (127.0.0.1) but your application is not. Try to launch both wotaskd and your app with -WOHost localhost Spot on. Profit! (I'll change the wiki accordingly). I am trying to set up my work environment such as a grown up adult should do, with Migrations, and Git and ERAttachment etc, and now the final step: in http://wiki.objectstyle.org/confluence/display/WO/Development-Direct+Connect a man called Chuck Hill claims that this will lead to Profit. I checked my Paypal, Google CheckOut, Bitcoin, WorldPay, Digicash, and some other accounts, nothing. All I get is: PastedGraphic-1.png I symlinked the WOA app in build folder in Eclipse to /Library/WebServer/Documents/WebObjects/ so as to have the stuff available in the WebServer. Should I do something extra to make profit? Johan Henselmans jo...@netsense.nl ___ Do not 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 Johan Henselmans jo...@netsense.nl 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: Semi OT: Apache goes into frozen state
On 5 apr 2011, at 02:40, Johnny Miller wrote: Hi, I was wondering if anyone else had experienced the same thing. I have a X-Serve running OS X 10.5.8 whose apache server is going into a frozen state where it stops serving requests and can only be restarted by rebooting the machine. All other services seem to being running normally. If I look at the error_log I see many variations of this error: Too many open files in system:Some/path/on/system I've seen this thread on the Apple discussion board: http://discussions.apple.com/thread.jspa?threadID=1449787start=15tstart=0 And this article in the knowledge base: http://support.apple.com/kb/HT3512 Does anyone have more wisdom to share? I once had a similar problem when I started my own objectstore coordinator for each session, along the line of: // this causes all kinds of mayhem: do not do this at home, it creates a new database connection for every session // EOObjectStoreCoordinator coord = new EOObjectStoreCoordinator(); // myEc = ERXEC.newEditingContext(coord); // myEc().setDelegate(this); After that, the database would have so many open connections after a while that the database would have too many open files, and would break down. I also seem to remember that some apache configuration would freeze with a specific log-rotation setup. (that was apache 1.3 on a FreeBSD machine) Furthermore I would look for something in apache that opens a file but never closes these. You might use opensnoop for that, see man opensnoop, or lsof might give you some clues. Thanks in advance, Johnny Miller Kahalawai Media Corp http://www.kahalawai.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/johan%40netsense.nl This email sent to jo...@netsense.nl Johan Henselmans jo...@netsense.nl 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: D2W Timestamp attribute component
Op 19 jan 2011, om 18:46 heeft Dan Beatty het volgende geschreven: Greetings Wizards named David, and other geniuses of WO, Is there such a thing as a timestamp attribute level component for D2W that includes a clock as well as a calendar? Any kind of clock will do. Obviously, the worst case is that I build the darn thing myself. Although, the beauty of D2W is incredible capability of reuse of code and components that D2W has. Thank you, There is the ERDirectToWeb ERDEditDatePopup componennt, which requires a editTime rule set to 1 to get date and time. I have actually a TimeStamp Component along the lines of ERMDDatePicker working (conveniently named ERDDateTimePicker) based on the DatePicker of Jeremy Jongsma (http://home.jongsma.org/software/js/datepicker). I got stuck in the localization of the timestampformat, as I could not derive the locale from the browser info. I noticed that there was some locale preparations in ERXSession, but is that working already? (It would have been nice if someone came up with an IP-based locale, which I saw some time ago at a WWDC. Was it 2008 that 5.5 was announced?). I'll clean it up tomorrow to only work with iso8601 formatiing, and send it off to jira. Daniel Beatty Computer Scientist, Detonation Sciences Branch Code 474300D 2400 E. Pilot Plant Rd. M/S 1109 China Lake, CA 93555 daniel.bea...@navy.mil (760)939-7097 ___ Do not 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 jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not 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
NPE at at er.modern.directtoweb.components.buttons.ERMDRemoveRelatedButton.showRemoveButton(ERMDRemoveRelatedButton.java:197) with isEntityDeletable=false
Just to warn some people that might get caught in the same corner. I was happily testing rules on NavigationMenu.plists and a new DateTimePicker component, when I got at strange message when I tried to edit a relation from an entity. The thing was a n-1 relation, nothing special (a location where a performance might take place). When I tried to select a location, the ModernDirectToWeb would crash. I first thought it had to do with some error in the EOModel, and noticed that there were a lot of the properties of the Location entity flagged as being part of a client class. Removed them, no dice. To make a few hours search short (like completely rebuilding the app with the navigation menu stripped etc. I found out what is was. I had set up a rule if session.isAdmin = isEntityDeletable= true, and the accompanying rule true= isEntityDeletable=false As I was trying to replace this stuff with a role based structure, I had all forgotten about it, and the session.isAdmin was disabled, so nothing should be deletable. When I enabled isEntityDeletable=true the crashes stopped. Apparently, if you have an entity that can be created and where relations can be created, then ERModernDirectToWeb assumes that it should also be able to remove these relations, and that collided with the isEntityDeletable rule. Johan Henselmans jo...@netsense.nl ___ Do not 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
Struggling with D2W Custom Components, how to get a Custom Component Page?
Here's the idea: I have a custom component page from somewhere else with javascript that does a whole bunch of calculations based on values of an EO. No problem, I thought, according to the D2W Rules References I follow rule 7: (http://wiki.objectstyle.org/confluence/display/WO/D2W+Rules+Reference+-+Cookbook+-+FAQ) 7. How do I easily use my own custom component in a Direct to Web page? Step 1: Add the following rules to your rule file: 100: pageConfiguration = ListTheEntity and propertyKey = theProperty = componentName = D2WCustomComponent 100: pageConfiguration = ListTheEntity and propertyKey = theProperty = customComponentName = MyThePropertyComponent Step 2: Create a component in your project named 'MyThePropertyComponent' and give it an 'object' and 'key' binding. The object will receive the current object, and the key will receive the current propertyKey (as a string) from DirectToWeb. Do with them what you will. public EOEnterpriseObject object() { return (EOEnterpriseObject) valueForBinding(object ); } public String key() { return (String) valueForBinding(key ); } So I add these methods, but removed this propertyKey thingy because I want my the entity to be used as the object. Im my situatiion: 100: pageConfiguration = InspectTheEntity = componentName = D2WCustomComponent 100: pageConfiguration = InspectTheEntity = customComponentName = MyNiceJavascriptAndAllPage first I had to add some extra methods to this page, because WebObjects complained it could not set object and key values, so I added: public void setObject(EOEnterpriseObject anObject) { currentObject = anObject; } public void setKey(String aKey) { currentkey = aKey; } But then it displayed the page. 20 times. I get a display of my custom page for all the components in the page. So component 1 displays a complete empty page, component 2 etc. None of my EOEnterprise values are displayed from the EOObject that I selected. I must be missing something. I understood that the object would pass through the current select enterprise object, and I could use that to fill in the values in my custom page. Apparently, that is not the case. I tried to find some customcomponent in the d2wmodels of BugTracker or ERMoviesDemo, but did not find anything over there. Can someone enlighten me? Johan Henselmans jo...@netsense.nl ___ Do not 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: ERModern* and localization
On 29 okt 2010, at 18:15, David Holt wrote: On 2010-10-29, at 2:08 AM, Johan Henselmans wrote: Op 28 okt 2010, om 18:38 heeft David Holt het volgende geschreven: On 2010-10-28, at 4:20 AM, Johan Henselmans wrote: Op 21 okt 2010, om 15:53 heeft David LeBer het volgende geschreven: On 2010-10-21, at 9:46 AM, David Avendasora wrote: Hey Johan, I had the same problem to start with. They are handled by the Localizable.strings instead of rules (yeah, weird, I know) I think Johan understood that... For Example in Resources/English.lproj/Localizable.strings I have: Pages.QueryAccount = Search for Accounts; In Resources/Spanish.lproj/Localizable.strings I have: Pages.QueryAccount = Buscar para Los Cuentas; The trick (aside from the Pages prefix) is that you are localizing the page configuration name. That works nice and dandy, but I can't seem to get the Search All page to localize. I tried to remove the Home page from the navigation.plist, and to point the homeAction in MainNavigationController to something else, but the default Search All page still shows up. Did you look in DirectAction to see where the login action points? You can set the default page in rules. You need to define startUpTask and startUpEntity Thanks! I only found examples of the rules in ERDiva*, in which it assigned home to the startupTask. In the default template of Eclipse, which property would you assign to the the startUpTask? (I tried several, like query, with startUpEntity = Performance, or startUpTask = queryPerformance or startUpTask = queryPerformanceTask , but none of the rules seemed to work). From ERD2WFactory: public WOComponent defaultPage(WOSession wosession) { D2WContext d2wcontext = ERD2WContext.newContext(wosession); return pageWithContextTaskEntity(d2wcontext, d2wcontext.startupTask(), d2wcontext.startupEntityName(), wosession.context()); } If you set the startupTask as 'query' and the startupEntityName as 'Performance' that should work. If your default task is 'inspect' or 'edit' you'll need to feed it a specific object and if it's 'list' you'll need to feed it a data source. Some sort of default page based on a login action is probably a more reasonable way to go. I did that, and indeed, it is a lot easier: I changed the default homeAction in MainNavigationController.java to: return queryPageForEntityName(Performance.ENTITY_NAME); and in DirectAction.java I returned return (WOActionResults) D2W.factory().queryPageForEntityNamed(Performance.ENTITY_NAME, session()); for loginAction(). And removed Home from the Navigation.plist. Looking at the Page Configuration it says No Page Configuration, so localizing the Page attribute does not work. How then, do you localize this Search All page? This is handled by this rule in ERModernLook 20 : task = 'queryAll' = displayNameForPageConfiguration = Search All [com.webobjects.directtoweb.Assignment] You'll need to disable the rule and then, since there is no page configuration for queryAll, set a new one in your app: 100 : task = 'queryAll' = pageConfiguration = QueryAll [com.webobjects.directtoweb.Assignment] It's a bit odd. I tried to overrule the You do know that to override a rule you need to provide a rule with priority than the one you want to override? The 10 should be 20 20 : task = 'queryAll' = displayNameForPageConfiguration = Search All [com.webobjects.directtoweb.Assignment] with 10 : task = 'queryAll' = displayNameForPageConfiguration = QueryAll [com.webobjects.directtoweb.Assignment] 10 : task = 'queryAll' = pageConfiguration = QueryAll [com.webobjects.directtoweb.Assignment] and with 10 : task = 'queryAll' = displayNameForPageConfiguration = [com.webobjects.directtoweb.Assignment] 10 : task = 'queryAll' = pageConfiguration = QueryAll [com.webobjects.directtoweb.Assignment] but they all ended up displaying the Search All header. Only after disabling the rule with priority 20 in ERModernLook, the header of the QueryAll page adjusted to the localized option. This is what I had to do too. David And then add entries to your .strings file Pages.QueryAll = This searches everything; Another still lingering question is how to localize entity names and property keys of entities. Entity: Entity.name.Person = HumanUser; PropertyKey:PropertyKey.isDone = Complete; Odd. I tried that, and failed. Then I retried it after your mail, and now it works. You must have sent me some magical attachments in your mail... Dave On Oct 21, 2010, at 9:28 AM, Johan Henselmans wrote: I might say I really like the way ERModernLook…looks. One question that remains for me how localization is taken care of: I added # Localization ERXLanguages = (en,nl
Re: ERModern* and localization
Op 28 okt 2010, om 18:38 heeft David Holt het volgende geschreven: On 2010-10-28, at 4:20 AM, Johan Henselmans wrote: Op 21 okt 2010, om 15:53 heeft David LeBer het volgende geschreven: On 2010-10-21, at 9:46 AM, David Avendasora wrote: Hey Johan, I had the same problem to start with. They are handled by the Localizable.strings instead of rules (yeah, weird, I know) I think Johan understood that... For Example in Resources/English.lproj/Localizable.strings I have: Pages.QueryAccount = Search for Accounts; In Resources/Spanish.lproj/Localizable.strings I have: Pages.QueryAccount = Buscar para Los Cuentas; The trick (aside from the Pages prefix) is that you are localizing the page configuration name. That works nice and dandy, but I can't seem to get the Search All page to localize. I tried to remove the Home page from the navigation.plist, and to point the homeAction in MainNavigationController to something else, but the default Search All page still shows up. Did you look in DirectAction to see where the login action points? You can set the default page in rules. You need to define startUpTask and startUpEntity Thanks! I only found examples of the rules in ERDiva*, in which it assigned home to the startupTask. In the default template of Eclipse, which property would you assign to the the startUpTask? (I tried several, like query, with startUpEntity = Performance, or startUpTask = queryPerformance or startUpTask = queryPerformanceTask , but none of the rules seemed to work). Looking at the Page Configuration it says No Page Configuration, so localizing the Page attribute does not work. How then, do you localize this Search All page? This is handled by this rule in ERModernLook 20 : task = 'queryAll' = displayNameForPageConfiguration = Search All [com.webobjects.directtoweb.Assignment] You'll need to disable the rule and then, since there is no page configuration for queryAll, set a new one in your app: 100 : task = 'queryAll' = pageConfiguration = QueryAll [com.webobjects.directtoweb.Assignment] It's a bit odd. I tried to overrule the 20 : task = 'queryAll' = displayNameForPageConfiguration = Search All [com.webobjects.directtoweb.Assignment] with 10 : task = 'queryAll' = displayNameForPageConfiguration = QueryAll [com.webobjects.directtoweb.Assignment] 10 : task = 'queryAll' = pageConfiguration = QueryAll [com.webobjects.directtoweb.Assignment] and with 10 : task = 'queryAll' = displayNameForPageConfiguration = [com.webobjects.directtoweb.Assignment] 10 : task = 'queryAll' = pageConfiguration = QueryAll [com.webobjects.directtoweb.Assignment] but they all ended up displaying the Search All header. Only after disabling the rule with priority 20 in ERModernLook, the header of the QueryAll page adjusted to the localized option. And then add entries to your .strings file Pages.QueryAll = This searches everything; Another still lingering question is how to localize entity names and property keys of entities. Entity: Entity.name.Person = HumanUser; PropertyKey: PropertyKey.isDone = Complete; Odd. I tried that, and failed. Then I retried it after your mail, and now it works. You must have sent me some magical attachments in your mail... Dave On Oct 21, 2010, at 9:28 AM, Johan Henselmans wrote: I might say I really like the way ERModernLook…looks. One question that remains for me how localization is taken care of: I added # Localization ERXLanguages = (en,nl) er.extensions.ERXLocalizer.defaultLanguage=English er.extensions.ERXLocalizer.useLocalizedFormatters=true er.extensions.ERXLocalizer.fileNamesToWatch=(Localizable.strings,ValidationTemplate.strings) er.extensions.ERXLocalizer.availableLanguages=(English,Dutch) #er.extensions.ERXLocalizer.frameworkSearchPath=(app,ERModernDirectToWeb,ERDirectToWeb,ERExtensions) er.extensions.ERXLocalizer.English.locale = en er.extensions.ERXLocalizer.Dutch.locale = nl to the Properties, and Localizable.strings in Dutch.lproj and English.lproj tend to work for the navigation menu items, but I noticed that some of the stuff does not localize by default: For instance, there if I have a queryPageForEntityNamed it still tells Query [Entity Name], and editPageForNewObjectWithEntityNamed it tell Create [Entity Name]. I'd like to be able to replace Query with 'Zoek' and Create with Maak for instance. I could not find a way to localize these terms nor the entityNames, like Ramsay Gurley does in his R2D2W framework and templates, where one can add in Localizable.strings (eg) Entity.name.Performance = Voorstelling; Have I overlooked something? Plans in that direction? (that was the dutch lesson for today). Johan Henselmans jo...@netsense.nl ___ Do not post admin requests
Re: ERModern* and localization
Op 21 okt 2010, om 15:53 heeft David LeBer het volgende geschreven: On 2010-10-21, at 9:46 AM, David Avendasora wrote: Hey Johan, I had the same problem to start with. They are handled by the Localizable.strings instead of rules (yeah, weird, I know) I think Johan understood that... For Example in Resources/English.lproj/Localizable.strings I have: Pages.QueryAccount = Search for Accounts; In Resources/Spanish.lproj/Localizable.strings I have: Pages.QueryAccount = Buscar para Los Cuentas; The trick (aside from the Pages prefix) is that you are localizing the page configuration name. That works nice and dandy, but I can't seem to get the Search All page to localize. I tried to remove the Home page from the navigation.plist, and to point the homeAction in MainNavigationController to something else, but the default Search All page still shows up. Looking at the Page Configuration it says No Page Configuration, so localizing the Page attribute does not work. How then, do you localize this Search All page? Another still lingering question is how to localize entity names and property keys of entities. Dave On Oct 21, 2010, at 9:28 AM, Johan Henselmans wrote: I might say I really like the way ERModernLook…looks. One question that remains for me how localization is taken care of: I added # Localization ERXLanguages = (en,nl) er.extensions.ERXLocalizer.defaultLanguage=English er.extensions.ERXLocalizer.useLocalizedFormatters=true er.extensions.ERXLocalizer.fileNamesToWatch=(Localizable.strings,ValidationTemplate.strings) er.extensions.ERXLocalizer.availableLanguages=(English,Dutch) #er.extensions.ERXLocalizer.frameworkSearchPath=(app,ERModernDirectToWeb,ERDirectToWeb,ERExtensions) er.extensions.ERXLocalizer.English.locale = en er.extensions.ERXLocalizer.Dutch.locale = nl to the Properties, and Localizable.strings in Dutch.lproj and English.lproj tend to work for the navigation menu items, but I noticed that some of the stuff does not localize by default: For instance, there if I have a queryPageForEntityNamed it still tells Query [Entity Name], and editPageForNewObjectWithEntityNamed it tell Create [Entity Name]. I'd like to be able to replace Query with 'Zoek' and Create with Maak for instance. I could not find a way to localize these terms nor the entityNames, like Ramsay Gurley does in his R2D2W framework and templates, where one can add in Localizable.strings (eg) Entity.name.Performance = Voorstelling; Have I overlooked something? Plans in that direction? (that was the dutch lesson for today). Johan Henselmans jo...@netsense.nl ___ Do not 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 webobje...@avendasora.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/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 Johan Henselmans jo...@netsense.nl ___ Do not 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: WOWODC 2010 recordings and WOWODC 2011
Op 22 okt 2010, om 17:32 heeft Pascal Robert het volgende geschreven: Ok, so we are thinking of releasing the WOWODC 2010 recordings as part of an annual membership. The money raised would be raised to give awards to major contributors to the community, pay for hosting of community tools/sites, etc. This is why I did the Google Moderator thing, so that we can know what people wants and to make sure it happens (well, it happens if the idea make sense). That would be a nice solution, if that would exempt the people that came to the WOWODC conference. The possibility to have an individual payment for one conference podcast would be great. Just make it half the price of a WOWODC membership, and people can decide for themselves... About WOWODC 2011, Montreal won as the first choice, Amsterdam won overall, but North America have more votes than Europe. This is not making things easy, so I would say let's do it in Montreal again since it's in the middle between West Coast and Europe, and since our currency is always low compared to the USD and the Euro, it's cheaper too. Comments welcome :-) I am from Amsterdam, and I would vote for Montreal, it's more convenient, it's a nice place, everybody can exercise their french, which, when everybody finally admits that the french are always right, will be the Next World Language, so it's une situation gagnant-gagnant (or from a fr_fr view: une situation où tout le monde y gagne). -- 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/johan%40netsense.nl This email sent to jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not 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: ERMD2WEditAttachment in Edit page only works once.
On 20 okt 2010, at 18:35, David Holt wrote: Hi Johan! On 2010-10-20, at 7:27 AM, Johan Henselmans wrote: I tried to find out why this happens and it seems that ERFileAttachmentProcessor.java does not get a configurationName passed on. Which leads to the following questions: Is it possible to have two uploadblobs in one form with ERMD2WEditAttachment? It should be. You need two different configuration names as you've done. Why can't I set the properties of two separate ERAttachments in the Properties file? I don't believe the properties are where your problem lies. If you remember from the screencast, you need to set three bindings on an upload - configurationName, editingContext, and attachment. If you have multiple uploaders on a pageConfiguration, then it seems that you'll need to use the rules to tell the component the bindings. 100 : (task = 'edit' and entity.name = 'Document' and propertyKey = 'attachedFile') = attachmentConfigurationName = Document.attachedFile [com.webobjects.directtoweb.Assignment] David OK, I added the rules properyKey= picturebig - attachmentConfigurationName = ShowInfo.picturebig, and properyKey= picturesmall - attachmentConfigurationName = ShowInfo.picturesmall to the previous rules: properyKey= picturebig - componentName = ERMD2WEditAttachment, properyKey= picturesmall - componentName = ERMD2WEditAttachment, uploading the first item (picturebig) worked, apart from the following error: There is no element on this page with the id AFUIC_0. The second ERMD2WEditAttachment still came with the error: There is no 'er.attachment.null.file.filesystemPath' or 'er.attachment.file.filesystemPath' property set. after adding the rules: properyKey= picturesmall - attachmentId = ShowInfo.picturesmall, properyKey= picturebig - attachmentId = ShowInfo.picturebig, I did not get any errors uploading pictures to the form for the first time, but clicking on the edit button in the ERMD2WEditAttachment, I could select a picture for the bottom component (picturesmall), but for the component above it, I did not get a filebrowser window, the original picture disappeared, but saving the complete entity and opening it again did show the old picture in the first ERMD2WEditAttachment. Is there anything else I have to set? I assume I do not have to set the editing Context for D2W? Johan Henselmans jo...@netsense.nl ___ Do not 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/programmingosx%40mac.com This email sent to programming...@mac.com Johan Henselmans jo...@netsense.nl ___ Do not 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
ERModern* and localization
I might say I really like the way ERModernLook…looks. One question that remains for me how localization is taken care of: I added # Localization ERXLanguages = (en,nl) er.extensions.ERXLocalizer.defaultLanguage=English er.extensions.ERXLocalizer.useLocalizedFormatters=true er.extensions.ERXLocalizer.fileNamesToWatch=(Localizable.strings,ValidationTemplate.strings) er.extensions.ERXLocalizer.availableLanguages=(English,Dutch) #er.extensions.ERXLocalizer.frameworkSearchPath=(app,ERModernDirectToWeb,ERDirectToWeb,ERExtensions) er.extensions.ERXLocalizer.English.locale = en er.extensions.ERXLocalizer.Dutch.locale = nl to the Properties, and Localizable.strings in Dutch.lproj and English.lproj tend to work for the navigation menu items, but I noticed that some of the stuff does not localize by default: For instance, there if I have a queryPageForEntityNamed it still tells Query [Entity Name], and editPageForNewObjectWithEntityNamed it tell Create [Entity Name]. I'd like to be able to replace Query with 'Zoek' and Create with Maak for instance. I could not find a way to localize these terms nor the entityNames, like Ramsay Gurley does in his R2D2W framework and templates, where one can add in Localizable.strings (eg) Entity.name.Performance = Voorstelling; Have I overlooked something? Plans in that direction? (that was the dutch lesson for today). Johan Henselmans jo...@netsense.nl ___ Do not 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: looking for webobjects sample code
On 20 okt 2010, at 15:56, Travis Britt wrote: SecretPal is a very good, very complete, very new example from Mike: https://wonder.svn.sourceforge.net/svnroot/wonder/branches/Wonder_5_0_0_WebObjects_5_4_Branch/Wonder/Applications/SecretPal/ Which fails to build with this error: Description ResourcePathLocationType There is no key 'browser' for the keypath 'context.request' in PageWrapper PageWrapper.html/SecretPal/Components/Application/PageWrapper.wo line 1 WebObjects Template Problems (Wonder54_Branch revision 11598, WOLips 3.6.6210 etc) On Oct 19, 2010, at 4:52 PM, Ray Sanders wrote: I'm relatively new to WebObjects (at least on eclipse). I have what I believe is the current version of eclipse (3.6.1 with the custom install script that includes WOLips). I also have the 5.3.3 and 5.4.3 versions of WebObjects installed in /Developer/WebObjects/Versions (per the instructions online). What I need is sample code that compiles on the current configuration. What I have is the old XCode RealEstate/PetShop code, which I can't get to compile cleanly on eclipse (although I have made some minor progress reducing the number of errors). Does current sample code exist ? thanks, Ray ___ Do not 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 jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not 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
Now we're talking about ERAttachments anyway: D2W and ERAttachments example?
As some of you might I missed WOWODC2010 because of a train delay in Europe (they privatized the railways, so now we have a railway system working like the healthcare in the US: too little. too late for most of us), so I did not have the opportunity to find out what all that excitement about ERModernLookAtMeIAmUsingCSS! or whatever it was called was about (/ironyThanks David, e.a. for the work). As David did this nice podcast about ERAttachment and normal Components, is there a podcast with example that is displaying the same stuff in D2W and ERModernLook? Or should I wait till the morning comes, till the morning comes (sorry got distracted by a Neil Young song), ahh uhm, should I wait till the WOWODC2010 podcasts are available for purchase? Johan Henselmans jo...@netsense.nl ___ Do not 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
strange Exceptions
) ); spec.setRefreshesRefetchedObjects(true); printedTicketList = ec.objectsWithFetchSpecification(spec); return printedTicketList; This also results in a Exception. Mar 09 22:38:27 kassa[60036] DEBUG NSLog - evaluateExpression: com.webobjects.jdbcadaptor.PostgresqlExpression: SELECT t0.ticket_lineitem_id, t0.ticket_adressen_id, t0.ticket_amount1, t0.ticket_amount2, t0.ticket_amount3, t0.ticket_date_printed, t0.ticket_date_sold, t0.ticket_employee_id, t0.ticket_external_id, t0.ticket_hash, t0.ticket_id, t0.ticket_lineitem_uid, t0.ticket_no_of_tickets1, t0.ticket_no_of_tickets2, t0.ticket_order_id, t0.ticket_paydesksession_id, t0.ticket_perf_id, t0.ticket_productid, t0.ticket_remarks, t0.ticket_showattendant_id FROM ticketssold t0 INNER JOIN lineitem T1 ON t0.ticket_lineitem_uid = T1.lineitem_uid INNER JOIN ORDERS T2 ON T1.order_id = T2.order_id WHERE (t0.ticket_paydesksession_id = ?::int4 AND T2.cardtype is NULL) ORDER BY t0.ticket_date_sold ASC withBindings: 1:770(ticketPaydeskSessionId) Mar 09 22:38:27 kassa[60036] DEBUG er.transaction.adaptor.FaultFiring - databaseContextDidSelectObjects class com.webobjects.eocontrol.EOFetchSpecification(entityName=TicketSold, qualifier=((ticketPaydeskSessionId = 770) and (lineItem.order.cardtype = null)), isDeep=true, usesDistinct=false, sortOrdering=(class com.webobjects.eocontrol.EOSortOrdering(ticketDateSold compareAscending)), hints=null, _prefetchingRelationshipKeyPaths = null) Exception at er.extensions.eof.ERXDatabaseContextDelegate.databaseContextDidSelectObjects(ERXDatabaseContextDelegate.java:343) ... skipped 4 stack elements at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223) at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:167) ... skipped 5 stack elements 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:1211) at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:) at nl.netsense.kassa.Session$$M$b532ffda.printedTicketList(Session.java:819) at nl.netsense.kassa.Session$$A$b532ffda.printedTicketList(generated:Unknown) at nl.netsense.kassa.Session.printedTicketList(Session.java:820) ... skipped 41 stack elements at nl.netsense.kassa.Application.dispatchRequestImmediately(Application.java:50001) ... skipped 1 stack elements at nl.netsense.kassa.Application.dispatchRequest(Application.java:50001) ... skipped 3 stack elements What am I doing wrong? Johan Henselmans jo...@netsense.nl ___ Do not 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
user is only allowed to log in once
I store a persistent PDsession EO (not related to WOSession): if a user is timed out in a WOSessions, the next time the user logs in, the information from the PDsession is restored unless they explicitely close it. The problem that occurs is that sometimes a user logs itself in twice, so the information in the PDsession is updated from two browsers. So I have to prevent a user to log in twice. An option I thought of was: -store a WOSessionID in thePDsession -when the user logs in, check if that session is still available in the applications WOSessionStore. -if so, refuse login Problem is that (as far as I know) applications do not share the sessionID's so if there would be another WOApplicatiion that has the same requirement, the user would still be able to login. So I thought of changing the WOSessionStore to something persistent, instead of residing it in memory, and let the applications that have to make use of such a requirement (user can only login on specific application) to store their sessions in a persistent place. In noticed that way is also mentioned in: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/com/webobjects/appserver/WOSessionStore.html There is one subclass of WOSessionStore implemented for the developer's convenience. A server WOSessionStore (the default) stores session state in the server, in application memory. The serverSessionStore method returns this WOSessionStore. You can create a custom session store by making a subclass of WOSessionStore. The subclass should properly implement the saveSessionForContext andrestoreSessionWithID methods and should have a public method that the application object can use to obtain an instance. Some interesting session stores could be: • A database session store that stores session data in a database as blobs, with the session ID as the primary key. This kind of WOSessionStore can be shared by many instances of the same WebObjects application, thus distributing the load (requests) among the instances. • An adaptive session store that stores session state either in cookies or on the server, depending on what the client supports. If you create your own WOSessionStore class that generates persistent objects, you should implement an algorithm that cleans up session state after the session is inactive for a long time. The server WOSessionStore provided by WebObjects performs this clean-up properly, but the API is not yet public. I also noticed that in the Developer Examples There is the WOSessionStoreExample Framework, that seems to implement something like this. Does anybody have any experience with this technique, does it solve the problem I am trying to tackle or is there another approach more appropriate? Johan Henselmans jo...@netsense.nl ___ Do not 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
Retrieving an EO from a serialized Propertylist in database table textfield
I am trying to get a NSarray of NSDictionaries with Objects from one application to another application via a database text field. My idea was that I would first serialize the stuff on one side: setPlistTextField ( NSPropertyListSerialization.stringFromPropertyList( cart() ) ) next, get it out on the other side: itemsList= (NSArray) NSPropertyListSerialization.propertyListFromString( plistTextField() ) And then from the NSDictionary retrieve the EO Objects with some EOUtilities method. I first thought that Product ciProduct = (Product) EOUtilities.localInstanceOfObject( session.myEc(), (nl.netsense.theater.Product) tmpCartItem.objectForKey(product) ) would do the trick, but that is not the case (I can imagine that the stuff I am sending it is not really a EnterpriseObject. The NSDictionary that I am getting contains stuff like this: {performance = nl.netsense.theater.Performance pk:994; total = 11.0; qty = 1; product = nl.netsense.theater.Product pk:136; } Which EOUtilities method would be able to retrieve the EO again from a dictionary value like: performance = nl.netsense.theater.Performance pk:994 ? Johan Henselmans jo...@netsense.nl ___ Do not 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: failed to provide new primary keys for entity
On 24 feb 2010, at 21:04, Johnny Miller wrote: OK. There is officially a menehune living in my machine. Because all of a sudden it just works - with no changes on my part. I've double/triple checked the plists nothing has changed. I have had the same experience, but on a different file: sometimes I change a properties file, I am sure of it, do an ant install, and the old properties file did not get overwritten. It seems that sometimes the file routines of Mac OS X-Eclipse do not catch all the changes. Since then I have gotten the habit of making sure that I do a 'clean project' and removing the original install folders in /Library/WebObjects/Applications. I'm going to call my local Catholic priest to resolve the issue. On Feb 24, 2010, at 9:08 AM, David Avendasora wrote: On Feb 24, 2010, at 2:02 PM, Chuck Hill wrote: On Feb 24, 2010, at 10:53 AM, Johnny Miller wrote: Hi, I'm still stuck :( I thought this information might be helpful. If I do a System.out on entity.primaryKeyAttributeNames() I see the right keys. If I System.out on the relationships I can see they are properly set and not null. Yet, if I System.out on entity.primaryKey I get a return of null. Could this be a bug in the MySQL plugin? It is almost certainly a defect in your model. + 1 Can you paste the contents of the plist files (or attache the plist files themselves) for all the entities involved in the relationships? I've had times where everything looks fine in Entity Modeler, but the plists have problems. Dave Johnny Miller Kahalawai Media Corp http://www.kahalawai.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/johan%40netsense.nl This email sent to jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not 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: Quoting hell, anybody a solution?
On 18 feb 2010, at 20:30, Anjo Krank wrote: The nicest would the to move the JS to a behaviour, based on an attribute: YourLink : WOHyperlink { imageID = sess.selectedPerformance.primaryKey; } Based on this idea I ended up with this solution: wo:WOHyperlink href='javascript:ShowContent(this)' onMouseOver='ShowContent(this)' onMouseOut='HideContent(this)' divID=Image elementID=[mySess.selectedPerformance.primaryKey] wo:WOGenericContainer elementName = [bigPictureDivIDNoStyle] style = display:none; position: absolute; border-style: solid; background-color: #b53f1d; padding: 5px; width: 200px img src=[mySess.selectedPerformanceImageBig] border=0/ /wo:WOGenericContainer The javascript code to display this stuff then ends up with: function ShowContent(d) { if(d.length 1) { return; } var dd = document.getElementById(d.getAttribute(divID)+d.getAttribute(elementID)); AssignPosition(dd); dd.style.display = block; } So depending on the elementID and the divID the content is shown. A very nice solution, that makes sure all the javascript code is in javascript and the css en html is in the WO. There only lingering problem is the div id that is now generated with java code as this; public String bigPictureDivIDNoStyle(){ return div id=\Image+mySess().selectedPerformance().primaryKey()+\; } Mike suggested to use OGNL style, so something like wo:WOGenericContainer elementName = ~\div id=Image\ + mySess.selectedPerformance.primaryKey + \\ style = display:block; position: absolute; border-style: solid; background-color: #b53f1d; padding: 5px; width: 200px would put all the div identification in the HTML code and not in the java code. Problem is that I am using the WO54 parser, with the [mySess.selectedPerformance.primaryKey] inline notation. I can not seem to find a way to enable the WOOGNL framework without blowing up that coding style, they do not seem to be compatible. Or is there a way to get them compatible? { LI.images A: function(e) { e.onmouseup = function()... } } Cheers, Anjo Am 18.02.2010 um 20:18 schrieb Mike Schrag: YourLink : WOHyperlink { href = ~'javascript:ShowContent(' + sess.selectedPerformance.primaryKey + ')'; } And handle the Image + pk in the JS method? Also, you could: Whoops -- typo, though that's an option, too. YourLink : WOHyperlink { href = ~'javascript:ShowContent(this)'; imageID = sess.selectedPerformance.primaryKey; } And handle that in the JS by Image + e.getAttribute(imageID) this might be the nicest suggestion so far ... 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/johan%40netsense.nl This email sent to jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not 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
Quoting hell, anybody a solution?
I am trying to call a webobjects string in an a href; First i tried this: a href = javascript:ShowContent('wo:WOString value =[mySess.selectedPerformance.primaryKey]/') ; onMouseOver = ShowContent('wo:WOString value=[mySess.selectedPerformance.primaryKey]/'); return true; onMouseOut = HideContent('wo:WOString value =[mySess.selectedPerformance.primaryKey]/'); return true; Of course, that gave errors about the quoting. It said: 'The character '' must be escaped'. Expected behavior, too many quotes. Smart ass as I am (just have been listening to Bonzo Dog Doo-bah Band's 'Look at me I'm wonderful') I thought that using the quot; instead of would take care of it: a href = quot; javascript:ShowContent('wo:WOString value =[mySess.selectedPerformance.primaryKey]/') quot; onMouseOver = quot; ShowContent('wo:WOString value=[mySess.selectedPerformance.primaryKey]/'); return true; quot; onMouseOut = quot; HideContent('wo:WOString value =[mySess.selectedPerformance.primaryKey]/'); return true; quot; I would assume that the webobjects parser would parse the WOString bit, then pass the rest to the webserver which in return would pass it to the browser where the quot; quoting would be returned to it glorious quoting and be interpreted by the browser as being a javascript. Unfortunately that resulted in: SAXParseException: Open quote is expected for attribute href associated with an element type a. at org.apache.xerces.parsers.AbstractSAXParser.parse(null:Unknown) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(null:Unknown) at com.webobjects.appserver.parser.woml.WOMLTemplateParser.process(WOMLTemplateParser.java:339) at com.webobjects.appserver.parser.woml.WOMLTemplateParser.parse(WOMLTemplateParser.java:653) at com.webobjects.appserver.parser.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java:40) at com.webobjects.appserver.parser.WOComponentTemplateParser.templateWithHTMLAndDeclaration(WOComponentTemplateParser.java:438) ... skipped 1 stack elements at com.webobjects.appserver.WOComponent.template(WOComponent.java:499) ... skipped 17 stack elements Anybody a correct way of quoting? (Because the liberal use of quotes in this document, you should not feed this document to your SAXParser) Johan Henselmans jo...@netsense.nl ___ Do not 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: Quoting hell, anybody a solution?
On 18 feb 2010, at 12:11, Henrique Gomes wrote: On Feb 18, 2010, at 8:45 AM, Johan Henselmans wrote: I am trying to call a webobjects string in an a href; First i tried this: a href = javascript:ShowContent('wo:WOString value =[mySess.selectedPerformance.primaryKey]/') ; onMouseOver = ShowContent('wo:WOString value=[mySess.selectedPerformance.primaryKey]/'); return true; onMouseOut = HideContent('wo:WOString value =[mySess.selectedPerformance.primaryKey]/'); return true; Humble suggestion: why not write a method that would return the all href, onMouse, etc? The method can do all the string operations in java... Javascript:ShowContent(' + mySess.selectedPerformance.primaryKey +') HG Thanks for the suggestion, but I wanted to make it a little bit more variable: ie, changing the contents of the wod or wo/html file without having to recompile the application. Johan Henselmans jo...@netsense.nl ___ Do not 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: Quoting hell, anybody a solution?
On 18 feb 2010, at 17:05, Anjo Krank wrote: Thanks for the suggestion, but I wanted to make it a little bit more variable: ie, changing the contents of the wod or wo/html file without having to recompile the application. If you are running in debug mode, you can simply change the code? Or do you mean in deployment? Srzly?!? No, I meant that I wanted to make the wod more readable without having to resort to java code that is generating HTML. It is a bit weird to have this type of code in your java class, especially the css style information. public String bigPictureHref(){ return a href=\javascript:ShowContent('Image+mySess().selectedPerformance().primaryKey()+')\ onMouseOver = \ShowContent('Image+mySess().selectedPerformance().primaryKey()+'); return true;\ onMouseOut = \HideContent('Image+mySess().selectedPerformance().primaryKey()+'); return true;\ ; } public String bigPictureDivID(){ return div id=\Image+mySess().selectedPerformance().primaryKey()+\ style=\display:none; position:absolute; border-style: solid; background-color: #b53f1d; padding: 5px; width: 200px\ ; } Cheers, Anjo Am 18.02.2010 um 16:59 schrieb Johan Henselmans: On 18 feb 2010, at 12:11, Henrique Gomes wrote: On Feb 18, 2010, at 8:45 AM, Johan Henselmans wrote: I am trying to call a webobjects string in an a href; First i tried this: a href = javascript:ShowContent('wo:WOString value =[mySess.selectedPerformance.primaryKey]/') ; onMouseOver = ShowContent('wo:WOString value=[mySess.selectedPerformance.primaryKey]/'); return true; onMouseOut = HideContent('wo:WOString value =[mySess.selectedPerformance.primaryKey]/'); return true; Humble suggestion: why not write a method that would return the all href, onMouse, etc? The method can do all the string operations in java... Javascript:ShowContent(' + mySess.selectedPerformance.primaryKey +') HG Thanks for the suggestion, but I wanted to make it a little bit more variable: ie, changing the contents of the wod or wo/html file without having to recompile the application. Johan Henselmans jo...@netsense.nl ___ Do not 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/anjo%40krank.net This email sent to a...@krank.net Johan Henselmans jo...@netsense.nl ___ Do not 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
mailing from quartz and a direct action
I have a direct action that runs from a curl job, but I would like to be able to run the same job as a quartz job. Somehow I can not seem to find the magic combination, as mailing from the DA works perfect, but when I call the DA from a quartz job, the whole thing fails. Does anyone have a code example that combines a quartz job with a direct action to send a HTML email component? Johan Henselmans jo...@netsense.nl ___ Do not 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: Funky IE experiences with iFrames from different website
On 18 jan 2010, at 23:09, Johan Henselmans wrote: I have a site that has part of its content on one website with its own unique DNS-addres, and the Webobjects app resides in an iFrame on another website with another DNS-address. The first call from the website fills the frame with a directAction, then the webObjects app in the iFrame is on its own: no funky inter-frame-inter-domain javascript messaging whatsoever. That works fine with Firefox, Opera, Chrome, Safari, and Chimera on different platforms. However somebody told me of an obscure webbrowser called something like InTheNet Exploder or what, and guess what? That thing does not work with this setup. I first thought that it might have something to do with cross-site scripting, so I turned that security setting off that prevented that from working. That did not help. The odd thing was that the moment the application in the iFrame is continued in a new tab (just right click on a link in the app and go to new tab), the thing worked perfectly. On a hunch, I looked for the cookies setting in this IE thingy as I had set the sessionid stored in cookies with setStoresIDsInCookies(true) in the Session constructor. You can find these thing under the Advanced Privacy Setting. There was a checkbox to always allow session cookies. When I turned that thing on so it always allowed for Session Cookies, it was fixed. After removing the setStoresIDsInCookies(true) and restoring the default setStoresIDsInCookies(true), everything even worked in the default settings of this Explorer thing. Oops; meant to mention setStoresIDsInURLs(true) and setStoresIDsInCookies(false) as the default option. Which lead me to the following experience: Anybody aware of any side effects of setting setStoresIDsInURLs(true); setStoresIDsInCookies(true); in the session constructor? I tried it, and it did seem to work in Internet Explorer, Firefox and Safari. The reason is that I do not want to burden the compliant browsers with not being able to traverse the surrounding environment of the iframe the reservation app is framed in, and coming back to continue the reservation only to discover that their session has gone and they have to start all over again. So ABIE (Anything But Internet Explorer) will use the cookies sessionids, and Internet Explorer will use the URL sessionids. And I do not want to bother about checking for Browsers, as I would have to do it at every Direct Action entrance into the app that would lead to a session: if(request().headerForKey(User-Agent).contains(MSIE)){ mySess().setStoresIDsInCookies(false); mySess().setStoresIDsInURLs(true); log.info(NOOO: Internet Explorer); } else { mySess().setStoresIDsInCookies(true); mySess().setStoresIDsInURLs(false); log.info(Anything goes but Exploder); } Unless somebody knows a more elegant solution with three lines of code in one central place that would take care of the sessionid probs with Internet Explorer Just to make sure that nobody else has to fire up WireShark, remove all his website code to barebones, test on different websites to discover it seems to have something to do with cross-site scripting and waste another day that should have been spent in blissful ignorance. Johan Henselmans jo...@netsense.nl ___ Do not 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 jo...@netsense.nl Johan Henselmans jo...@netsense.nl ___ Do not 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
Funky IE experiences with iFrames from different website
I have a site that has part of its content on one website with its own unique DNS-addres, and the Webobjects app resides in an iFrame on another website with another DNS-address. The first call from the website fills the frame with a directAction, then the webObjects app in the iFrame is on its own: no funky inter-frame-inter-domain javascript messaging whatsoever. That works fine with Firefox, Opera, Chrome, Safari, and Chimera on different platforms. However somebody told me of an obscure webbrowser called something like InTheNet Exploder or what, and guess what? That thing does not work with this setup. I first thought that it might have something to do with cross-site scripting, so I turned that security setting off that prevented that from working. That did not help. The odd thing was that the moment the application in the iFrame is continued in a new tab (just right click on a link in the app and go to new tab), the thing worked perfectly. On a hunch, I looked for the cookies setting in this IE thingy as I had set the sessionid stored in cookies with setStoresIDsInCookies(true) in the Session constructor. You can find these thing under the Advanced Privacy Setting. There was a checkbox to always allow session cookies. When I turned that thing on so it always allowed for Session Cookies, it was fixed. After removing the setStoresIDsInCookies(true) and restoring the default setStoresIDsInCookies(true), everything even worked in the default settings of this Explorer thing. Just to make sure that nobody else has to fire up WireShark, remove all his website code to barebones, test on different websites to discover it seems to have something to do with cross-site scripting and waste another day that should have been spent in blissful ignorance. Johan Henselmans jo...@netsense.nl ___ Do not 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
validating deleting an object with relationship
I want to delete an EO object only if some data is not available in one of its relationships. validateForDelete() can not be used, because before that us called the relations have already been obliterated. mightDelete() gives the required info, but does not raise a validation exception. How does one raise a validation exception in this situation, so that it will give these nice Yellow messages in a direct To Web Application? inline: PastedGraphic-1.png Johan Henselmans jo...@netsense.nl ___ Do not 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: validating deleting an object with relationship
On 19 jan 2010, at 01:54, Chuck Hill wrote: On Jan 18, 2010, at 4:49 PM, Johan Henselmans wrote: I want to delete an EO object only if some data is not available in one of its relationships. Can you not use a delete rule? Deny is what you want. No, at least from my understanding the deny delete rule is based on the fact that there are still entities on the other side of the relationship. Or is there some ways to programmatically tell that the denty rule to be triggered based on a date? Basically I do not want entities to be deleted with relationships that have have a changedate in the past, only current and future entities may be deleted. (I am building a time machine and I want to make sure nobody can delete the goats on our famous island in the pacific) validateForDelete() can not be used, because before that us called the relations have already been obliterated. mightDelete() gives the required info, but does not raise a validation exception. How does one raise a validation exception in this situation, so that it will give these nice Yellow messages in a direct To Web Application? PastedGraphic-1.png Johan Henselmans jo...@netsense.nl ___ Do not 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 Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: Dr. Miguel 'Optimistic Locking' Arroz [was Re: WebObjects stress Testing tool?]
is MySQL to... you know... work! ;) Yours Miguel Arroz On 2009/12/03, at 22:58, Kieran Kelleher wrote: Miguel, anyone, please enlighten me as to what specifically is wrong with using MySQL InnoDB as a database for WO because I have not seen any problem, but then I have not used PostgreSQL or FrontBase either - so maybe I don't see a problem that I should be concerned about. -Kieran On Dec 3, 2009, at 5:41 PM, Miguel Arroz wrote: Hi! On 2009/12/03, at 22:32, Kieran Kelleher wrote: I create new OSCs for most background tasks. The one thing is that I dispose() on it at the end of the task and the dispose() is only useful if you use ERXJDBCAdaptor is used since the regular WO 5.3 jdbc adaptor opens two connections for every OSC and leaves the stupid things open forever. ERXJDBCAdaptor only opens one db connection and releases it when u call dispose() IIRC. Dude! http://terminalapp.net/webobjects-postgresql-and-db-growing-and-growing/ ;) Dude! www.mysql.com - innodb (or cluster NDB) doesn't grow and grow (and it is not a toy, no matter what Chuck says ;-) ) No, it's a disaster! ;) The growing is a side effect of leaving the transaction opening that happens on PostgreSQL due to its architecture, but the point is the same, do what I say there to avoid the dumb connection. :) Yours Miguel Arroz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com This email sent to msch...@mdimension.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/mschrag%40mdimension.com This email sent to msch...@mdimension.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/lists%40thetimmy.com This email sent to li...@thetimmy.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/mark%40wardle.org This email sent to m...@wardle.org -- 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/johan%40netsense.nl This email sent to jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: WOWODC 2010 : official date and venue
On 20 nov 2009, at 01:18, David Avendasora wrote: On Nov 19, 2009, at 3:17 PM, Pascal Robert wrote: it would be great for future WOWODC to move it around to see different cities. I'm seriously planning on a Gold Coast, Australia WOWODC. Who's in? I'm in, I have friends and family living in Japan and Australia, and it would be a great occasion just to have it combined with work expenses. For those of us having to convince their superior: 'Congres mumble mumble important mumble mumble, mumble coast, mumble august quiet in work' And after booking the tickets: 'I mentioned the Gold Coast! You know that that is in Australia, don't you?' Dave David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: UTF-8 forms and database, still some special characters get through as things like #64257; Why?
Op 12 nov 2009, om 14:44 heeft Pascal Robert het volgende geschreven: 6) Localizable.strings should be encoded in UTF-16 And to be more specific, they should be in UTF-16LE What happens if you use UTF-16 or UTF-16BE? Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: new EOObjectStoreCoordinator and closing database connection afterwards
that, the jcbc2info request might not get logged like this. But my money is still on the jdbc2info connection. It fits all of the evidence. Mike figured out how to close it, but I don't know where the code is in Wonder. Hmmm, that might have been in Entity Modeler. Mike? Chuck When I'm terminate the session I use this code to close the connection to the database: 'editingContext' is the session 'defaultEditingContext()' EOObjectStoreCoordinator parentObjectStore = (EOObjectStoreCoordinator)(editingContext.parentObjectStore()); NSArray databaseContexts = parentObjectStore.cooperatingObjectStores(); int contextCount = databaseContexts.count(); for (int i = 0; i contextCount; i++) { NSArray channels = ((EODatabaseContext)databaseContexts.objectAtIndex(i)).registeredChannels(); int channelCount = channels.count(); for (int j = 0; j channelCount; j++) { //Make sure the channel you're trying to close isn't performing a transaction. if (!((EODatabaseChannel)channels.objectAtIndex(j)).adaptorChannel().adaptorContext().hasOpenTransaction()) { ((EODatabaseChannel)channels.objectAtIndex(j)).adaptorChannel().closeChannel(); } } } This closes one of the two database connection, not both. Is there a way to detect the one extra connection or not open the extra connection in the first place? WOnder may have resolved this issue but adding WOnder is a bigger undertaking then I originally expected. Paraphrasing Lou Reed, I just want some of it, not all of it. Thanks kib Success is not final, failure is not fatal: it is the courage to continue that counts.” - Winston Churchill Klaus Berkling Systems Administrator DynEd International, Inc. www.dyned.com | www.eskimo.com/~kiberkli ___ Do not 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 -- 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 Thanks kib Success is not final, failure is not fatal: it is the courage to continue that counts.” - Winston Churchill Klaus Berkling Systems Administrator DynEd International, Inc. www.dyned.com | www.eskimo.com/~kiberkli -- 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/kieran_lists%40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
UTF-8 forms and database, still some special characters get through as things like #64257; Why?
Reading David Griffith's struggle with the euro sign, I thought checking myself if that worked in my test application. What I did was: go to a textfield in a form, then (on a mac) press shift and alt key, and go over the keyboard from 1 in the upper left to / in the lower right. Save the stuff, or do something with it, like going to a next form or back or whatever. Interestingly, it Seems that some characters are not picked up by the UTF-8, while others are. These are the results in Safari: #8260;€‹›#64257;#64258;‡°·‚—±Œ„´‰#711;Á¨ˆØ#8719;”’ÅÍÎÏ#733;ÓÔ#63743;ÒÚÆ»`¸#731;Ç#9674;#305;˜Â¯#728;¿ Here in Firefox: #8260;€‹›#64257;#64258;‡°··‚—±Œ„´‰#711;Á¨ˆØ#8719;”’ÅÍÎÏ#733;ÓÔ#63743;ÒÚÆ»¸#731;Ç#9674;#305;˜Â¯#728;¿ This is WebObjects 5.4.3, latest wonder, OS X 10.5.8 latest security updates Can anyone explain to me why that is? (I hope the mailserver does not screw up). Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: Uses for D2JC (was: Gianduia and WO)
in the client, although there's some cool stuff that way too. It's the dead-simple development side that makes it so awesome to me. With WebObjects D2JC you don't have to write _any_ code at all. No HTML. No CSS. No JavaScript. Not even rules! You hear that D2W guys? The D2JC EOAssistant works great and it will write most of the rules you need! Here's a screen capture of it (it's also a Java Client app that communicates with WOLips to update the user.d2wmodel file): PastedGraphic-6.tiff Anyway, I didn't mean to hijack this thread with Java Client, but hey Anjo brought it up! :-P Dave I do, however, think D2JC is a _neat_ technology, in that it's amazingly clever what it's doing under the covers, I just am not sold on the end result. ms On Nov 6, 2009, at 7:41 AM, David Avendasora wrote: Hey! Did I hear JavaClient?! :-D Yeah, it will be cool if someday we get the tools to do something client-server like JavaClient. Oh wait! We already _have_ WebObjects-based JavaClient, and Direct-To-JavaClient and it works today and has for _years_. Sure, it's not as cool as a browser-based solution, in the same way WO isn't as cool as Ruby. **ducks, runs for cover and scrambles to get the D2JC project template updated** Dave On Nov 6, 2009, at 7:32 AM, Anjo Krank wrote: Not really sure... basically you'd need something totally new, as this would be more like JavaClient and not like a web app. But all this is *moot* until we don't have it. Cheers, Anjo Am 06.11.2009 um 13:05 schrieb Mike Schrag: Yeah .. I suspect there could be a GianduiaLook, and that would make a lot of sesnse. ms I think we've seen with the SproutCore stuff that it's not. Apart from *maybe* a JS D2W. Cheers, Anjo Am 06.11.2009 um 02:54 schrieb Mike Schrag: rom my perspective, I don't know that it's worth building a server stack on top of it as much as I think it would be nice to leverage the development tools we already have to make it easier to write the Javascript. ___ Do not 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 msch...@mdimension.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/webobjects%40avendasora.com This email sent to webobje...@avendasora.com David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com This email sent to msch...@mdimension.com David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
Re: Uses for D2JC (was: Gianduia and WO)
Op 7 nov 2009, om 06:20 heeft Ashley Aitken het volgende geschreven: I'm always blown away by the power of D2*, especially D2JC (even given the Java GUI). I was never too clear on the development process after having built the CRUD, it seemed less quite mysterious (and not very well documented). However, I thought these parts of WO haven't been getting much love from Apple lately? What is the status of D2JC and D2W and D2WS? Has anything been updated by Apple? I know that Apple's tools have been deprecated / removed. Is D2* still used by Apple? Cheers, Ashley. It is really sad to see such great technology wither. I fully agree with David on the power of D2JC. The argument on java being ugly could have been solved years ago by implementing the laf (Look And Feel) extensions properly. The hooks are all there in the java frameworks. The argument that developing for the browser is easier and deloyment quicker does make sense. However, there is Java Webstart, which is a great technology to get fresh client updates magically. It is just as powerful to get fresh updates as to rely on the webserver to push the new workings to the browser. (i just had some interesting experiences by the way with caching old pages in Safari. It starts to get more and more as Explorer (I don't see the changes in the website! Do you use Explorer? Yes, everybody does. First empty the caches, Then stop Explorer. Then download Netscape/Mozilla/FireFox/Opera. Now remove Explorer. Oh wait. Cant do that. Anyway, look again at the website). The Remote Method Invocation of D2JC is so much stronger than XMLHttpRequest, no debugging ajax requests, etc. It just works. Oh, and security. I know that every technology has its bugs. But there are -give and take- 3 JVM's in the world. There is a 1000 flowers blossoming amount of webbrowers on this planet with each their own implementation of javascript and related technologies. Keyloggers, cross side scripting are all over the place. Not too mention this nice Flash plugin that seems to wreak havoc everytime a new machine gets introduced. Of course there is one more thing. The iPhone. Who gives a sh*t about a phone that does not have an sd slot and a replaceable battery? (Disclaimer: I own an iPhone too. I wanted to test it as a QRcode scanner. It did not work out. I am looking for third party solutions of barcode scanners to attach to smart phones, be it Android. Symbian. iPhone, whatever). I Apple would have given the same amount of love to D2JC as it did to the normal WebObjects development tools…. Oh wait. It did. It seems once again, corporate sense and common sense are on a diverging path. -- Ashley Aitken Perth, Western Australia mrhatken at mac dot com Skype Name: MrHatken (GMT + 8 Hours!) ___ Do not 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 jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
getting wiki books out of the search results
I am fed up finding the abolished wiki book as first result when looking up something WebObjects. It is confusing and not very good for the beginning user finding the wikibook is abolished. If we all add something like this on our websites, shouldn't we be able to get rid of it and have the proper wiki on top? = For more information about WebObjects also look at the community site: a href=www.wocommunity.orgWOCommunity.org/a and the wiki at a href=http://wiki.objectstyle.org/confluence/display/WO/Home;http://wiki.objectstyle.org/a = Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: [OT] Pre-selecting a printer?
on the printed page size? Also, is it possible to bypass the print dialog? I tried searching the Apple printing list but didn't come up with a lot of answers... ... I was thinking of something like a star printer hooked to a client machine. Is there anything in OS X that would let me configure the OS to automatically send jobs to the right place? I found ___ Andrew Lindesay www.lindesay.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/probert%40macti.ca This email sent to prob...@macti.ca -- --- Pascal Robert http://www.macti.ca http://www.linkedin.com/in/macti Skype: MacTICanada AIM/iChat : MacTICanada ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl This email sent to jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
Location: header to get from webobjects app in iframe to static master website and back
The WebObjects application I have built is running in an iFrame in another website which is built statically. Now the question was to be able to send links to specific information about performances (it's for a theater) that is in the WebObjects application. That in itself was accomplished with a Direct Action that points to a specific performance, something along the line of http://www.sometheater.nl/apps/WebObjects/reservation.woa/wa/showPerformance?performnanceid=999. That is also what I am using to point from a HTML page to a specific performance in the iFrame. The question was then asked that it would be nice to have the whole website around it, so that people get pointed back to the website. Getting the complete website around it is not too difficult: just send a Location redirect if there is a request that does not come from the master website pages (in the call to the directAction I would add some variable FromMasterWebsite=yes that would assume the application running as an iFrame in the website). First question is how to get the Location: redirect running? I tried response.appendHeader(http://www.sometheater.nl;, Location); to add to the response header, but that does not seem to be enough. Second question is how can I get point from the master website to the same performance? Is there some trickery with javascript that would accomplish in a way that the website would still be able to be loaded as static pages, but having the ability to call via a javascript:onload() or something that would point to the correct DirectAction link and performanceid? Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
printing margins with LEIPPPrintService from webobjects application
I am working on a eticketing system and one of the requirements is that the application will print out real tickets at the location (it's easier for access control to print humanly easy recognizable tickets somewhere before the access control than to check the barcode electronically from a variety of paper/phone sources). So I create a PDF document via itext.jar (replacing form fields from a template with the actual data) and feed that to a printer. I implemented Andrew Lindesay's LEIPPDocPrintJob LEIPPPrintService LEIPPPrintServiceTest to see if that would work. The printing works, but there is a one inch gap on the top of the pdf document that I am sending to the printer. I looked at some of the solutions to get rid of the 1 inch margin that is on top of the document (search for hashprintrequestattributeset margin), but none of them seemed to give the desired result. Does anybody have a working example to reduce the margins to zero, so the 8x3.25 inch PDF document would print on a 8x3.25 ticket? I tried these: protected HashPrintRequestAttributeSet getPrintRequestAttributeSet(){ HashPrintRequestAttributeSet as = new HashPrintRequestAttributeSet(); as.add(BocaMedia.w576h234); // the 8 inch translates to a 576 point document in CUPS, that's why the w576xh325 document int x = 0; //left and right margin int y = 0; //top and bottom margin. int w = 576; //Width int h = 234; //Height int units = MediaPrintableArea.MM; as.add(new MediaPrintableArea(x, y, w, h, units)); as.add(new JobName(ticket-page, Locale.getDefault())); } protected HashPrintRequestAttributeSet getPrintRequestAttributeSet() Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
including an image in a mail component
i would like to send an image with a mail component. I am wondering how I should do that. I first tried to create a image and then to include this as a WOImage in a HTML component, but that will give me a src pointer to the file with a URL or filename. (it also included FRAMEWORK_NOT_FOUND in the path) Then I created an attachment via: = File file = new File(mySess().orderBarcodeFileName()); ERMailAttachment barcode = new ERMailFileAttachment(barcode.jpg,mySess().orderEntranceCode(), file); mail.newMail(); mail.setFromAddress(EmailFrom); mail.setToAddresses(mailTos); mail.setSubject(Confirmation from +mySess().currentProgramSetting().settingsOrganisationName()); mail.addInlineAttachment(barcode); mail.sendMail(); = but that creates (in Mail.app) an image that one can only see via quicklook, or Preview. replacing = mail.addInlineAttachment(barcode) = with = mail.addAttachment(barcode); = does show the image direct in the message, so one can print the image direct in the mail message (which is the purpose as it is supposed to be an electronic ticket) I would like to add some comments to the message, and that would mean (I suppose) to add another attachment to the message with the comments. It would be a lot easier if I could just create a WOComponent that would have the image, the extra comments etc. Does anybody know if and how I could accomplish that? Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
Webobjects 5.4 tags in an email component do not work?
Always prodding forwards, I had a emailcomponent with some old fashioned tags: a HTML file containing webobjects name= ShowName and a WOD file containing ShowName : WOString { value = cartItem.performance.showInfo.showName; } So I replaced with a component that consisted of a HTML file containing wo:WOString value = [cartItem.performance.showInfo.showName]/ and an empty wod file. The result was that I got a nice mail message containing the complete HTML as such: wo:WOString value = [cartItem.performance.showInfo.showName]/ which meant that it did no display as it could not display the HTML message. Reverting to the old, fashioned way gave a nice display of the show I was supposed to be attending. Anybody any explanation what I am doing wrong? Radar? BTW: to send the message I am using public WOComponent pageForMail() { EmailComponent nextPage = (EmailComponent)pageWithName(EmailComponent); return nextPage; } public void sendTheMail() WOMailDelivery md = WOMailDelivery.sharedInstance(); md.composeComponentEmail(EmailFrom , (NSArray)mailTos, null,Confirmation of Reservation , pageForMail(), true ); } Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: Webobjects 5.4 tags in an email component do not work?
On 6 jul 2009, at 22:27, Andrew Lindesay wrote: Hello Johan; I could be wrong, but does the new component template format require XHTML/XML markup? cheers. The result was that I got a nice mail message containing the complete HTML as such: wo:WOString value = [cartItem.performance.showInfo.showName]/ ___ Andrew Lindesay www.lindesay.co.nz I am not to sure either. To be on the safe side I added: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head meta http-equiv=Content-Type content=text/html; charset=utf-8/ = But I noticed that in the file that I got from the mailer the mime type said: = Message-ID: 12880749.1.1246877561166.javamail.localad...@rolex.timerot.nl Subject: Bevestiging reservering Ostadetheater voor Actie Teddy op zondag 06 september 2009 om 21:45 uur MIME-Version: 1.0 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en head meta http-equiv=Content-Type content=text/html; charset=utf-8/ TITLEMail bevestiging/TITLE = Could it be that WOMailDelivery is not able to proces XHTML1.0? Should I use HTML 4.01? Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
Escaping in strings according to WOML
I am trying to get an anchor to a specific part of a webpage. My attempt so far: a name =[@ wo:WOString value = [mySess.selectedPerformance.primaryKey]/ @]/ which results in an error message that the '' and the '' must be escaped. I understood that the whole idea of this [@ @] syntax was that it should be escaped automatically? Any suggestions? (using latest wonder/WOOGNL, WO5.4 Eclipse 3.5, 10.5.7 java 4 update) Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: Escaping in strings according to WOML
On 17 jun 2009, at 13:13, Andrew Lindesay wrote: Hello Johan; a name =[@ wo:WOString value = [mySess.selectedPerformance.primaryKey]/ @]/ Are you using the WO 5.4 new template format? I have just started using the new format myself and think it is great. I think you can just do this; a name=[mySess.selectedPerformance.primaryKey]/ cheers. ___ Andrew Lindesay www.lindesay.co.nz I just tried. The output was: a name =[mySess.selectedPerformance.primaryKey]/ hmmm. Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: Escaping in strings according to WOML
On 17 jun 2009, at 13:48, Mike Schrag wrote: Your email said using latest wonder/WOOGNL -- this replaces the template parser with the one in WOOGNL. If you want to use the 5.4 one, you need to remove WOOGNL. ms Right, removed WOOGNL Framework from the build path, but now my nifty components come out like this in the browser: wo:WOString value = [mySess.cart.cartTotal] formatter = [mySess.localFormat]/ So, no template parsing whatsoever. I am using the traditional webobject name = CurrentCartItemPerformanceShowInfoShowName/ and wo:WOString value = [cart.cartTotalItems] / In the same html file. It seems components where I only use the traditional notation, template parsing works. I use this Library path: inline: Pasted Graphic.png any suggestions? On Jun 17, 2009, at 7:42 AM, Johan Henselmans wrote: On 17 jun 2009, at 13:13, Andrew Lindesay wrote: Hello Johan; a name =[@ wo:WOString value = [mySess.selectedPerformance.primaryKey]/ @]/ Are you using the WO 5.4 new template format? I have just started using the new format myself and think it is great. I think you can just do this; a name=[mySess.selectedPerformance.primaryKey]/ cheers. ___ Andrew Lindesay www.lindesay.co.nz I just tried. The output was: a name =[mySess.selectedPerformance.primaryKey]/ hmmm. Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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 msch...@mdimension.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/johan%40netsense.nl This email sent to jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: Escaping in strings according to WOML
On 17 jun 2009, at 15:05, Q wrote: Make sure your WOD file is empty if you're using WO54 inline bindings. Unlike WOOgnl, WO54 doesn't let you mix WOD and inline entries in the same component. If your wod isn't empty then it will not parse the inline bindings. Thanks! That solved it. Removing all the stuff from the wod file made it a lot easier. I am still contemplating if this is an advantage: it does put a lot of no essential information in your HTML file, especially if you have a lot of bindings to fill. Still one problem remaining: img src=/upload/[mySess.selectedPerformance.primaryKey]/klein.jpg width=82 height=82 border=0/ displays: img width=82 height=82 border=0 src=/upload/ [mySess.selectedPerformance.primaryKey]/klein.jpg/ How can I get something in that kind of HTML tag? If I try img src=/upload/[mySess.selectedPerformance.primaryKey]/klein.jpg width=82 height=82 border=0/ it also leads to: img width=82 height=82 border=0 src=/upload/ [mySess.selectedPerformance.primaryKey]/klein.jpg/ just like img src=/upload/[@ [mySess.selectedPerformance.primaryKey] @]/ klein.jpg width=82 height=82 border=0/ On 17/06/2009, at 10:52 PM, Johan Henselmans wrote: On 17 jun 2009, at 13:48, Mike Schrag wrote: Your email said using latest wonder/WOOGNL -- this replaces the template parser with the one in WOOGNL. If you want to use the 5.4 one, you need to remove WOOGNL. ms Right, removed WOOGNL Framework from the build path, but now my nifty components come out like this in the browser: wo:WOString value = [mySess.cart.cartTotal] formatter = [mySess.localFormat]/ So, no template parsing whatsoever. I am using the traditional webobject name = CurrentCartItemPerformanceShowInfoShowName/ and wo:WOString value = [cart.cartTotalItems] / In the same html file. It seems components where I only use the traditional notation, template parsing works. I use this Library path: Pasted Graphic.png any suggestions? On Jun 17, 2009, at 7:42 AM, Johan Henselmans wrote: On 17 jun 2009, at 13:13, Andrew Lindesay wrote: Hello Johan; a name =[@ wo:WOString value = [mySess.selectedPerformance.primaryKey]/ @]/ Are you using the WO 5.4 new template format? I have just started using the new format myself and think it is great. I think you can just do this; a name=[mySess.selectedPerformance.primaryKey]/ cheers. ___ Andrew Lindesay www.lindesay.co.nz I just tried. The output was: a name =[mySess.selectedPerformance.primaryKey]/ hmmm. Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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 msch...@mdimension.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/johan%40netsense.nl This email sent to jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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/qdolan%40gmail.com This email sent to qdo...@gmail.com -- Seeya...Q Quinton Dolan - qdo...@gmail.com Gold Coast, QLD, Australia (GMT+10) Ph: +61 419 729 806 Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: Hudson gives awt.headless error [SOLVED] (Where to put on the Wiki?)
On 9 jun 2009, at 21:17, Mike Schrag wrote: AWT is not properly configured on this server. Perhaps you need to run your container with -Djava.awt.headless=true? do that ... you can put it in your tomcat startup jvm options list OK, found where to put it: sh-3.2# cat /opt/local/share/java/tomcat6/conf/setenv.local #!/bin/sh # # setenv.local # # This script, if present, is executed by tomcatctl through setenv.sh # in order to set up any environment prior to executation of tomcat. # # For Apple Java, JAVA_JVM_VERSION may be used to specify a particular # java version to run. It should be something like 1.4, 1.5, or CurrentJDK. #export JAVA_JVM_VERSION=1.5 export HUDSON_HOME=/opt/local/var/db/hudson export JAVA_OPTS=-Djava.awt.headless=true This made Hudson run on Tomcat from macports. I might make a wiki page for people that do not have Tomcat for breakfast. I am oscillating between these subjects to put the information: • Web Applications • Development • Deployment • Development Tools • Integration with other clients • Testing • Additional Resources Any suggestions where to put it? 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/johan%40netsense.nl This email sent to jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Hudson gives awt.headless error
After the inspirational presentations at the WOWODC I immediately started to change my whole build and deployment environment with Hudson, maven and Capistrano, my WOLips environment with JavaRebel and my testing environment (well..., the last thing will have to wait, because Real Men Don't Test, They Swallow). Starting with Hudson, I did the Mike one minute thing: * install Tomcat from macports (60 mins) * create an administrative user in /opt/local/share/java/tomcat6/conf/ tomcat-users.xml (20 mins to find out where the user should be and how not to restart tomcat) something along the line of: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=admin,manager/ /tomcat-users (remember this is testing) * Start tomcat, (1 min) sudo launchctl load -w /Library/LaunchDaemons/org.macports.tomcat6.plist * download Hudson (50 mins, long live Whitcomb Wanderless Wireless!) * install Hudson in Tomcat (15 mins, once by hand and once by download interface in Tomcat because I did not see the hudson.war unwrapping, which it did right after I decided to try it via the download option in tomcat manager), And then I had hudson in Tomcat (96 mins Yah!, good I don't do live presentations.) Then I got two errors: first it tried to write something in /var/ root/.hudson, which I somehow did not agree with, I don't know why, it seems soo... Windows, so I created a /opt/local/var/db/hudson and set hudson to store it's stuff over there by adding export HUDSON_HOME=/opt/local/var/db/hudson to /opt/local/share/java/tomcat6/conf/setenv.local and creating that folder with ownership _www:_www the next error I got was: AWT is not properly configured on this server. Perhaps you need to run your container with -Djava.awt.headless=true? java.lang.InternalError: Can't connect to window server - not enough permissions. Does anybody know how I can get rid of that error? Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
get confirmation of a payment from other website via a direct action, how to get back to a shopping session?
I have a situation with a shop-site where I communicate some shopping details to an external website. The shopper pays it's dues over there, and then get's redirected to the shop site. The requirements are that the shopper actually has to go to the external site in the same browser window: popup's etc are not allowed. In the meantime the products are set aside, to make sure nobody else gets them while the shopper pays. Now the a shopper back from somewhere, with two variables: some transaction ID that the external party creates and an entrance code, that I can create myself. I have thought of several approaches: First I thought to use a direct-action to get the information. Then, pickup the session where it's left off with all the shopping details, check if the payment went all right, and get on to the next step. If the user does not return, the session times out and the reservation on products are returned to the database. This approach will only work with one instance of an application on one server. Say there are more instances, than the instance that receives the directaction call might not be the one that is still holding on to the session. Second approach would be to store all the session information (the products, user info etc) in a database table, and, once the user gets back from the payment, pickup from there, and restore it's previous information. But that might mean that the reservation on products that have taken place (and are deducted from the available products) will wait forever because the user is not returning. So a thread would have to run all the time and remove all the reservations that have not paid in let's say ten minutes. I have a feeling that there might be another approach that is better suited. I had a look at the WOPaypal framework, but I did not completely understand what was going on there. Perhaps somebody can explain to me how this works, or is there an other approach that people use to solve this problem? Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
Classpath somehow different between develop and deploy?
I am having troubles, and I would like to share it with you, my fellow WA'ers (Webobjects Anonymous). I am sure without your support I will have serious relapses... I have to use some third party jars that are used to make a connection to a secure website, which is taken care of by an SSL connection with a certificate which is stored in a java keystore. (the java keychains that you can create with keytool). The class that uses this keystore knows which one to use it via a file called config.properties. The jar class that uses this data assumes the data is all available somewhere in the classpath: it is searching for this specific information via ClassLoader loader = Thread.currentThread().getContextClassLoader(); Enumeration p = loader.getResources(keystoreFile); as I found out via JD-GUI (great app!). I thought it might be a good idea to store the the keystores and the config file in Resources. I have added that file to the Resources too. Then I added the Resources folder as a class folder to the Library path of the application, so that it is available in the Java Build Path. In Development Everything works, the keystores get loaded, the connection is made and the whole world rejoices. Then I install the Application, and somehow it does not work any more. I tried to find out if the classpath that contained the configuration and the keystores were loaded, but I did not get any messages whatsoever about the classpath: This is the code I tried to find out the classpath: == ClassLoader classLoader = ClassLoader.getSystemClassLoader(); Util.log.info(\nClassPath Follows\n); URL[] urls = ((URLClassLoader) classLoader).getURLs(); for (int i = 0; i urls.length; i++) { Util.log.info(urls[i].toString() + \n); } == and this is the output. == ClassPath Follows May 27 23:13:38 WOIdealTestApp[2002] DEBUG IdealConnector - file:/ Library/WebObjects/Applications/WOIdealTestApp.woa/WOBootstrap.jar == WOLips 3.4.5800 Eclipse 3.5RC2. WebObject 5.4.3 Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: Classpath somehow different between develop and deploy? Solved?
On 28 mei 2009, at 00:10, Johan Henselmans wrote: I am having troubles, and I would like to share it with you, my fellow WA'ers (Webobjects Anonymous). I am sure without your support I will have serious relapses... It always helps to describe what your problem is. After I had described what the problem was I head a serious look at MacOSXServerClasspath.txt in the App.woa/Contents/MacOS folder. It noticed that the folder Resources was not available as class path, but APPROOT/Resources/Java/ was indeed. So I took the liberty of adding APPROOT/Resources/ to MacOSXServerClassPath.txt. That solved it, my resources were found, but that meant I would have to add this line every time I redeployed. (Remember the old java credo, Write Once Deploy Often?) Another way I found was to add a folder Java to the Resources folder in the Eclipse Projects, and moved the config files and the keystores from the Resources into the Resources/Java folder. During the deployment ant-task the stuff is now copied into APPROOT/ Resources/Java/, and so the java class finds the resources in its classpath. I am a bit worried about this solution, as it seems that the application jar is also added at the same location during deployment. Will one folder overwrite the other, so in future times this will lead to a partial install? Any chance that this will happen? How do other people add resources that a Java class assumes is somewhere available in a folder describe by the classpath? I have to use some third party jars that are used to make a connection to a secure website, which is taken care of by an SSL connection with a certificate which is stored in a java keystore. (the java keychains that you can create with keytool). The class that uses this keystore knows which one to use it via a file called config.properties. The jar class that uses this data assumes the data is all available somewhere in the classpath: it is searching for this specific information via ClassLoader loader = Thread.currentThread().getContextClassLoader(); Enumeration p = loader.getResources(keystoreFile); as I found out via JD-GUI (great app!). I thought it might be a good idea to store the the keystores and the config file in Resources. I have added that file to the Resources too. Then I added the Resources folder as a class folder to the Library path of the application, so that it is available in the Java Build Path. In Development Everything works, the keystores get loaded, the connection is made and the whole world rejoices. Then I install the Application, and somehow it does not work any more. I tried to find out if the classpath that contained the configuration and the keystores were loaded, but I did not get any messages whatsoever about the classpath: This is the code I tried to find out the classpath: == ClassLoader classLoader = ClassLoader.getSystemClassLoader(); Util.log.info(\nClassPath Follows\n); URL[] urls = ((URLClassLoader) classLoader).getURLs(); for (int i = 0; i urls.length; i++) { Util.log.info(urls[i].toString() + \n); } == and this is the output. == ClassPath Follows May 27 23:13:38 WOIdealTestApp[2002] DEBUG IdealConnector - file:/ Library/WebObjects/Applications/WOIdealTestApp.woa/WOBootstrap.jar == WOLips 3.4.5800 Eclipse 3.5RC2. WebObject 5.4.3 Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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 jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
WWDC sold out, WOWODC hotel booking for weekend or streaming?
As this year's WWDC is sold out, and I would like to go to WOWODC, but can not justify the expenses for just two days, I would like to know -Are the plans to do the streaming is still on? -Is the block booking for the hotel also valid only for the weekend? -Anybody interested in swapping houses during the month of june from SF/West Coast to Amsterdam (Netherlands, not Michigan)? Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
header, footer, body tags in conditionals and seperate components
I used to have a body and /body tags wrapped in their own header and footer components with some conditionals to add a bgcolor : yellow would be a test site and white the real site. Tthat does not work in 5.4.x anymore: 5.4.x expects a complete tag in a component: body should be ended with /body in one component, otherwise it throws an exception. I can not have one component with the body tag, and another component with the /body tag. What alternatives would you recommend to do what I want to do? (make a difference between a test site and the real site by body back ground color). Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: Access Control [was: Digging up a Session object from an EOGenericRecord]
On 19 mrt 2009, at 23:32, Chuck Hill wrote: On Mar 19, 2009, at 3:03 PM, David Holt wrote: On 19-Mar-09, at 11:31 AM, Chuck Hill wrote: Hi David, On Mar 19, 2009, at 9:45 AM, David Holt wrote: On 7-Mar-09, at 3:58 PM, Kieran Kelleher wrote: I have been using Role Based access control mixed with Privileges (on/off canViewThis, canEditThat, etc.), but I always get the feeling there is better ways to do this security stuff ... anyone care to share their user security strategies in terms of access to pages, parts of pages and objects in WebObjects apps? Hi Kieran, I am implementing a system that assigns a user to a role and then each role is given a specific set of navigation tabs for the pages that they can see. This is all easily done using the ERXNavigationMenu from ProjectWonder. I then customize a given page where necessary (for example read only v.s. editable) for a given role and point to it from that role's navigation menu. This works really well for a small number of roles. You just create as many variations of a given page as you need for the corresponding roles. For how I do it, Roles are used to aggregate privileges and specific privileges grant access to pages, menu items, etc. Man, you always give me new twists to think about! Yeah, I annoy lots of people like that! :-P But you're right, a role would have a hard time specifying privileges, it is much better to come at a Role as an aggregate of them. Would this mean that a person can have multiple roles in the application? That is certainly possible, it really depends on the business domain. Often I find that some users will have a single role and some will have multiple roles. Thing of McDonalds. People working the tills might have the Counter Staff role. People doing the cooking might have the Grill Man role. A Manager might then have the Counter Staff and Grill Man role in addition to their specific Manager role. If they can, can you somehow limit their role to the context that they're working in, in the application? For example, I run a (parabolic - if you know what I mean ;-) web application that publishes three webzines. On two of them I am a writer and on the other the publisher, can I be assigned to a different role depending on which webzine area I have navigated into? I think that you would have to have Magazine specific roles for that e.g. Publisher (Cooking for Techs), Writer (Marine Biology Monthly). You could have template roles that get copied and modified for each Magazine. Where this approach breaks down is when you start to have too many roles and/or you are customizing too many pages to correspond to the roles. I think at that point you'd want to create one page level component and set privileges at the field level (as read only or editable or invisible) depending on the privilege assigned to the role. As always, I think a lot depends on the complexity of your application. And I am not sure what the rule of thumb would be for moving from one way to the other. Do your access control strategies contemplate setting access right down to the attribute level on a page? It would not be fun otherwise, would it? Oh I'm having plenty of fun without digging this far down ;-) Where is Goat Island, again? http://www.niueisland.com/ In other news, the WebObjects Refuge Island has just been engulfed by a giant Tsunami coming from Tonga. It is not known how many survivors there are. Aerial photography has shown some white dots in the palmtrees, but locals from a nearby island have stated that these should be the imported goats that this small religious commune had brought with them some years ago to replace the local goats, of which one of the leaders of the commune, a mister Hilll, had stated that local goats did not produce enough manure to ferment into the specific alcoholic product they needed for their religious ceremonies. It seems Apple has set up a Search and Destroy, ehh, Rescue team to help find the last remnants of some products and people that apparently seem very important to them. Nobody outside Apple knows what this is all about. And nobody inside Apple want to comment: 'Wait till Steve comes back'. 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/johan%40netsense.nl This email sent to jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel
Drupal profile table, how to handle this in webobjects?
I have been assigned by my manager (ie myself and some partners in crime) the grateful task to integrate the Drupal CMS registration system with other database systems. The idea would be that people could login once, and then be never bothered again. Some would get in via Drupal, others via other means. Drupal knows users, roles, profiles and domains. I have been able to recreate the authentication (md5) within a java class, and creating users and roles according to the drupal world. Next on the list are the Drupal profiles. Here is where it gets interesting: Drupal uses one table to describe the profile layout (default_profile_fields), and another one to hook these things up with values, in default_profile_values schema of default_profile_fields: CREATE TABLE `default_profile_fields` ( `fid` int(11) NOT NULL auto_increment, `title` varchar(255) default NULL, `name` varchar(128) NOT NULL default '', `explanation` text, `category` varchar(255) default NULL, `page` varchar(255) default NULL, `type` varchar(128) default NULL, `weight` tinyint(4) NOT NULL default '0', `required` tinyint(4) NOT NULL default '0', `register` tinyint(4) NOT NULL default '0', `visibility` tinyint(4) NOT NULL default '0', `autocomplete` tinyint(4) NOT NULL default '0', `options` text, PRIMARY KEY (`fid`), UNIQUE KEY `name` (`name`), KEY `category` (`category`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ; (Don't bother about the mysql, it will be in postgresql) An example of default_profile_fields: INSERT INTO `default_profile_fields` (`fid`, `title`, `name`, `explanation`, `category`, `page`, `type`, `weight`, `required`, `register`, `visibility`, `autocomplete`, `options`) VALUES (1, 'Name', 'profile_naam', '', 'Personaldata', '', 'textfield', -10, 1, 1, 2, 0, ''), (2, 'Surname', 'profile_achternaam', '', 'Personaldata', '', 'textfield', -9, 1, 1, 2, 0, ''); The default_profile_values schema: CREATE TABLE `default_profile_values` ( `fid` int(10) unsigned NOT NULL default '0', `uid` int(10) unsigned NOT NULL default '0', `value` text, PRIMARY KEY (`uid`,`fid`), KEY `fid` (`fid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; The default_profile_values is filled in such a way: INSERT INTO `default_profile_values` (`fid`, `uid`, `value`) VALUES (2, 18, 'Ginger'), (1, 18, 'Fred'); As you might notice, for a profile of a person with, let's say, 20 attributes, one would end up with a smorgasbord of 20 records in default_profile_values. I have two questions: -would it be possible to replicate such a thing in WebObjects? I can imagine creating the default_profile_fields table, that should not be too hard. Creating the form using the data from the default_profile_fields, and the values from default_profile_values fills me with ?wonder?. -will it blend, sorry, will it scale? I have doubts about this schema when you start having large amounts of users. The enormous amount of records that have to be fetched for for the profile of a user make me question if this will be scalable. Any ideas about this? Examples of other WebObjects projects that do something similar? Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
Anyone running Direct To WebServices on WOLIps and 5.4.3?
I am trying to test some WebServices stuff. I thought of starting out with a simple implementation with DirectToWebServices, but I can not seem to get these things running in 10.5 with 5.4.3 installed, nor with 5.3.3 installed. I try the route via New-Other-DirectToWebService Application, then add a Business Logic Framework, then fire up the application. The message I am getting is: http://193.78.79.69/cgi-bin/WebObjects/D2WServiceApp.woa/-50135 The URL for direct connect is: http://193.78.79.69:50135/cgi-bin/WebObjects/D2WServiceApp.woa [2008-12-22 12:56:17 CET] main null [2008-12-22 12:56:17 CET] main DirectToWeb WebAssistant launch line: appletviewer http://localhost:50135/cgi-bin/WebObjects/D2WServiceApp.woa/wa/D2WActions/openWebAssistant [2008-12-22 12:56:17 CET] main Waiting for requests... * PLEASE NOTE: The assistant will be available to configure the application. To disable the assistant use a -WSAssistantEnabled NO flag when you start the application. [2008-12-22 12:56:19 CET] WorkerThread1 com.webobjects.webservices.generation._WSDirectAction: Exception in performActionNamed() on the action loadD2WModel with the message: java.lang.IllegalStateException: Can't obtain rules because of protected access! [2008-12-22 12:56:19 CET] WorkerThread1 com.webobjects.appserver._private.WODirectActionRequestHandler: Exception while handling action named loadD2WModel on action class com .webobjects .webservices .generation ._WSDirectAction :java.lang.reflect.InvocationTargetException [2008-12-22 12:56:19 CET] WorkerThread3 com.webobjects.webservices.generation._WSDirectAction: Exception in performActionNamed() on the action loadD2WModel with the message: java.lang.IllegalStateException: Can't obtain rules because of protected access! [2008-12-22 12:56:19 CET] WorkerThread3 com.webobjects.appserver._private.WODirectActionRequestHandler: Exception while handling action named loadD2WModel on action class com .webobjects .webservices .generation ._WSDirectAction :java.lang.reflect.InvocationTargetException [2008-12-22 12:56:19 CET] WorkerThread2 com.webobjects.webservices.generation._WSDirectAction: Exception in performActionNamed() on the action loadD2WModel with the message: java.lang.IllegalStateException: Can't obtain rules because of protected access! [2008-12-22 12:56:19 CET] WorkerThread2 com.webobjects.appserver._private.WODirectActionRequestHandler: Exception while handling action named loadD2WModel on action class com .webobjects .webservices .generation ._WSDirectAction :java.lang.reflect.InvocationTargetException Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: _wowrapper not terminated (solved)
On 15 dec 2008, at 19:58, Chuck Hill wrote: On Dec 15, 2008, at 8:26 AM, Johan Henselmans wrote: After I found out that my components would not want to read because of some mysterious, untraceable problems with character encodings, I thought I had tackled most of the problems. Alas, now WebObjects 5.4.3 came back to with a vengeance. Somehow, loading a specific page lead to the error on the bottom of the page. In 5.3.3 this does not happen, and the project merrily proceeds without errors. I assume it has something to do with the parser not understanding how I am combining different tags, but I do not know. All I can think of that might cause the problem is a conditional that creates another body tag depending on a condition: webobject name=ConditionalToPaymentbody onload=init('lnk0','sectionbetalen')/webobject webobject name=ConditionalNotToPaymentbody onload=init('lnk0','sectionverkoop')/webobject If somebody knows another reason why this happens... No idea, you could try moving the conditional to Java and the body tag to a WOGenericContainer: Did that, cleaned up a syntax error in the the wo, but did not solve the problem. However, you got me thinking (as usual). I finally noticed the Footer comment in the error message, and in this Footer.wo had a HTML file which contained (for future purposes) Footer.html: /body Footer.wod: That was unacceptable. This had to be: Footer.html: webobject name = EndBodyContainer/ Footer.wod EndBodyContainer : WOGenericContainer { elementName = /body; } Should I file this as a bug, or what? Body: WOGenericContainer { elementName = body; // Just guessing here, check with content assist onload = onLoadScript; } If that fixes it, submit a bug report. Chuck } [2008-12-15 17:6:30 CET] WorkerThread0 WOMLDefaultErrorHandler.fatalError(org.xml.sax.SAXParseException: The element type _wowrapper_ must be terminated by the matching end-tag /_wowrapper_.) [2008-12-15 17:6:30 CET] WorkerThread0 com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Footer: 4:3: The element type _wowrapper_ must be terminated by the matching end-tag /_wowrapper_. [2008-12-15 17:6:30 CET] WorkerThread0 com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Footer: 4:3: The element type _wowrapper_ must be terminated by the matching end-tag /_wowrapper_. at com .webobjects .appserver .parser.woml.WOMLTemplateParser.process(WOMLTemplateParser.java:347) at com .webobjects .appserver .parser.woml.WOMLTemplateParser.parse(WOMLTemplateParser.java:653) at com .webobjects .appserver .parser.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java:40) at com .webobjects .appserver .parser .WOComponentTemplateParser .templateWithHTMLAndDeclaration(WOComponentTemplateParser.java:438) at com .webobjects .appserver ._private.WOComponentDefinition.template(WOComponentDefinition.java: 364) at com.webobjects.appserver.WOComponent.template(WOComponent.java: 499) at com .webobjects.appserver.WOComponent.appendToResponse(WOComponent.java: 1112) at com .webobjects .appserver ._private .WOComponentReference.appendToResponse(WOComponentReference.java:135) at com .webobjects .appserver ._private .WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126) at com .webobjects .appserver ._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136) at com .webobjects.appserver.WOComponent.appendToResponse(WOComponent.java: 1122) at com.webobjects.appserver.WOSession.appendToResponse(WOSession.java: 1385) at com .webobjects .appserver.WOApplication.appendToResponse(WOApplication.java:1794) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedPage(WOComponentRequestHandler.java:242) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedSession(WOComponentRequestHandler.java:298) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332) at com .webobjects .appserver ._private .WOComponentRequestHandler ._handleRequest(WOComponentRequestHandler.java:369) at com .webobjects .appserver ._private .WOComponentRequestHandler .handleRequest(WOComponentRequestHandler.java:442) at com .webobjects .appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at com .webobjects .appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com .webobjects .appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:613) Caused by: org.xml.sax.SAXParseException: The element type _wowrapper_ must be terminated by the matching end-tag / _wowrapper_
Re: Any reason why extending and extended WOComponent would not work?
On 15 dec 2008, at 03:41, Chuck Hill wrote: On Dec 14, 2008, at 6:38 PM, Johan Henselmans wrote: On 15 dec 2008, at 02:55, Chuck Hill wrote: On Dec 14, 2008, at 5:51 PM, Johan Henselmans wrote: On 15 dec 2008, at 02:24, Chuck Hill wrote: er, you have to use my cool superclass. :-P public NSArray associations() { return _keyAssociations.allValues(); } Chuck Ahh, I already found some the _keyAssociations method while browsing for content assist to the WOComponent. When I tried it out, this is what I got. [2008-12-15 2:49:29 CET] WorkerThread0 com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.foundation.NSForwardException [java.lang.reflect.InvocationTargetException] null:java.lang.reflect.InvocationTargetException [2008-12-15 2:49:29 CET] WorkerThread0 com.webobjects.foundation.NSForwardException [java.lang.reflect.InvocationTargetException] null:java.lang.reflect.InvocationTargetException at com .webobjects .foundation ._NSUtilities._explainInstantiationException(_NSUtilities.java:600) If you catch and dig down in that exception you might get some explanation, but... Or should I try it out somewhere else? In Debugging mode? Learning... public PrintTickets(WOContext context) { super(context); System.out.println([ into printticket]\n); System.out.println(associations()); } BTW, this is what I got in 5.4.3 with the original code: it complains about \ufeff (65279). Any idea? zero width no break space Looks like the first character of your WOD is not acceptable. Maybe a UTF-16 char in a UTF-8 defined file? I replaced the whole wod file with a new one (copy and paste). Still the same error. The briljant and cool as ice associations() class does not give any hints either. All I get is a null error. What is it supposed to be showing, and when? I noticed that another wod file, with another component, seemed to produce very strange content: there was a word in that wod file: Beëindig Verkoop, that got into the webbrowser as: pastedGraphic.png It seems odd, Safari did not pick up that it was UTF-8 encoded. But I guess that is not the core of this problem. What does the WOO file say the encoding is? What does Eclipse think it is? Any chance these are really UTF-16? Chuck sh-3.2# file * PrintTickets.html: ASCII text, with very long lines PrintTickets.wod: ASCII text PrintTickets.woo: ASCII text Eclipse (via navigator): PrintTickets.wo : UTF-8, inherited from container PrintTickets.html : UTF-8, inherited from container PrintTickets.woo : UTF-8, determined from content PrintTickets.wod : UTF-8, determined from content PrintTickets.woo: { WebObjects Release = WebObjects 5.0; encoding = UTF-8; variables = {}; } I opened the files in SubEthaEdit and TextWrangler, and they both agreed on UTF-8 for all the files. [2008-12-15 2:27:37 CET] WorkerThread1 com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.foundation.NSForwardException [com .webobjects .appserver.parser.declaration.WODeclarationFormatException] Lexical error at line 1, column 1. Encountered: \ufeff (65279), after : :com.webobjects.appserver._private.WOComponentDefinition: Error parsing template for Component : 'file:/Users/johan/ projecten/Theater/EclipseWorkSpaceTheater/kassa/build/kassa.woa/ Contents/Resources/PrintTickets.wo': com .webobjects .appserver.parser.declaration.WODeclarationFormatException: Lexical error at line 1, column 1. Encountered: \ufeff (65279), after : [2008-12-15 2:27:37 CET] WorkerThread1 com.webobjects.foundation.NSForwardException [com .webobjects .appserver.parser.declaration.WODeclarationFormatException] Lexical error at line 1, column 1. Encountered: \ufeff (65279), after : :com.webobjects.appserver._private.WOComponentDefinition: Error parsing template for Component : 'file:/Users/johan/ projecten/Theater/EclipseWorkSpaceTheater/kassa/build/kassa.woa/ Contents/Resources/PrintTickets.wo': com .webobjects .appserver.parser.declaration.WODeclarationFormatException: Lexical error at line 1, column 1. Encountered: \ufeff (65279), after : at com .webobjects .appserver ._private .WOComponentDefinition.template(WOComponentDefinition.java:367) at com.webobjects.appserver.WOComponent.template(WOComponent.java:499) at com .webobjects .appserver.WOComponent.appendToResponse(WOComponent.java:1112) at com .webobjects .appserver ._private .WOComponentReference.appendToResponse(WOComponentReference.java: 135) at com .webobjects .appserver ._private .WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126) at com .webobjects .appserver ._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136) at com .webobjects
Re: Any reason why extending and extended WOComponent would not work? (SOLVED)
On 15 dec 2008, at 14:37, Mike Schrag wrote: On Dec 14, 2008, at 6:38 PM, Johan Henselmans wrote: Maybe you're running into an old bug in wolips where it used to be in another folder and it got deleted, but the build system didn't fully clean up? in your workspace, do a find . -name 'PrintTickets.wo' and see if there's a .wo that is empty in your build folder. ms I removed the build folder over and over again. What finally solved the problem is to copy and paste all the contents of the files (the html, wod and woo file) in new files in TextWrangler, remove the old ones via the Finder and then save new ones in the same wo folder. After solving the error on the initial component, I got the same error with 4 other components in the project. It then finally worked. I am still baffled as to why this happened. I had a look in the .settings file in the project and noticed a remark on one file being a UTF file (which I would assume would just be all right). Oh well. Just another day spent hunting and squishing mysterious bugs in the exotic rain forest of where the sun never eclipses. ___ Do not 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 jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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
_wowrapper not terminated
After I found out that my components would not want to read because of some mysterious, untraceable problems with character encodings, I thought I had tackled most of the problems. Alas, now WebObjects 5.4.3 came back to with a vengeance. Somehow, loading a specific page lead to the error on the bottom of the page. In 5.3.3 this does not happen, and the project merrily proceeds without errors. I assume it has something to do with the parser not understanding how I am combining different tags, but I do not know. All I can think of that might cause the problem is a conditional that creates another body tag depending on a condition: webobject name=ConditionalToPaymentbody onload=init('lnk0','sectionbetalen')/webobject webobject name=ConditionalNotToPaymentbody onload=init('lnk0','sectionverkoop')/webobject If somebody knows another reason why this happens... [2008-12-15 17:6:30 CET] WorkerThread0 WOMLDefaultErrorHandler.fatalError(org.xml.sax.SAXParseException: The element type _wowrapper_ must be terminated by the matching end-tag /_wowrapper_.) [2008-12-15 17:6:30 CET] WorkerThread0 com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Footer: 4:3: The element type _wowrapper_ must be terminated by the matching end-tag /_wowrapper_. [2008-12-15 17:6:30 CET] WorkerThread0 com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Footer: 4:3: The element type _wowrapper_ must be terminated by the matching end-tag /_wowrapper_. at com .webobjects .appserver .parser.woml.WOMLTemplateParser.process(WOMLTemplateParser.java:347) at com .webobjects .appserver .parser.woml.WOMLTemplateParser.parse(WOMLTemplateParser.java:653) at com .webobjects .appserver.parser.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java: 40) at com .webobjects .appserver .parser .WOComponentTemplateParser .templateWithHTMLAndDeclaration(WOComponentTemplateParser.java:438) at com .webobjects .appserver ._private.WOComponentDefinition.template(WOComponentDefinition.java:364) at com.webobjects.appserver.WOComponent.template(WOComponent.java:499) at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java: 1112) at com .webobjects .appserver ._private .WOComponentReference.appendToResponse(WOComponentReference.java:135) at com .webobjects .appserver ._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java: 126) at com .webobjects .appserver ._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136) at com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java: 1122) at com.webobjects.appserver.WOSession.appendToResponse(WOSession.java: 1385) at com .webobjects .appserver.WOApplication.appendToResponse(WOApplication.java:1794) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedPage(WOComponentRequestHandler.java:242) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedSession(WOComponentRequestHandler.java:298) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332) at com .webobjects .appserver ._private .WOComponentRequestHandler ._handleRequest(WOComponentRequestHandler.java:369) at com .webobjects .appserver ._private .WOComponentRequestHandler .handleRequest(WOComponentRequestHandler.java:442) at com .webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java: 1687) at com .webobjects .appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com .webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java: 226) at java.lang.Thread.run(Thread.java:613) Caused by: org.xml.sax.SAXParseException: The element type _wowrapper_ must be terminated by the matching end-tag / _wowrapper_. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com .webobjects .appserver .parser.woml.WOMLTemplateParser.process(WOMLTemplateParser.java:339) ... 21 more Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: Any reason why extending and extended WOComponent would not work?
.WOBundleComponentTemplateParser .didParseClosingWebObjectTag(WOBundleComponentTemplateParser.java:68) at com .webobjects .appserver .parser.WOHTMLParser.didParseClosingWebObjectTag(WOHTMLParser.java:194) at com .webobjects .appserver.parser.WOHTMLParser.endOfWebObjectTag(WOHTMLParser.java:161) at com .webobjects .appserver.parser.WOHTMLParser.handleWebObjectTag(WOHTMLParser.java:140) at com .webobjects.appserver.parser.WOHTMLParser.parseHTML(WOHTMLParser.java: 61) at com .webobjects .appserver .parser .WOBundleComponentTemplateParser .parse(WOBundleComponentTemplateParser.java:109) at com .webobjects .appserver.parser.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java: 40) at com .webobjects .appserver .parser .WOComponentTemplateParser .templateWithHTMLAndDeclaration(WOComponentTemplateParser.java:438) at com .webobjects .appserver ._private.WOComponentDefinition.template(WOComponentDefinition.java:364) ... 17 more Caused by: com.webobjects.appserver.parser.declaration.TokenMgrError: Lexical error at line 1, column 1. Encountered: \ufeff (65279), after : at com .webobjects .appserver .parser .declaration .WODeclarationParserTokenManager .getNextToken(WODeclarationParserTokenManager.java:1869) at com .webobjects .appserver .parser .declaration.WODeclarationParser.jj_ntk(WODeclarationParser.java:570) at com .webobjects .appserver .parser .declaration.WODeclarationParser.declarations(WODeclarationParser.java: 221) at com .webobjects .appserver .parser .declaration .WODeclarationParser.declarationsWithString(WODeclarationParser.java:26) ... 27 more On Dec 14, 2008, at 5:18 PM, Johan Henselmans wrote: On 14 dec 2008, at 21:42, Chuck Hill wrote: On Dec 14, 2008, at 11:51 AM, Johan Henselmans wrote: (Had the error in 5.4.3 and 5.3.3, latest WOLips and Wonder) I had an error in an old project, so I wanted to fix that, but while testing it, somewhere else in the code I suddenly got this error that seems to be saying it can not find a component called PrintTicketForm, which is a WOForm in the Component PrintTickets.wo. I looked at it, and looked at it. It is there, I can see it, I looked at UTF gremlins, none around. If it makes you feel any better, I can see it to. :-) Try logging out associations() from PrintTickets and see if that matches the WOD or produces a more useful error. What do you mean by associations? How do I provoke these things to come up? pastedGraphic.png The second one seems not too good a reference... The only thing that I can imagine is that the PrintTickets component does not like to be an extension of another component (WebStoreComponent) which is an extension of WOComponent. I do multi-level inheritance like that all the time, that should not be the problem. Does anybody know any other reason why the webobjects parser is not able to find this, but used to like this in the old days (let's say the end of 2006?). I can't think of anything. Chuck The error: [2008-12-14 20:22:51 CET] WorkerThread0 com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.foundation.NSForwardException [com.webobjects.appserver._private.WODeclarationFormatException] WOHTMLTemplateParser no declaration for dynamic element (or component) named PrintTicketForm: com.webobjects.appserver._private.WOComponentDefinition: Error parsing template for Component : 'file:/Users/johan/projecten/ Theater/EclipseWorkSpaceTheater/kassa/build/kassa.woa/Contents/ Resources/PrintTickets.wo': com.webobjects.appserver._private.WODeclarationFormatException: WOHTMLTemplateParser no declaration for dynamic element (or component) named PrintTicketForm [2008-12-14 20:22:51 CET] WorkerThread0 com.webobjects.foundation.NSForwardException for com.webobjects.appserver._private.WODeclarationFormatException: WOHTMLTemplateParser no declaration for dynamic element (or component) named PrintTicketForm at com .webobjects .appserver ._private .WOHTMLWebObjectTag ._elementWithDeclaration(WOHTMLWebObjectTag.java:212) at com .webobjects .appserver ._private .WOHTMLWebObjectTag.dynamicElement(WOHTMLWebObjectTag.java:122) at com .webobjects .appserver ._private .WOHTMLTemplateParser .didParseClosingWebObjectTag(WOHTMLTemplateParser.java:52) at com .webobjects .appserver ._private .WOHTMLParser.didParseClosingWebObjectTag(WOHTMLParser.java:183) at com .webobjects .appserver ._private.WOHTMLParser.endOfWebObjectTag(WOHTMLParser.java:150) at com .webobjects .appserver._private.WOHTMLParser.parseHTML(WOHTMLParser.java:67) at com .webobjects .appserver ._private .WOHTMLTemplateParser.parseHTML(WOHTMLTemplateParser.java:81) at com .webobjects .appserver ._private.WOHTMLTemplateParser.parse(WOHTMLTemplateParser.java:95) at com .webobjects .appserver
Re: Any reason why extending and extended WOComponent would not work?
On 15 dec 2008, at 02:55, Chuck Hill wrote: On Dec 14, 2008, at 5:51 PM, Johan Henselmans wrote: On 15 dec 2008, at 02:24, Chuck Hill wrote: er, you have to use my cool superclass. :-P public NSArray associations() { return _keyAssociations.allValues(); } Chuck Ahh, I already found some the _keyAssociations method while browsing for content assist to the WOComponent. When I tried it out, this is what I got. [2008-12-15 2:49:29 CET] WorkerThread0 com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.foundation.NSForwardException [java.lang.reflect.InvocationTargetException] null:java.lang.reflect.InvocationTargetException [2008-12-15 2:49:29 CET] WorkerThread0 com.webobjects.foundation.NSForwardException [java.lang.reflect.InvocationTargetException] null:java.lang.reflect.InvocationTargetException at com .webobjects .foundation ._NSUtilities._explainInstantiationException(_NSUtilities.java:600) If you catch and dig down in that exception you might get some explanation, but... Or should I try it out somewhere else? In Debugging mode? Learning... public PrintTickets(WOContext context) { super(context); System.out.println([ into printticket]\n); System.out.println(associations()); } BTW, this is what I got in 5.4.3 with the original code: it complains about \ufeff (65279). Any idea? zero width no break space Looks like the first character of your WOD is not acceptable. Maybe a UTF-16 char in a UTF-8 defined file? I replaced the whole wod file with a new one (copy and paste). Still the same error. The briljant and cool as ice associations() class does not give any hints either. All I get is a null error. What is it supposed to be showing, and when? I noticed that another wod file, with another component, seemed to produce very strange content: there was a word in that wod file: Beëindig Verkoop, that got into the webbrowser as: inline: pastedGraphic.png It seems odd, Safari did not pick up that it was UTF-8 encoded. But I guess that is not the core of this problem. Chuck [2008-12-15 2:27:37 CET] WorkerThread1 com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.foundation.NSForwardException [com .webobjects .appserver.parser.declaration.WODeclarationFormatException] Lexical error at line 1, column 1. Encountered: \ufeff (65279), after : :com.webobjects.appserver._private.WOComponentDefinition: Error parsing template for Component : 'file:/Users/johan/projecten/ Theater/EclipseWorkSpaceTheater/kassa/build/kassa.woa/Contents/ Resources/PrintTickets.wo': com .webobjects .appserver.parser.declaration.WODeclarationFormatException: Lexical error at line 1, column 1. Encountered: \ufeff (65279), after : [2008-12-15 2:27:37 CET] WorkerThread1 com.webobjects.foundation.NSForwardException [com .webobjects .appserver.parser.declaration.WODeclarationFormatException] Lexical error at line 1, column 1. Encountered: \ufeff (65279), after : :com.webobjects.appserver._private.WOComponentDefinition: Error parsing template for Component : 'file:/Users/johan/projecten/ Theater/EclipseWorkSpaceTheater/kassa/build/kassa.woa/Contents/ Resources/PrintTickets.wo': com .webobjects .appserver.parser.declaration.WODeclarationFormatException: Lexical error at line 1, column 1. Encountered: \ufeff (65279), after : at com .webobjects .appserver ._private.WOComponentDefinition.template(WOComponentDefinition.java: 367) at com.webobjects.appserver.WOComponent.template(WOComponent.java: 499) at com .webobjects.appserver.WOComponent.appendToResponse(WOComponent.java: 1112) at com .webobjects .appserver ._private .WOComponentReference.appendToResponse(WOComponentReference.java:135) at com .webobjects .appserver ._private .WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126) at com .webobjects .appserver ._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136) at com .webobjects.appserver.WOComponent.appendToResponse(WOComponent.java: 1122) at com.webobjects.appserver.WOSession.appendToResponse(WOSession.java: 1385) at com .webobjects .appserver.WOApplication.appendToResponse(WOApplication.java:1794) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedPage(WOComponentRequestHandler.java:242) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedSession(WOComponentRequestHandler.java:298) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332) at com .webobjects .appserver ._private .WOComponentRequestHandler ._handleRequest(WOComponentRequestHandler.java:369) at com
Re: Wonder/D2W NEUListpage running out of memory. Huh?
Op 3 jun 2008, om 17:37 heeft Guido Neitzer het volgende geschreven: On 03.06.2008, at 07:32, Johan Henselmans wrote: When I do a search on a record, it replies properly. But when I do not fill in any query, the application runs out of memory and quits. Does: pageConfiguration = 'Foo' = useBatchingDisplayGroup = true [100] help? cug -- http://www.event-s.net Thanks! I found that to get it working I also had to set pageConfiguration = 'QueryFoo' = pageName = ERNEUListPage (I had set the default setting to NEUListPage) which brings me to the next question: in the NEUListPage you can set the number of occurrences in the pastedGraphic.pdf Description: Adobe PDF document via the batchSize key in a NEUListPage. batchSize seems to indicate something else in ERD2WListPage, which is the parent of ERNEUListpage. So how do I set the items/page? Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 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: Wonder/D2W NEUListpage running out of memory. Huh?
Op 4 jun 2008, om 08:31 heeft Johan Henselmans het volgende geschreven: Op 3 jun 2008, om 17:37 heeft Guido Neitzer het volgende geschreven: On 03.06.2008, at 07:32, Johan Henselmans wrote: When I do a search on a record, it replies properly. But when I do not fill in any query, the application runs out of memory and quits. Does: pageConfiguration = 'Foo' = useBatchingDisplayGroup = true [100] help? cug -- http://www.event-s.net Thanks! I found that to get it working I also had to set pageConfiguration = 'QueryFoo' = pageName = ERNEUListPage Oops: typing error: should be: pageConfiguration = 'ListFoo' = pageName = ERNEUListPage (I had set the default setting to NEUListPage) which brings me to the next question: in the NEUListPage you can set the number of occurrences in the pastedGraphic.pdf via the batchSize key in a NEUListPage. batchSize seems to indicate something else in ERD2WListPage, which is the parent of ERNEUListpage. So how do I set the items/page? Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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-6279159 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]
Wonder/D2W NEUListpage running out of memory. Huh?
I have a database with a table filled with about 1 records. When I do a search on a record, it replies properly. But when I do not fill in any query, the application runs out of memory and quits. Does anybody know why that is? Do I have to reduce the set somehow? jun 03 15:44:34 canonbeheerext[60006] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Begin Internal Transaction jun 03 15:44:34 canonbeheerext[60006] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - evaluateExpression: com.webobjects.jdbcadaptor.PostgresqlExpression: SELECT t0.bankbookdet_id, t0.certificatePrinted, t0.confirmation_sent, t0.reservation_id, t0.testPassedDate, t0.training_id, t0.usertested, t0.vouchercreated, t0.voucherid, t0.vouchernumber FROM voucher t0 jun 03 15:44:41 canonbeheerext[60006] (?:?) DEBUG NSLog - fetch canceled jun 03 15:44:44 canonbeheerext[60006] (?:?) DEBUG NSLog - 68831 row(s) processed jun 03 15:44:48 canonbeheerext[60006] (ERXNSLogLog4jBridge.java:41) WARN NSLog - com.webobjects.appserver._private.WOComponentRequestHandler: Exception occurred while handling request: com.webobjects.foundation.NSForwardException [java.lang.OutOfMemoryError] Java heap space [2008-06-03 15:44:48 CEST] WorkerThread0 com.webobjects.foundation.NSForwardException for java.lang.OutOfMemoryError: Java heap space at java.lang.Throwable.getOurStackTrace(Throwable.java:590) at java.lang.Throwable.printStackTrace(Throwable.java:511) at org.apache.log4j.spi.LocationInfo.init(LocationInfo.java:105) at org .apache .log4j.spi.LoggingEvent.getLocationInformation(LoggingEvent.java:191) at org.apache.log4j.helpers.PatternParser $LocationPatternConverter.convert(PatternParser.java:483) at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java: 64) at org.apache.log4j.PatternLayout.format(PatternLayout.java:503) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301) at org.apache.log4j.WriterAppender.append(WriterAppender.java:159) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java: 230) at org .apache .log4j .helpers .AppenderAttachableImpl .appendLoopOnAppenders(AppenderAttachableImpl.java:65) at org.apache.log4j.Category.callAppenders(Category.java:203) at org.apache.log4j.Category.forcedLog(Category.java:388) at org.apache.log4j.Category.debug(Category.java:257) at er.extensions.ERXNSLogLog4jBridge.appendln(ERXNSLogLog4jBridge.java:44) at com .webobjects .eoaccess.EOAdaptorContext.transactionDidCommit(EOAdaptorContext.java: 486) at com .webobjects.jdbcadaptor.JDBCContext.commitTransaction(JDBCContext.java: 422) at com.webobjects.jdbcadaptor.JDBCChannel._endFetch(JDBCChannel.java: 375) at com.webobjects.jdbcadaptor.JDBCChannel.cancelFetch(JDBCChannel.java:472) at com .webobjects .eoaccess .EODatabaseChannel._cancelInternalFetch(EODatabaseChannel.java:706) at com .webobjects .eoaccess.EODatabaseChannel.cancelFetch(EODatabaseChannel.java:556) at com .webobjects .eoaccess.EODatabaseChannel._fetchObject(EODatabaseChannel.java:436) at com .webobjects .eoaccess .EODatabaseContext ._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java: 3221) at com .webobjects .eoaccess .EODatabaseContext .objectsWithFetchSpecification(EODatabaseContext.java:3346) at com .webobjects .eocontrol .EOObjectStoreCoordinator .objectsWithFetchSpecification(EOObjectStoreCoordinator.java:539) at com .webobjects .eocontrol .EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java: 4114) at er.extensions.ERXEC.objectsWithFetchSpecification(ERXEC.java:1090) at com .webobjects .eoaccess.EODatabaseDataSource.fetchObjects(EODatabaseDataSource.java: 633) at com.webobjects.appserver.WODisplayGroup.fetch(WODisplayGroup.java: 2191) at com.webobjects.directtoweb.D2WListPage.setDataSource(D2WListPage.java: 196) at com.webobjects.directtoweb.D2WQueryPage.queryAction(D2WQueryPage.java: 183) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) jun 03 15:44:48 canonbeheerext[60006] (ERXNSLogLog4jBridge.java:41) WARN NSLog - Ran out of memory, killing this instance jun 03 15:44:48 canonbeheerext[60006] (ERXApplication.java:1384) ERROR er.extensions.ERXApplication - Ran out of memory, killing this instance Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 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]
odd behaviour in n:m settings in EntityModeler in WOLips
I am creating a n:m relation between two tables, called adminuser and admingroup, and flatten the relationship. That would result in an n:m table, admingroupadminuser, with two relationships on both sides: one would propagate the primary key to the table admingroupadminuser, the other one would be a flattened one to the other table. However, I am now getting verification errors in EntityModeler after creating the table. It says: The relationship adminGroupAdminUsers is a to-many but also propagates its primary key. I assume that turning off the propagate primary key would prevent creating a new record in the n:m table admingroupadminuser. Anybody has the same experience, solutions? Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 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: odd behaviour in n:m settings in EntityModeler in WOLips
On 2 jun 2008, at 11:07, Alexander Spohr wrote: Johann, it sounds like you got it the wrong way ’round. Am 02.06.2008 um 08:58 schrieb Johan Henselmans: I am creating a n:m relation between two tables, called adminuser and admingroup, and flatten the relationship. That would result in an n:m table, admingroupadminuser, with two relationships on both sides: one would propagate the primary key to the table admingroupadminuser, the other one would be a flattened one to the other table. The master-tables (adminuser and admingroup) have to propagate their pk into the n:m (admingroupadminuser). admingroupadminuserhas no pk of its own so it has nothing to propagate somewhere. So you’ll have these real relationships (which you switch off in the model): adminuser - admingroupadminuser - admingroup and these two flattened ones: adminuser - admingroup That is exactly what I am saying ;-) I just noticed that this behaviour started between WOLips 3.3.5195 and WOLips 3.3.5205. Version 5195 did not display this error. I just tested it on another system. (5.4.2-ish).There I got the same behaviour. However, I am now getting verification errors in EntityModeler after creating the table. It says: The relationship adminGroupAdminUsers is a to-many but also propagates its primary key. This sounds strange. I assume that turning off the propagate primary key would prevent creating a new record in the n:m table admingroupadminuser. See above. Anybody has the same experience, No. solutions? I hope so :) atze Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 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]
My voucher for my reservation refuses to save because of an ERXValidationException
I have been using a datamodel with reservation- voucher for some time. Most of the time a reservation has to be created, sometimes a voucher. Most of the vouchers are already in the database. The way I save the data is to create a reservation, select a voucher, and then add the voucher to the reservation, in such a way: defaultEC().insertObject(mySess().selectedReservation() ); mySess ().selectedReservation().setVoucherRelationship( mySess().voucher() ); After that, I add the reservation to the voucher: mySess ().selectedReservation().setVoucherRelationship( mySess().voucher() ); and save the data: try { defaultEC().saveChanges(); defaultEC ().refreshObject(mySess().selectedReservation().trainingdata()); } catch (Exception e) { defaultEC().revert(); etc... That has been working fine for ages. Now I added an extra relationship to the voucher in the BusinessLogic, (the voucher are now linked to a specific training), reran EOGenerate, but now I am getting errors that the voucher can not be saved: May 31 08:44:22 cursusaanmelding[60001] (_Reservation.java:316) DEBUG nl.netsense.nidf.BL._Reservation - updating voucher from null to {values = {testPassedDate = com.webobjects.foundation.NSKeyValueCoding $Null; reservation = null; training = null; certificatePrinted = com.webobjects.foundation.NSKeyValueCoding$Null; bankbookdetail = null; vouchernumber = 60032ZPKr; voucherCreated = com.webobjects.foundation.NSKeyValueCoding$Null; userTested = com.webobjects.foundation.NSKeyValueCoding$Null; confirmationSent = com.webobjects.foundation.NSKeyValueCoding$Null; }; this = nl.netsense.nidf.BL.Voucher 27d525 _EOIntegralKeyGlobalID[Voucher (java.lang.Integer)60032]; } May 31 08:44:22 cursusaanmelding[60001] (_Voucher.java:128) DEBUG nl.netsense.nidf.BL._Voucher - updating reservation from null to {values = {emailadres = [EMAIL PROTECTED]; voorvoegsel = com.webobjects.foundation.NSKeyValueCoding$Null; telefoonprive = 02020; dealerPc1 = 1011; dealerPc2 = SG; reservationRemarks = com.webobjects.foundation.NSKeyValueCoding$Null; trainingdata = nl.netsense.nidf.BL.Trainingdata d92304 _EOIntegralKeyGlobalID[Trainingdata (java.lang.Integer)247]; reservationNoOfReservationsPickedUp = com.webobjects.foundation.NSKeyValueCoding$Null; reservationOneExtra = 1; reservationDateReservation = 2008-05-31 06:44:20 Etc/GMT; dealerHnr = 123; dealer = null; adres = com.webobjects.foundation.NSKeyValueCoding$Null; adressen = nl.netsense.nidf.BL.Address cf630a EOTemporaryGlobalID: 0 0 -63 78 79 45 0 0 -22 97 1 0 0 0 1 26 61 -72 64 -49 67 -25 83 -120; reservationSerialno = 12134; telefoonwerk = 0202020; reservationNoOfReservations = 1; voucher = nl.netsense.nidf.BL.Voucher 27d525 _EOIntegralKeyGlobalID[Voucher (java.lang.Integer)60032]; bankbookdetail = null; emailok = true; achternaam = henselmans; voornaam = johan; }; this = nl.netsense.nidf.BL.Reservation 6f411f EOTemporaryGlobalID: 0 0 -63 78 79 45 0 0 -22 97 2 0 0 0 1 26 61 -72 64 -49 67 -25 83 -120; } May 31 08:44:22 cursusaanmelding[60001] (ERXNSLogLog4jBridge.java:41) WARN NSLog - An exception occurred while trying to save the information: er.extensions.ERXValidationException object: {values = {testPassedDate = com.webobjects.foundation.NSKeyValueCoding$Null; reservation = null; training = null; certificatePrinted = com.webobjects.foundation.NSKeyValueCoding$Null; bankbookdetail = null; vouchernumber = 60032ZPKr; voucherCreated = com.webobjects.foundation.NSKeyValueCoding$Null; userTested = com.webobjects.foundation.NSKeyValueCoding$Null; confirmationSent = com.webobjects.foundation.NSKeyValueCoding$Null; }; this = nl.netsense.nidf.BL.Voucher 27d525 _EOIntegralKeyGlobalID[Voucher (java.lang.Integer)60032]; }; propertyKey: training; type: MandatoryToOneRelationshipException; additionalExceptions: () I noticed that reservation (the relationship to the reservation that has just been inserted) is null in the ERXValidationException, but I am not sure if that is a problem. If I remove the line mySess ().selectedReservation().setVoucherRelationship( mySess().voucher() ); Everything is fine, apart of coure that there is no relation from the voucher to the reservation, just from the reservation to the voucher. Have I done something wrong for ages, that now had suddenly reared its head? (Using the latest Wonder as of last night, despite the warning not to do cvs commit. I thought cvs update would be OK). Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 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
Re: Getting from WOLips to Xcode (trying to freeze a D2W page)
On 28 mei 2008, at 22:54, Chuck Hill wrote: On May 28, 2008, at 1:33 PM, Johan Henselmans wrote: I could not get the possibility to 'freeze' a page template under WOLips with the appletviewer in D2W, so I decided to go back to Xcode on 10.4.11 and try it from there. I created a git repository, cloned the repository on a 10.4 macine, and opened the projects in Xcode. Somehow, things happen that I do not understand. I have turned on the possibility to create a Xcodeproj in WOLips. The choices are: pastedGraphic.png and after I got the application compiled, I can not seem to get a debug build and go, or a run a project. pastedGraphic.png Have people any experiences with this? How can one still use Xcode from the WOLips project folder? What is the purpose? Thanks, than I know where it stands. I'll just create a new project outside the git repository and do the freezing of the page i want in there. It was a partial Xcode project file used to support EOModeler (or was that WOBuilder). It was never intended to be complete enough for use in Xcode. 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 Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 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]
Integer i in EOModel creates Long or Integer in EOGeneration
I have two entities, one with attribute showPublish, one with attribute performancePublish As you can imagine these are booleans, which I make up from an int4 in postgresql. I checked the database, both fields are the same type integer. So far so good. here are the plist descriptions of both: { columnName = show_publish; externalType = int4; name = showPublish; valueClassName = NSNumber; valueType = i; }, { columnName = perf_publish; externalType = int4; name = performancePublish; valueClassName = NSNumber; valueType = i; }, When I use EOGenerate to create a _Show class, and a _Performance class, this results in: public Long showPublish() { return (Long) storedValueForKey(showPublish); } public Integer performancePublish() { return (Integer) storedValueForKey(performancePublish); } Can anybody explain to me why this is happening? Is there some magic involved that, before the EOModel gets written out, there is a check in the database of some kind that could cause this? (WOLips) Regards, Johan Henselmans http://www.netsense.nl Tel: +31-20-6267538 Fax: +31-20-6279159 ___ Do not 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: Integer i in EOModel creates Long or Integer in EOGeneration
Op 8 apr 2008, om 18:00 heeft Mike Schrag het volgende geschreven: When I use EOGenerate to create a _Show class, and a _Performance class, this results in: If you're using the stock eogenerator templates, they call WOLips' attribute.getJavaClassName(), which is pretty straightforward: String className = getValueClassName(); if (Number.equals(className) || NSNumber.equals(className)) { ... } else if (i.equals(valueType)) { className = Integer; ... All that matters is that your attribute is NSNumber + i. Given the simplicity of this code, I don't see any way this would mess up except that you're not looking at the model you think you're looking at, you're not looking at the class you think you're looking at, or you're not using the velocity templates you think you're using. I completely agree, but after some hard learned lessons I think I have done all the things that should be done (apart from completely reinstalling the OS, WOLips and WebObjects, and dancing three times around the camp fire while shouting Woa, Woa, Woa!) ms If anyone would care to look at the code, I have a postgresql schema and the Business Logic Framework project in a zip. I am thinking of sleeping a night over it. It seems to give the best answers, if you can afford it against the deadline... ___ Do not 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-6279159 ___ Do not 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]