Inner Java Enum as value class in EntityModeler
Hi, This issue was already discussed once but I can't really find if it was fixed somehow and I'm missing the obvious. I'm trying more and more to force myself to use Java Enums whenever possible (instead of static fields) and often I find myself in need to serialize them to db for storage. So I write nice to/from PLIST/BLOB factory and conversion methods to dump my Enums into whatever storage I'm using. This unfortunately requires me to fill in Entity Modeler's 'Value Class' field using an inner class (actually it's an inner Enum). I can't use the Class.InnerClass notation. It only works with the Class $InnerClass notation. The problem is that the template then will also pickup the $ thing and wrongly write bugged templates that I have to manually fix. It's only a matter of searching all the '$' and replacing them with a '.', but it can be tedious when you are tweaking the model often. Is there a way to use an inner class without having to manually patch the generated templates? rdm ___ Do not post admin requests to the list. They will 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
Installing WO 543 on Linux
Hi all, Following the instructions at: http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux Building the Apache WO Module, I'm running into this problem: /usr/local/apache/bin/apxs -i -a -n WebObjects mod_WebObjects.la I get: -bash: /usr/local/apache/bin/apxs: No such file or directory I have gcc installed but I can't figure out what I should install to be able to use apxs. I have Apache 2.2.3 installed and working. Is it just a matter of finding and downloading and installing apache2- threaded-dev for that version of Apache? Anyone know where I can find that installer? Regards, David. ___ Do not post admin requests to the list. They will 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: Installing WO 543 on Linux
Sorry, I found apxs but this is the error I'm getting: apxs -i -a -n WebObjects mod_WebObjects.la /usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/ libtool' mod_WebObjects.la /usr/lib/httpd/modules /usr/lib/apr-1/build/libtool --mode=install cp mod_WebObjects.la /usr/ lib/httpd/modules/ libtool: install: `mod_WebObjects.la' is not a valid libtool archive Try `libtool --help --mode=install' for more information. apxs:Error: Command failed with rc=65536 On Nov 7, 2009, at 10:35 AM, David Griffith wrote: Hi all, Following the instructions at: http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux Building the Apache WO Module, I'm running into this problem: /usr/local/apache/bin/apxs -i -a -n WebObjects mod_WebObjects.la I get: -bash: /usr/local/apache/bin/apxs: No such file or directory I have gcc installed but I can't figure out what I should install to be able to use apxs. I have Apache 2.2.3 installed and working. Is it just a matter of finding and downloading and installing apache2- threaded-dev for that version of Apache? Anyone know where I can find that installer? Regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/david%40infinityspain.com This email sent to da...@infinityspain.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Inner Java Enum as value class in EntityModeler
Hi Riccardo, some time ago I had the very same problem using inner enums in Entity Modeler. I found that the easiest way was to move those enums out of their outer class and make them normal enums. The other, more laborious, way would be to tweak the eogenerator templates to do the replacement of '$' by '.' automatically. jw Am 07.11.2009 um 10:03 schrieb Riccardo De Menna: Hi, This issue was already discussed once but I can't really find if it was fixed somehow and I'm missing the obvious. I'm trying more and more to force myself to use Java Enums whenever possible (instead of static fields) and often I find myself in need to serialize them to db for storage. So I write nice to/from PLIST/BLOB factory and conversion methods to dump my Enums into whatever storage I'm using. This unfortunately requires me to fill in Entity Modeler's 'Value Class' field using an inner class (actually it's an inner Enum). I can't use the Class.InnerClass notation. It only works with the Class$InnerClass notation. The problem is that the template then will also pickup the $ thing and wrongly write bugged templates that I have to manually fix. It's only a matter of searching all the '$' and replacing them with a '.', but it can be tedious when you are tweaking the model often. Is there a way to use an inner class without having to manually patch the generated templates? rdm 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: 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
Re: Uses for D2JC (was: Gianduia and WO)
Is D2* still used by Apple? yes ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Installing WO 543 on Linux
On Sat, Nov 7, 2009 at 2:00 AM, David Griffith da...@infinityspain.com wrote: Sorry, I found apxs but this is the error I'm getting: apxs -i -a -n WebObjects mod_WebObjects.la /usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/libtool' mod_WebObjects.la /usr/lib/httpd/modules /usr/lib/apr-1/build/libtool --mode=install cp mod_WebObjects.la /usr/lib/httpd/modules/ libtool: install: `mod_WebObjects.la' is not a valid libtool archive Try `libtool --help --mode=install' for more information. apxs:Error: Command failed with rc=65536 You need to force the CC var to be CC=gcc http://wiki.objectstyle.org/confluence/pages/viewpage.action?pageId=196936navigatingVersions=true On Nov 7, 2009, at 10:35 AM, David Griffith wrote: Hi all, Following the instructions at: http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux Building the Apache WO Module, I'm running into this problem: /usr/local/apache/bin/apxs -i -a -n WebObjects mod_WebObjects.la I get: -bash: /usr/local/apache/bin/apxs: No such file or directory I have gcc installed but I can't figure out what I should install to be able to use apxs. I have Apache 2.2.3 installed and working. Is it just a matter of finding and downloading and installing apache2-threaded-dev for that version of Apache? Anyone know where I can find that installer? Regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/david%40infinityspain.com This email sent to da...@infinityspain.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/jmlittle%40gmail.com This email sent to jmlit...@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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Uses for D2JC (was: Gianduia and WO)
You could argue that it doesn't matter much if a JavaClient looks awful on the Mac since 90% of your user will be running Windows - and probably more for a business application. Also, the Nimbushttp://bp0.blogger.com/_B11qFTiSj3U/SF-fNZv6DKI/AAM/D7NvQQzwYzQ/s1600-h/nimbus.giflook and feel introduced in Java 1.6 is pretty nice, and available for Java 1.5 with a separate library. It is very aqua-like, but not native, so you don't have to worry about it not quite matching the native look, sort of like the way browser apps do. Still, I agree that I prefer SWT's appearance to Swing's. You can also make a JavaClient app with SWT (not a D2JC one though). John On Fri, Nov 6, 2009 at 11:42 AM, Mike Schrag msch...@mdimension.com wrote: Sure, I agree yours is real and mine's a picture, but that wasn't really my point. My point was about visual mismatch with the native platform. If you're OK with the app looking like Java ... , by all means, ship it. I find Java desktop apps to be mostly visually repugnant (the same reason that I work on Maclipse, but at least SWT has a fighting chance), and I don't believe you can actually make it un-gross without a huge amount of work. It's a question of what matters to you, though. That said, pretty much everything in the main chunk of your email isn't really D2JC, it's just D2*. I'm sold already on the RAD value of D2* technologies, I'm just not at all convinced that D2JC is the right D2 to choose in most cases. If time-to-market is the primary concern, it seems to me that you have dramatically faster styling and design capabilities with D2W. You can hire an designer off the street to do CSS/HTML work for you, whereas you'd dump a pile of hours into custom Swing controls. This is essentially the same argument I have against the IB/Cocoa style of development. The RAD time in IB/Cocoa is just way longer than making the equivalent UI web-based. Maybe one screen you can layout a little quicker, but start doing multiscreen workflows, and you're just sinking time into Cocoa work (you can really see this when you try to RAD an iphone app -- i find it to be very expensive to do in contrast to web RADing). The flip-side, of course, is that it looks awesome. It's the trade-off again. So I guess the question is really given a project spec, what feature in the project would cause on to choose D2JC over D2W. ms On Nov 6, 2009, at 11:48 AM, David Avendasora wrote: On Nov 6, 2009, at 9:54 AM, Mike Schrag wrote: couple mins of Interface Builder mockup (mac-up?): PastedGraphic-2.pngPastedGraphic-3.png Nice looking and it shows how powerful Interface Builder can be in making UIs, but mine isn't just a mock-up it's a fully functional application - warts and all. It really talks to the server, sync ECs, validates, etc. etc. Again, I dropped an EOModel into my template project and launched it. Then used the EOAssistant to configure which attributes showed, what type of widget they used (PopUp, text field, explorer, etc) and where they appeared on the screen. That's it. No code. There's not a single Java Class besides Application, DirectAction, Session and two components: Main and JavaClient, none of which are modified beyond the stock template. So D2JC is certainly _passable_, but it's far from being a proper mac app (those default old style boxes are the dead giveaway for java apps, though there's a Swing client property to switch box styles, IIRC). Now, certainly, if you spent enough time, you could tweak things and make it a lot closer, but it's always going to be off. Yes, and so will any web app, only more so. Now, your point about the uncanny valley is very true. D2JC comes almost too close to the look of a native app. If it were further off like a web app people's expectations would be lowered and no one would complain. But being uncanny hardly seems a valid reason to throw away something that saves literally _hundreds_ of hours of development time, especially for internal, CRUD-type admin applications. But I don't think that using D2JC to create shipping CRUD-type applications is really its most appropriate or useful application. To me, it's all about lowering project risk by getting stake-holders involved as soon as possible in the development process and as a prototyping and model-validating tool. D2JC is an incredibly powerful tool when used as a means to an end. WIth D2JC you can have a _fully functional_ application with just an EOModel. This allows you, as a developer, to get a true feel for how well your model represents the business context without having to write any code. You can immediately start creating records in the database, setting relationships, deleting objects, orphaning them, etc. through EOF which will verify that the relationships are properly setup including that your deletion rules and ownership settings work as you expect. Again, you can do all this without writing
Re: Inner Java Enum as value class in EntityModeler [SOLVED]
Hi Johann, Thank you for your advice. As you suggested, solving the issue was just a matter of tweaking the templates. I'm using some custom written ones but for anyone with the same issue it's just a matter of sprinkling a bunch of '.replace('$','.')' after any occurrence of the misspelled class name. As an example taken from the usual _WonderEntity.java, replacing line public static final ERXKey$attribute.javaClassName $ {attribute.uppercaseUnderscoreName} = new ERXKey $attribute.javaClassName(${attribute.uppercaseUnderscoreName}_KEY); with line: public static final ERXKey$attribute.javaClassName.replace('$','.') ${attribute.uppercaseUnderscoreName} = new ERXKey $attribute.javaClassName.replace('$','.')($ {attribute.uppercaseUnderscoreName}_KEY); Fixes the issue... hope this can help others as well, Cheers, rdm On 07/nov/2009, at 02.46, Johann Werner wrote: Hi Riccardo, some time ago I had the very same problem using inner enums in Entity Modeler. I found that the easiest way was to move those enums out of their outer class and make them normal enums. The other, more laborious, way would be to tweak the eogenerator templates to do the replacement of '$' by '.' automatically. jw Am 07.11.2009 um 10:03 schrieb Riccardo De Menna: Hi, This issue was already discussed once but I can't really find if it was fixed somehow and I'm missing the obvious. I'm trying more and more to force myself to use Java Enums whenever possible (instead of static fields) and often I find myself in need to serialize them to db for storage. So I write nice to/from PLIST/BLOB factory and conversion methods to dump my Enums into whatever storage I'm using. This unfortunately requires me to fill in Entity Modeler's 'Value Class' field using an inner class (actually it's an inner Enum). I can't use the Class.InnerClass notation. It only works with the Class$InnerClass notation. The problem is that the template then will also pickup the $ thing and wrongly write bugged templates that I have to manually fix. It's only a matter of searching all the '$' and replacing them with a '.', but it can be tedious when you are tweaking the model often. Is there a way to use an inner class without having to manually patch the generated templates? rdm ___ Do not post admin requests to the list. They will 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
extending ERXWOLongResponsePage
I'm using WebObjects 5.4.3 with recommended Eclipse/WOLips versions for Snow Leopard ( Eclipse 3.4.2 / WOLips 3.4 ). I'm trying to extend ERXWOLongResponsePage and use methods from its inheritance like pageWithName, appendToResponse, and pageForResult. All throw errors as if they do not exist and it when I hover over the error next to the beginning of the class, it states: The type com.webobjects.woextensions.WOLongResponsePage cannot be resolved. It is indirectly referenced from required .class files ? ... ok, so it looks like WOLongResponsePage is missing from the woextensions package... Where do I get the full woextensions.jar ... or what is going on here? ___ Do not post admin requests to the list. They will 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: extending ERXWOLongResponsePage
On Nov 7, 2009, at 10:20 AM, ross dev wrote: I'm using WebObjects 5.4.3 with recommended Eclipse/WOLips versions for Snow Leopard ( Eclipse 3.4.2 / WOLips 3.4 ). I'm trying to extend ERXWOLongResponsePage and use methods from its inheritance like pageWithName, appendToResponse, and pageForResult. All throw errors as if they do not exist and it when I hover over the error next to the beginning of the class, it states: The type com.webobjects.woextensions.WOLongResponsePage cannot be resolved. It is indirectly referenced from required .class files ? ... ok, so it looks like WOLongResponsePage is missing from the woextensions package... Where do I get the full woextensions.jar ... or what is going on here? Add JavaWOExtensions.framework to your project. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Installing WO 543 on Linux
Hi Joe, Yes I have already done that. I did manage to get it to complete the 'make' command by running it from the Adaptor directory and not from the Apache2.2 directory (it wouldn't run from there) but I think I am perhaps missing some settings in the make.config. Firstly, should the make.config be copied into the Apache2.2 directory to allow it to run from there? Then, even though it doesn't specifically say in the instructions I was following below, I think I need to tell the make.config where my apache modules are but I'm having trouble determining that path. I'm using CentOS 5.4 with the bundled Apache 2.2.3. The only place I can seem to locate mod_WebObjects.la, which it clearly is looking for, is in the following directory after installing WO 5.4.3: /opt/Library/WebObjects/Adaptors/Apache2.2/.libs/mod_WebObjects.la Is this the directory it's looking for, or rather is that the appropriate file to use? Regards, David. On Nov 7, 2009, at 4:22 PM, Joe Little wrote: On Sat, Nov 7, 2009 at 2:00 AM, David Griffith da...@infinityspain.com wrote: Sorry, I found apxs but this is the error I'm getting: apxs -i -a -n WebObjects mod_WebObjects.la /usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/ libtool' mod_WebObjects.la /usr/lib/httpd/modules /usr/lib/apr-1/build/libtool --mode=install cp mod_WebObjects.la /usr/lib/httpd/modules/ libtool: install: `mod_WebObjects.la' is not a valid libtool archive Try `libtool --help --mode=install' for more information. apxs:Error: Command failed with rc=65536 You need to force the CC var to be CC=gcc http://wiki.objectstyle.org/confluence/pages/viewpage.action?pageId=196936navigatingVersions=true On Nov 7, 2009, at 10:35 AM, David Griffith wrote: Hi all, Following the instructions at: http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux Building the Apache WO Module, I'm running into this problem: /usr/local/apache/bin/apxs -i -a -n WebObjects mod_WebObjects.la I get: -bash: /usr/local/apache/bin/apxs: No such file or directory I have gcc installed but I can't figure out what I should install to be able to use apxs. I have Apache 2.2.3 installed and working. Is it just a matter of finding and downloading and installing apache2-threaded-dev for that version of Apache? Anyone know where I can find that installer? Regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/david%40infinityspain.com This email sent to da...@infinityspain.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/jmlittle%40gmail.com This email sent to jmlit...@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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Installing WO 543 on Linux
Try to install a pre-build one : http://webobjects.mdimension.com/wonder/mod_WebObjects/Apache2.2/centos/5/ Hi Joe, Yes I have already done that. I did manage to get it to complete the 'make' command by running it from the Adaptor directory and not from the Apache2.2 directory (it wouldn't run from there) but I think I am perhaps missing some settings in the make.config. Firstly, should the make.config be copied into the Apache2.2 directory to allow it to run from there? Then, even though it doesn't specifically say in the instructions I was following below, I think I need to tell the make.config where my apache modules are but I'm having trouble determining that path. I'm using CentOS 5.4 with the bundled Apache 2.2.3. The only place I can seem to locate mod_WebObjects.la, which it clearly is looking for, is in the following directory after installing WO 5.4.3: /opt/Library/WebObjects/Adaptors/Apache2.2/.libs/mod_WebObjects.la Is this the directory it's looking for, or rather is that the appropriate file to use? Regards, David. On Nov 7, 2009, at 4:22 PM, Joe Little wrote: On Sat, Nov 7, 2009 at 2:00 AM, David Griffith da...@infinityspain.com wrote: Sorry, I found apxs but this is the error I'm getting: apxs -i -a -n WebObjects mod_WebObjects.la /usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/ libtool' mod_WebObjects.la /usr/lib/httpd/modules /usr/lib/apr-1/build/libtool --mode=install cp mod_WebObjects.la /usr/lib/httpd/modules/ libtool: install: `mod_WebObjects.la' is not a valid libtool archive Try `libtool --help --mode=install' for more information. apxs:Error: Command failed with rc=65536 You need to force the CC var to be CC=gcc http://wiki.objectstyle.org/confluence/pages/viewpage.action?pageId=196936navigatingVersions=true On Nov 7, 2009, at 10:35 AM, David Griffith wrote: Hi all, Following the instructions at: http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux Building the Apache WO Module, I'm running into this problem: /usr/local/apache/bin/apxs -i -a -n WebObjects mod_WebObjects.la I get: -bash: /usr/local/apache/bin/apxs: No such file or directory I have gcc installed but I can't figure out what I should install to be able to use apxs. I have Apache 2.2.3 installed and working. Is it just a matter of finding and downloading and installing apache2-threaded-dev for that version of Apache? Anyone know where I can find that installer? Regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/david%40infinityspain.com This email sent to da...@infinityspain.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/jmlittle%40gmail.com This email sent to jmlit...@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/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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
D2WQuery embedded loses state
Hi all. This may be a stupid question... I've embedded a D2WQuery within a ListPage. It acts as a filter for the list; in fact I use ERDQueryAnyKey exclusively to allow a google-like search of the listed entities. Thank you to all who helped me make the mental leap to D2W - I don't think I'm quite there *yet* - and getting me this far It's actually working quite well BUT! If I type text and click submit, then the list (displaygroup) is filtered appropriately. However, the text is cleared from the textfield. I wish to visually indicate that a filter is applied - I assumed the text would remain within the textfield for the query, but this is not the case. In addition, every time I click submit, I get a wholly new page, even though I've bound the action binding to a method that returns null. Therefore, my list page Back button (Cancel) no longer returns to the calling page but to the previous search. As always, I'm in danger of being too specific and asking the wrong questions! 1. Is there any way of getting a D2WQuery to maintain input state after submission? 2. Is it possible to pass the cancelAction to the *next* page, or somehow keep the same list page instance? 3. Am I still making things overly complicated? Should I use an aboveDisplayPropertyKey and use an embedded component there rather than customising my list page? Many thanks, Mark -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Validation errors inside a sub-component
Brain damage... My component superclass was doing this : public void awake() { session().setErrors(new NSMutableArrayString()); } So when SaveStatViewer was called, the array was empty... Maybe drop all your validation handling into your page component instead and then you can get at it with context.page? Extra bonus: use the same page super class everywhere and your validation handling is done in one place for your entire app. (^_^) Ramsey On Nov 5, 2009, at 9:12 PM, Pascal Robert wrote: I'm trapping validation errors like this : private String error; public void validationFailedWithException(Throwable exception, Object value, String keyPath) { errors.addObject(exception.getMessage()); } public String error() { return error; } public void setError(String error) { this.error = error; } And in my component, I had this : wo:AjaxUpdateContainer id = saveState fullSubmit = true wo:ERXWOConditional condition = $hasErrors div class = warning pwo:ERXLocalizedString value = Errors.Header /:/p wo:WORepetition list = $errors item = $error wo:WOString value = $error escapeHTML = false / br / /wo:WORepetition /div /wo:ERXWOConditional wo:ERXElse wo:WOString value = $succesString / /wo:ERXElse /wo:AjaxUpdateContainer That was working fine when this code was directly in my components, but having the same stuff inside multiple components is not good, so I moved this logic to a sub-component, and I'm calling this sub- component from all my other components. Problem is, the sub- component is called (if I put static text before the conditional, I see it when I submit the form) but no errors are showing up and the repetition don't iterate over the array. A breakpoint in validationFailedWithException does show that the error is being added to the array, so I have no idea on why it's not displaying anything when it's in the sub-component. BTW, validationFailedWithException is inside a superclass that every component inherits from. WO 5.4.3/ERExtensions from the current source. -- --- 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/rgurley %40mac.com This email sent to rgur...@mac.com -- --- 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Validation errors inside a sub-component
On Nov 7, 2009, at 7:28 PM, Pascal Robert wrote: Brain damage... My component superclass was doing this : public void awake() { session().setErrors(new NSMutableArrayString()); } So when SaveStatViewer was called, the array was empty... And you are not calling super.awake() :-) Maybe drop all your validation handling into your page component instead and then you can get at it with context.page? Extra bonus: use the same page super class everywhere and your validation handling is done in one place for your entire app. (^_^) Ramsey On Nov 5, 2009, at 9:12 PM, Pascal Robert wrote: I'm trapping validation errors like this : private String error; public void validationFailedWithException(Throwable exception, Object value, String keyPath) { errors.addObject(exception.getMessage()); } public String error() { return error; } public void setError(String error) { this.error = error; } And in my component, I had this : wo:AjaxUpdateContainer id = saveState fullSubmit = true wo:ERXWOConditional condition = $hasErrors div class = warning pwo:ERXLocalizedString value = Errors.Header /:/p wo:WORepetition list = $errors item = $error wo:WOString value = $error escapeHTML = false / br / /wo:WORepetition /div /wo:ERXWOConditional wo:ERXElse wo:WOString value = $succesString / /wo:ERXElse /wo:AjaxUpdateContainer That was working fine when this code was directly in my components, but having the same stuff inside multiple components is not good, so I moved this logic to a sub-component, and I'm calling this sub- component from all my other components. Problem is, the sub- component is called (if I put static text before the conditional, I see it when I submit the form) but no errors are showing up and the repetition don't iterate over the array. A breakpoint in validationFailedWithException does show that the error is being added to the array, so I have no idea on why it's not displaying anything when it's in the sub-component. BTW, validationFailedWithException is inside a superclass that every component inherits from. WO 5.4.3/ERExtensions from the current source. -- --- 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/rgurley %40mac.com This email sent to rgur...@mac.com -- --- 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/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Validation errors inside a sub-component
- Chuck Hill ch...@global-village.net a écrit : On Nov 7, 2009, at 7:28 PM, Pascal Robert wrote: Brain damage... My component superclass was doing this : public void awake() { session().setErrors(new NSMutableArrayString()); } So when SaveStatViewer was called, the array was empty... And you are not calling super.awake() :-) Yeah, that too :-/ Now I just have to find out why WOText doesn't work but WOTextField do. Maybe drop all your validation handling into your page component instead and then you can get at it with context.page? Extra bonus: use the same page super class everywhere and your validation handling is done in one place for your entire app. (^_^) Ramsey On Nov 5, 2009, at 9:12 PM, Pascal Robert wrote: I'm trapping validation errors like this : private String error; public void validationFailedWithException(Throwable exception, Object value, String keyPath) { errors.addObject(exception.getMessage()); } public String error() { return error; } public void setError(String error) { this.error = error; } And in my component, I had this : wo:AjaxUpdateContainer id = saveState fullSubmit = true wo:ERXWOConditional condition = $hasErrors div class = warning pwo:ERXLocalizedString value = Errors.Header /:/p wo:WORepetition list = $errors item = $error wo:WOString value = $error escapeHTML = false / br / /wo:WORepetition /div /wo:ERXWOConditional wo:ERXElse wo:WOString value = $succesString / /wo:ERXElse /wo:AjaxUpdateContainer That was working fine when this code was directly in my components, but having the same stuff inside multiple components is not good, so I moved this logic to a sub-component, and I'm calling this sub- component from all my other components. Problem is, the sub- component is called (if I put static text before the conditional, I see it when I submit the form) but no errors are showing up and the repetition don't iterate over the array. A breakpoint in validationFailedWithException does show that the error is being added to the array, so I have no idea on why it's not displaying anything when it's in the sub-component. BTW, validationFailedWithException is inside a superclass that every component inherits from. WO 5.4.3/ERExtensions from the current source. -- --- 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/rgurley %40mac.com This email sent to rgur...@mac.com -- --- 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/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 -- --- 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: D2WQuery embedded loses state
On Nov 7, 2009, at 4:58 PM, Mark Wardle wrote: Hi all. This may be a stupid question... I've embedded a D2WQuery within a ListPage. It acts as a filter for the list; in fact I use ERDQueryAnyKey exclusively to allow a google-like search of the listed entities. Thank you to all who helped me make the mental leap to D2W - I don't think I'm quite there *yet* - and getting me this far It's actually working quite well BUT! If I type text and click submit, then the list (displaygroup) is filtered appropriately. However, the text is cleared from the textfield. I wish to visually indicate that a filter is applied - I assumed the text would remain within the textfield for the query, but this is not the case. I'm guessing when you reload your page, you're loading a fresh embedded query page which loads a fresh ERDQueryAnyKey which wipes out your entered value. ERDQueryAnyKey is not stateless so I think it should be storing the value. In addition, every time I click submit, I get a wholly new page, even though I've bound the action binding to a method that returns null. Therefore, my list page Back button (Cancel) no longer returns to the calling page but to the previous search. What action binding? The one on the button? The one on the D2WQuery? What is your cancel button bound to? As always, I'm in danger of being too specific and asking the wrong questions! You'll need to be more specific (^_^) 1. Is there any way of getting a D2WQuery to maintain input state after submission? If you use the showListInSamePage, and set up a specific page configuration for this, it should work with no additional effort. No? You would just have your list embedded in your query instead of your query embedded in your list. Anyway, it depends on how you bind it. If you store something in a component's local var, then you're subject to that var being wiped out with a reload. If you store the value in a place you can find it outside of the component (On the displayGroup or something) then you can reload it from that known place, even if your component is stateless. I think this is more of a WO question than a D2W one though. 2. Is it possible to pass the cancelAction to the *next* page, or somehow keep the same list page instance? 3. Am I still making things overly complicated? Should I use an aboveDisplayPropertyKey and use an embedded component there rather than customising my list page? Won't work without modification, because aboveDisplayPropertyKeys in ERNeu doesn't give you a displayGroup or dataSource binding to filter against. You only get your property keys and d2wContext there. Given what you want to do, I think I would still go with the filter field in the batch navigation bar rather than an entire embedded query page. Many thanks, Mark -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK 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