AjaxUpdateContainer successive updates + Deadlock
I'm struggling here with a deadlock situation that as far as I can see is caused by Ajax Updates. What I've done so far. Removed any traces of a shared editing context from my app to count that out. I've double checked my Wonder autolocking properties which are as below and double checked I only use ERXEC.newEditingContext() with not a defaultEditingContext() in sight. er.extensions.ERXApplication.useEditingContextUnlocker = true er.extensions.ERXEC.defaultAutomaticLockUnlock = true er.extensions.ERXEC.defaultCoalesceAutoLocks = true er.extensions.ERXEC.useSharedEditingContext = false The debug below leads up to the deadlock. They are always triggered when a AjaxUpdateContainer is fired numerous times in succession where they are in the same session on the same page accessing new EO's - it can quite happily work for a while but always seems to start getting very confused after a lot of this kind of abuse. Despite mentions of other threads in the warnings I don't have any background threads that I'm explicitly creating myself. Any suggestions of things I can try appreciated before I give up and rip the thing out and replace it with something more boring. So things running smoothly then a bunch of AjaxUpdateContainer Updates in succession then. Mar 08 22:49:59 SMS[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - *** EOEditingContext: access when another thread holds a lock: _eoForGID()! java.lang.Exception: This is not a real exception, just a stack trace of the location of the contested lock: at com .webobjects .eocontrol .EOEditingContext ._EOAssertSafeMultiThreadedAccess(EOEditingContext.java:5182) at com .webobjects .eocontrol .EOEditingContext ._EOAssertSafeMultiThreadedReadAccess(EOEditingContext.java:5156) at com .webobjects.eocontrol.EOEditingContext._eoForGID(EOEditingContext.java: 2636) at com .webobjects .eocontrol.EOEditingContext.faultForGlobalID(EOEditingContext.java:3635) at er.extensions.eof.ERXEC.faultForGlobalID(ERXEC.java:1013) at com .webobjects .eoaccess .EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4044) at com .webobjects .eocontrol .EOObjectStoreCoordinator .objectsForSourceGlobalID(EOObjectStoreCoordinator.java:682) at com .webobjects .eocontrol .EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3965) at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1070) at com .webobjects .eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4427) at com .webobjects .eoaccess .EOAccessArrayFaultHandler .completeInitializationOfObject(EOAccessArrayFaultHandler.java:70) at com .webobjects .eocontrol ._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:38) at com .webobjects .eocontrol ._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:92) at er.extensions.foundation.ERXArrayUtilities $SortOperator.compute(ERXArrayUtilities.java:1018) at com .webobjects .foundation.NSArray._valueForKeyPathWithOperator(NSArray.java:795) at com.webobjects.foundation.NSArray.valueForKeyPath(NSArray.java:831) at com.webobjects.foundation.NSKeyValueCodingAdditions $Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149) at com.webobjects.foundation.NSKeyValueCodingAdditions $DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 217) at com .webobjects .eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1675) at com.webobjects.foundation.NSKeyValueCodingAdditions $Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149) at com.webobjects.foundation.NSKeyValueCodingAdditions $DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 217) at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java: 1600) at com .webobjects .appserver ._private .WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:46) at er .extensions .components ._private.ERXWORepetition.createContext(ERXWORepetition.java:334) at er .extensions .components._private.ERXWORepetition.invokeAction(ERXWORepetition.java: 367) at com .webobjects .appserver ._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101) at com .webobjects .appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110) at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 945) at er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:93) at com .webobjects .appserver ._private.WOComponentReference.invokeAction(WOComponentReference.java: 104) at com .webobjects .appserver ._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101) at er .extensions .components .conditionals .ERXWOConditional.invokeChildrenAction(ERXWOConditional.java:111) at com .webobjects .appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110) at er
AjaxUpdateContainer successive updates + Deadlock
I'm struggling here with a deadlock situation that as far as I can see is caused by Ajax Updates. What I've done so far. Removed any traces of a shared editing context from my app to count that out. I've double checked my Wonder autolocking properties which are as below and double checked I only use ERXEC.newEditingContext() with not a defaultEditingContext() in sight. er.extensions.ERXApplication.useEditingContextUnlocker = true er.extensions.ERXEC.defaultAutomaticLockUnlock = true er.extensions.ERXEC.defaultCoalesceAutoLocks = true er.extensions.ERXEC.useSharedEditingContext = false The debug below leads up to the deadlock. They are always triggered when a AjaxUpdateContainer is fired numerous times in succession where they are in the same session on the same page accessing new EO's - it can quite happily work for a while but always seems to start getting very confused after a lot of this kind of abuse. Despite mentions of other threads in the warnings I don't have any background threads that I'm explicitly creating myself. Any suggestions of things I can try appreciated before I give up and rip the thing out and replace it with something more boring. So things running smoothly then a bunch of AjaxUpdateContainer Updates in succession then. Mar 08 22:49:59 SMS[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - *** EOEditingContext: access when another thread holds a lock: _eoForGID()! java.lang.Exception: This is not a real exception, just a stack trace of the location of the contested lock: at com .webobjects .eocontrol .EOEditingContext ._EOAssertSafeMultiThreadedAccess(EOEditingContext.java:5182) at com .webobjects .eocontrol .EOEditingContext ._EOAssertSafeMultiThreadedReadAccess(EOEditingContext.java:5156) at com .webobjects.eocontrol.EOEditingContext._eoForGID(EOEditingContext.java: 2636) at com .webobjects .eocontrol.EOEditingContext.faultForGlobalID(EOEditingContext.java:3635) at er.extensions.eof.ERXEC.faultForGlobalID(ERXEC.java:1013) at com .webobjects .eoaccess .EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4044) at com .webobjects .eocontrol .EOObjectStoreCoordinator .objectsForSourceGlobalID(EOObjectStoreCoordinator.java:682) at com .webobjects .eocontrol .EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3965) at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1070) at com .webobjects .eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4427) at com .webobjects .eoaccess .EOAccessArrayFaultHandler .completeInitializationOfObject(EOAccessArrayFaultHandler.java:70) at com .webobjects .eocontrol ._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:38) at com .webobjects .eocontrol ._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:92) at er.extensions.foundation.ERXArrayUtilities $SortOperator.compute(ERXArrayUtilities.java:1018) at com .webobjects .foundation.NSArray._valueForKeyPathWithOperator(NSArray.java:795) at com.webobjects.foundation.NSArray.valueForKeyPath(NSArray.java:831) at com.webobjects.foundation.NSKeyValueCodingAdditions $Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149) at com.webobjects.foundation.NSKeyValueCodingAdditions $DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 217) at com .webobjects .eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1675) at com.webobjects.foundation.NSKeyValueCodingAdditions $Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149) at com.webobjects.foundation.NSKeyValueCodingAdditions $DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 217) at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java: 1600) at com .webobjects .appserver ._private .WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:46) at er .extensions .components ._private.ERXWORepetition.createContext(ERXWORepetition.java:334) at er .extensions .components._private.ERXWORepetition.invokeAction(ERXWORepetition.java: 367) at com .webobjects .appserver ._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101) at com .webobjects .appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110) at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 945) at er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:93) at com .webobjects .appserver ._private.WOComponentReference.invokeAction(WOComponentReference.java: 104) at com .webobjects .appserver ._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101) at er .extensions .components .conditionals .ERXWOConditional.invokeChildrenAction(ERXWOConditional.java:111) at com .webobjects .appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110) at er
AjaxUpdateContainer successive updates + Deadlock
I'm struggling here with a deadlock situation that as far as I can see is caused by Ajax Updates. What I've done so far. Removed any traces of a shared editing context from my app to count that out. I've double checked my Wonder autolocking properties which are as below and double checked I only use ERXEC.newEditingContext() with not a defaultEditingContext() in sight. er.extensions.ERXApplication.useEditingContextUnlocker = true er.extensions.ERXEC.defaultAutomaticLockUnlock = true er.extensions.ERXEC.defaultCoalesceAutoLocks = true er.extensions.ERXEC.useSharedEditingContext = false The debug below leads up to the deadlock. They are always triggered when a AjaxUpdateContainer is fired numerous times in succession where they are in the same session on the same page accessing new EO's - it can quite happily work for a while but always seems to start getting very confused after a lot of this kind of abuse. Despite mentions of other threads in the warnings I don't have any background threads that I'm explicitly creating myself. Any suggestions of things I can try appreciated before I give up and rip the thing out and replace it with something more boring. So things running smoothly then a bunch of AjaxUpdateContainer Updates in succession then. Mar 08 22:49:59 SMS[] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - *** EOEditingContext: access when another thread holds a lock: _eoForGID()! java.lang.Exception: This is not a real exception, just a stack trace of the location of the contested lock: at com .webobjects .eocontrol .EOEditingContext ._EOAssertSafeMultiThreadedAccess(EOEditingContext.java:5182) at com .webobjects .eocontrol .EOEditingContext ._EOAssertSafeMultiThreadedReadAccess(EOEditingContext.java:5156) at com .webobjects.eocontrol.EOEditingContext._eoForGID(EOEditingContext.java: 2636) at com .webobjects .eocontrol.EOEditingContext.faultForGlobalID(EOEditingContext.java:3635) at er.extensions.eof.ERXEC.faultForGlobalID(ERXEC.java:1013) at com .webobjects .eoaccess .EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4044) at com .webobjects .eocontrol .EOObjectStoreCoordinator .objectsForSourceGlobalID(EOObjectStoreCoordinator.java:682) at com .webobjects .eocontrol .EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3965) at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1070) at com .webobjects .eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4427) at com .webobjects .eoaccess .EOAccessArrayFaultHandler .completeInitializationOfObject(EOAccessArrayFaultHandler.java:70) at com .webobjects .eocontrol ._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:38) at com .webobjects .eocontrol ._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:92) at er.extensions.foundation.ERXArrayUtilities $SortOperator.compute(ERXArrayUtilities.java:1018) at com .webobjects .foundation.NSArray._valueForKeyPathWithOperator(NSArray.java:795) at com.webobjects.foundation.NSArray.valueForKeyPath(NSArray.java:831) at com.webobjects.foundation.NSKeyValueCodingAdditions $Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149) at com.webobjects.foundation.NSKeyValueCodingAdditions $DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 217) at com .webobjects .eocontrol.EOCustomObject.valueForKeyPath(EOCustomObject.java:1675) at com.webobjects.foundation.NSKeyValueCodingAdditions $Utility.valueForKeyPath(NSKeyValueCodingAdditions.java:149) at com.webobjects.foundation.NSKeyValueCodingAdditions $DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 217) at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java: 1600) at com .webobjects .appserver ._private .WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:46) at er .extensions .components ._private.ERXWORepetition.createContext(ERXWORepetition.java:334) at er .extensions .components._private.ERXWORepetition.invokeAction(ERXWORepetition.java: 367) at com .webobjects .appserver ._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101) at com .webobjects .appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110) at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 945) at er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:93) at com .webobjects .appserver ._private.WOComponentReference.invokeAction(WOComponentReference.java: 104) at com .webobjects .appserver ._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101) at er .extensions .components .conditionals .ERXWOConditional.invokeChildrenAction(ERXWOConditional.java:111) at com .webobjects .appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110) at er
Ajax Modal Dialog
I'm reviewing the Wonder AjaxExample application. I think I need the AjaxModalDialogOpener and AjaxModalDialog. The opener will be inside a repetition and clicking on it will bring up the modal dialog with a form for data input, etc. Clicking Save will then close the dialog and the user can continue doing whatever he was doing. I noticed that all the examples on AjaxModalDialog, it always slides down from the top of the page. Is it possible to have it open centered on the page instead? ___ Do not post admin requests to the list. They will 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: [Wonder-disc] OpenBase / boolean / ERPrototypes
please file a radar with the patch ... On Mar 9, 2009, at 12:38 AM, Ricardo J. Parada wrote: Thanks Mike... Well... I went inside EOJDBCOpenBasePrototypes.plist and I replaced the definition for the intBoolean by the one for FrontBase (which I know works), except that I changed the external type from INTEGER to int because that's what all other integer prototypes for OpenBase seem to use. And... NOW IT WORKS!!! Ok... so here's the definition I ended up using which finally works with OpenBase: { columnName = ; externalType = int; factoryMethodArgumentType = EOFactoryMethodArgumentIsNSString; name = intBoolean; valueClassName = NSNumber; valueType = c; }, By the way, this definition also works if I go into the OpenBaseManager and change the column type from integer to boolean. Should this be checked in back into Wonder? Otherwise next time I upgrade to the latest Wonder I'll have to patch it again. :-) Ricardo On Mar 8, 2009, at 11:17 PM, Mike Schrag wrote: Not sure I understood what you mean by flag. :-) there is a prototype named flag that maps onto whatever your database considers a bit type -- if your database natively supports a boolean type, this is the one you would use, though there are good odds the definition is wrong for OB Anyways, here's the boolean protototype from ERPrototypes as defined in EOJDBCOpenBasePrototypes.plist: yes, this is the varchar(5) boolean type that turns into the strings true or false in the database. and the intBoolean prototype is setup as follows: { adaptorValueConversionMethodName = toString; columnName = ; externalType = bool; factoryMethodArgumentType = EOFactoryMethodArgumentIsNSString; name = intBoolean; valueClassName = NSNumber; valueFactoryMethodName = valueOf; valueType = c; }, You're setting this up wrong .. you should look at the other databases versions of this in ERP ... you don't have/need a valueFactoryMethodName and a conversion method name for integer types .. it's much easier than that. I've been trying all kinds of things to get these booleans to work... And I just thought of one which might work. I'll change the type in openbase for those columns back to integer type. Then I'll use the intBoolean prototype from ERPrototypes. I assume that's what the intBoolean prototype is for: to have a boolean in your EO stored as an integer in the database. Right? yes, though again, if you're using the boolean type, you're probably not going to want intBoolean (though it may work by accident). ms -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Wonder-disc mailing list wonder-d...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wonder-disc -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Wonder-disc mailing list wonder-d...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wonder-disc ___ Do not post admin requests to the list. They will 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: Ajax Modal Dialog
Hi Ricardo, I haven't found any option to do that on the Modal Box documentation. You could make a feature request on their site [1] and this option would be added as a binding to the AjaxModalDialog. [1]http://www.wildbit.com/labs/modalbox/ Cheers, Henrique Ricardo J. Parada wrote: I'm reviewing the Wonder AjaxExample application. I think I need the AjaxModalDialogOpener and AjaxModalDialog. The opener will be inside a repetition and clicking on it will bring up the modal dialog with a form for data input, etc. Clicking Save will then close the dialog and the user can continue doing whatever he was doing. I noticed that all the examples on AjaxModalDialog, it always slides down from the top of the page. Is it possible to have it open centered on the page instead? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com This email sent to hpra...@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
successive email updates fail...
rorry about the multiple posts re AjaxUpdateContainer and Deadlock - gate...@mac.com keeps telling me this list didn't exist... ___ Do not post admin requests to the list. They will 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: successive email updates fail...
rorry about the multiple posts re AjaxUpdateContainer and Deadlock - gate...@mac.com keeps telling me this list didn't exist... That's not apple, that's some jackass mail server of someone (who I assume used to be on the mailing list) that keeps spamming the list with a bounce notification. I emailed the company that owns that mail server again to have them stop the insanity. 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: Reference Lib JARs Not Recognized
Hi Drew, The new WOLips/Eclipse 3.4 that you've just upgraded to allows you to easily embed all the frameworks that you are using into your project. This way, you actually don't need to have *any* of the frameworks installed on your production box if you have embedded them properly in your project. When you build your project on the development box, it will automatically grab the frameworks from wherever you've told it to, and if you keep your development box updated (with the latest WOnder, for example) you don't have to worry about doing the same on the production box. You also don't have to worry about updated frameworks on the production box breaking any applications that you haven't explicitly tested against with the new version. David On 7-Mar-09, at 2:08 PM, Drew Thoeni wrote: David, This does help. I actually, normally, do it this way, but at one point in the past I was discussing having the right frameworks on the production servers (keep in mind, I'm small time compared to most people on this list) and someone suggested that for the less- used JARs, I add them to the project so they get moved as part of the project. They were probably referring to embedding the .jar framework. Am I misunderstanding that? Or, is it generally considered better form to just keep the frameworks all current on production machines (even for the rarely used ones)? No, I don't think this would be best practice. Embedding would be far more unlikely to break something in production. The theory behind it is here: http://wiki.objectstyle.org/ confluence/display/WOL/Embedding+WOFrameworks In practice, for 3.4, you need to read: http://wolips.blogspot.com/ 2008/09/its-alive.html Especially: Embedding can now be controlled from the panel. You can check which sets of frameworks get embedded in your deployment. Best, Drew On Mar 6, 2009, at 11:04 AM, David Avendasora wrote: Hi Drew, You are _really_ doing things the hard way. Adding Frameworks to your projects is much, much easier than adding individual .jars to your project's Libraries folder. 1) Download the latest Wonder Frameworks, unzip the archive and add all the FrameworkName.framework directories to your /Library/ Frameworks directory. 2) In Eclipse, right-click on your project, Select Build Path - Configure Build Path... 3) Click on the Libraries tab 4) On the right side, click Add Libraries... 5) Select WebObjects Frameworks, click Next 6) Go through the list and select the Frameworks you need 7) Click Finish 8) Click Okay All those frameworks have now been added to your project and you don't have to add individual .jar files as they are included in the Frameworks you just linked. The only thing I ever actually add to my Project's Libraries folder (then add to my build path so they show up under Referenced Libraries) are stand-alone .jars for libraries *other than* WebObjects/WOnder frameworks. I hope this helps! Dave On Mar 2, 2009, at 5:25 PM, Drew Thoeni wrote: Screen shots. Good idea. You can see in this screen shot ERExtensions.jar is in the Referenced Libraries having gotten there by me 1) putting the JAR in the file system folder Libraries and then adding it to the Java Build Path using project properties and selecting Add JARs and picking this JAR from the project's Libraries folder. Interestingly, the imports in other classes for org.jfree are working fine and I assume are referencing the JARs in the Referenced Libraries folder. Thanks again, Drew pastedGraphic.tiff On Mar 2, 2009, at 2:51 PM, Chuck Hill wrote: On Mar 1, 2009, at 3:46 PM, Drew Thoeni wrote: Checked that and it seems OK. Your earlier post on that was helpful as com.webobjects was not being resolved. Adding the properties file corrected that issue. In this case, my project actually shows the JAR as part of the Referenced Libraries, Not sure what you are referring to there. if I remove it, it shows back up in Libraries as part of the project. On the Build Path tab of the Properties? It is, in fact in the Libraries folder and its behavior is as expected. But, the classes are still not resolved. Maybe some screen shots of what you have setup might help. If they are in the Libraries folder of the same project it should not be a path issue. Chuck On Mar 1, 2009, at 2:45 PM, Chuck Hill wrote: Check the contents of ~/Library/Application\ Support/WOLips/wolips.properties On Mar 1, 2009, at 7:53 AM, Drew Thoeni wrote: I just did the big upgrade from Eclipse 3.3 to the 3.4.2 with WOLips installed fresh. I added the WO frameworks (as com.webobjects) was not resolved but am still having difficulties getting JARs in my Referenced Libraries to resolve. Example: I have ERExtensions.jar in Referenced Libraries but import er.extensions.localization.ERXLocalizer; is not resolved. This strikes me as a path problem, but project
Re: Digging up a Session object from an EOGenericRecord
Yeah, ERXThreadStorage is a very nice helper. I use it all the time for small things I might need everywhere. cug On Sat, Mar 7, 2009 at 2:08 PM, Riccardo De Menna deme...@rdm-web.com wrote: On 07/mar/09, at 19:32, Chuck Hill wrote: I used to do that nasty EC stuff as I could not see another way. Now that I have found ThreadLocal religion, I never use that malignant hack. I think of the information stashed in the thread as an ExecutionContext (similar to a WOContext). That feels like the right solution to this common need. I've even created an object to aggregate the bits under one object. This is also very useful for recording things like user activity (set into the thread / execution context by the UI component) so that you you can not only record who and what and when, but why as well. ThreadLocal (ERXThreadStorage). Good stuff! Lucky I have you guys then... I rearranged the code a bit and it's working like a charm. Hail to ERXThreadStorage then... a newly digged out fanta-tool of this never ending source of help that was wisely called Wonder. ;) 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/guido.neitzer%40gmail.com This email sent to guido.neit...@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: eogen takeStoredValueForKey(toManyArray, relationshipName)
Cool code-ness We probably want to keep this out of Project Wonder so that it can maintain its svelte code size and laser-like focus. Can't just throw any old thing in, can we now? :-) cheers - ray On Mar 5, 2009, at 12:21 PM, Kieran Kelleher wrote: In the past I have written something like this to diff/merge the array param with the current relationship array. For example: snip public void setDataRecordsRelationship( NSArrayCTDataRecord dataRecordsToSet ) { if ( dataRecordsToSet == null ) { NSArrayCTDataRecord currentDataRecords = dataRecords().immutableClone(); for (CTDataRecord dataRecord : currentDataRecords) { removeFromDataRecordsRelationship(dataRecord); dataRecord.deleteIfOrphan(); } } else if (countDataRecords().intValue() == 0) { addObjectsToBothSidesOfRelationshipWithKey(dataRecordsToSet, KEY_DATA_RECORDS); } else { // Get list of records in relationship that are not in new set NSArrayCTDataRecord eosToDelete = ERXArrayUtilities.arrayMinusArray(dataRecords().immutableClone(), dataRecordsToSet); // Get list of ones to add NSArrayCTDataRecord eosToAdd = ERXArrayUtilities .arrayMinusArray (dataRecordsToSet.immutableClone(),dataRecords().immutableClone()); // Perform adds addObjectsToBothSidesOfRelationshipWithKey(eosToAdd, KEY_DATA_RECORDS); // Perform removes/deletes for (CTDataRecord dataRecord : eosToDelete) { removeFromDataRecordsRelationship(dataRecord); dataRecord.deleteIfOrphan(); } } } /snip On Mar 5, 2009, at 2:32 PM, Chuck Hill wrote: On Mar 5, 2009, at 11:00 AM, Anjo Krank wrote: I have yet to see *one* case where setting an array is actually useful, since AFAIK you can't simply create an array, add a new EO, set this array and expect to get a reasonable object graph. I think you can actually. I can think of several times that I have done this. I *did* have a special NSArray class especially for relationships that was linked to the EO, in that you could someEO.someRelationship().addObject() to it and it would call up someEO.addObjectToBothSides() for you, but it was a bitch to write (like the two-side relationship stuff). Cheers, Anjo Am 03.03.2009 um 04:51 schrieb Chuck Hill: On Mar 2, 2009, at 7:09 PM, Dan Faber wrote: I have noticed that the default _wonder.java template does not produce a method to assign an array to a toMany relationship, as: public void setMyMany(NSArray value) { takeStoredValueForKey(value, myMany); } Is there a problem with doing so? Should I change my method to delete all the current relationships, and then loop through the updated array and use addTo${relationship.capitalizedName} instead? Thanks Dan Faber dfa...@mstar2.net This is more of a Wonder question. It is safe WRT to EOF to do this. BUT ERXGenericRecord has some fancy relationship automagic manipulation that may not work. It may work, I don't use it and I don't recall offhand. 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/anjo%40krank.net This email sent to a...@krank.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/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/ray%40ganymede.org This email sent to r...@ganymede.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription:
Re: Finding eomodels in Eclipse/WOLips
On Mar 7, 2009, at 11:00 AM, Mike Schrag wrote: I do Command+Shift+R in Eclipse and then type the model name and it doesn't find it. Is there a way to configure Eclipse so that if finds my eomodels instead of having to hunt them down in the package explorer view with a zillion projects in it? I would think there is a way. right now, no ... the best you can do is type index.eomodeld probably in cmd-shift-r and go through the list to see what folder it's in ... eomodels are folders, and folders aren't considered openable items in Eclipse (the support that's there in wolips is hacked in). ms Have we filed a bug with the eclipse people asking for this? Or are they just completely unwilling to do something with folders? - 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: directActionURLForActionNamed produce corrupted hostname
Hello I have the same problem and this annoys me much. I seems an unexpected behavior to me to generate complete URLs including hostname when I don't ask for that. Also even when adding host name it would better take value from host header instead of server_name header. As host represents actual url in browser while server_name displays what a server intends to be, which would be wrong when working on local network with private IPs. Serge, did Apple reply anything on your bugreport? 2008/7/7 Serge Cohen sergeco...@users.sourceforge.net: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My mistake... Indeed this was an error in the setting of the apache server, producing a SERVER_NAME of ..._copy This happened when I set the HTTPS part of Apache through ServerAdmin. Serge. Le 6 juil. 08 à 00:24, Serge Cohen a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello list; I'm currently working on an application using Wonder (last updated on 2008-07-01) and WebObjects 5.4 (since few days 5.4.2, but the problem I'm reporting here was already present in previous version 5.4.1 ... I was just hoping for it to be solved in 5.4.2 until now). I have a layout page, using a couple of URL to direct actions. I generate those using the method : WOContext.directActionURLForActionNamed(String anActionName, NSDictionaryString,Object queryDictionary) (or ERXWOContext.directActionURLForActionNamed(String anActionName, NSDictionaryString,Object queryDictionary, boolean includeSessionID), which directly calls super... implementation) When pages are sent through 'http' (non-secured), the generated URL is an absolute path, but no scheme or host. When pages are sent through 'https', the generated URL are full URLs, including scheme and hostname. This is working fine as long as I'm in development setup (Eclipse as IDE), but as soon as I deploy, when a page is sent through 'https' the host name gets 'corrupted', more precisely '_copy' is appended to the host name (whilst, when sent by 'http', the URL are absolute, withOUT scheme or hostname). I've even tried to use Eclipse on the same machine that is running the deployed application : this does not show the behaviour of the deployed application. I've also noted the exact same type of problem when using a WOHyperlink 'connected' to a directAction, with the 'secure' binding set to false, and the page is sent using 'https'. Clearly, I don't understand well enough the difference between the dev. environment and the deployment one (in my case 'classical' wotaskd/JavaMonitor). I've reported this bug with ID : 6055888 In the mean time I'd like to be at least able to reproduce this behaviour when running from Eclipse (to debug and get a better understanding of what's going wrong) and hopefully a workaround (which should be possible, given the Dev. environment manages to get these generated URLs as they should). Thanks for any insight or help; Serge. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkhxWM8ACgkQlz6UVQtc2uyKpgCfTd/dfQGSuwUe8ybGjiBSBa66 0PwAoIRWOmGgmKFe6zkdoNpX7Swn3Pr0 =x6qF -END PGP 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/genkush%40rujel.net This email sent to genk...@rujel.net ___ Do not post admin requests to the list. They will 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: Finding eomodels in Eclipse/WOLips
Is there a way to configure Eclipse so that if finds my eomodels instead of having to hunt them down in the package explorer view with a zillion projects in it? I would think there is a way. right now, no ... the best you can do is type index.eomodeld probably in cmd-shift-r and go through the list to see what folder it's in ... eomodels are folders, and folders aren't considered openable items in Eclipse (the support that's there in wolips is hacked in). Have we filed a bug with the eclipse people asking for this? Or are they just completely unwilling to do something with folders? i wouldn't hold your breath ... 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: SimpleDateFormat vs [Deprecated] NSTimestampFormatter
On 9-Jul-08, at 10:42 AM, Kieran Kelleher wrote: Wonder: ERXTimestampFormatter.dateFormatterForPattern( pattern ) I am moving my code away from using date format strings in the format bindings in my .wod and looking up old email threads about the deprecation of NSTimestampFormatter. This class suggested by Kieran returns an NSTimestampFormatter. Can I safely continue to use NSTimestampFormatter for now or am I missing a WOnder alternative that uses Pierre's recommendation of SimpleDateFormat? David . app-level caching built-in. On Jul 9, 2008, at 12:43 PM, Chuck Hill wrote: On Jul 9, 2008, at 7:56 AM, Ken Anderson wrote: umm... pretty much all of it. If you're allocating all the objects you deal with inside your components, you probably aren't faced with many issues, but any time you start considering anything that is shared, you have to consider the fact that java is natively multi-threaded, and there are always other threads running, even if you're not concurrently handling requests. True that. For instance, if you always instantiate a formatter inside your component and that thread is the only one that know about it, you should be fine. However, if you're sharing an instance (usually for performance reasons), you need to be aware of the fact that it could be called from multiple places at the same time. Looking at them both, as long as you are not changing the format pattern, time zone, etc. and _only_ using them for formatting, they should be re-entrant. I would not swear to it thought. I have never had a problem using NSTimestampFormatter like this (cached at app level, shared across all threads). Chuck On Jul 9, 2008, at 10:18 AM, Gennady Kushnir wrote: Hmm... I'm not quite shure in what parts of WO programming it is vital to be thread safe? 2008/7/9 Ken Anderson kenli...@anderhome.com: I'm sure Pierre could answer this better than anyone else, but I always lock NSTimestampFormatter when used in multi-threaded situations... On Jul 8, 2008, at 7:03 PM, Chuck Hill wrote: Also note that unlike NSTimestampFormatter, SimpleDateFormat is not thread safe. At least NSTimestampFormatter is not documented to be non-thread safe. ___ Do not post admin requests to the list. They will 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 ___ Do not post admin requests to the list. They will 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/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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ant build problem
OK, and now I'm getting this: Failed to process eclipse frameworks. when issuing ant war or any other target that requires a build. On Mar 8, 2009, at 11:16 AM, Dom wrote: Thank you Mike, Where should I put the woproject.jar on my local machine assuming osx? Does it matter? I currently have it in my /Library/WebObjects/ lib directory, and that was more in an effort to resolve this while messing around yesterday. I'm not really sure how it worked before;-) Thanks again. On Mar 8, 2009, at 10:21 AM, Mike Schrag wrote: build.xml:207: Class org.objectstyle.woproject.ant.FrameworkSet doesn't support the eclipse attribute. old woproject.jar I'm seeing this error: java.lang.NoSuchMethodError: org.objectstyle.woproject.ant.FrameworkSet.getDir()Ljava/io/File; old ant upgrade to ant 1.7 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/dominant_seventh%40me.com This email sent to dominant_seve...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/wkhatch%40me.com This email sent to wkha...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ant build problem
ant -verbose ... ant is retarded and doesn't show you the root cause by default, only the top level exception. On Mar 9, 2009, at 2:37 PM, Dom wrote: OK, and now I'm getting this: Failed to process eclipse frameworks. when issuing ant war or any other target that requires a build. On Mar 8, 2009, at 11:16 AM, Dom wrote: Thank you Mike, Where should I put the woproject.jar on my local machine assuming osx? Does it matter? I currently have it in my /Library/WebObjects/ lib directory, and that was more in an effort to resolve this while messing around yesterday. I'm not really sure how it worked before;-) Thanks again. On Mar 8, 2009, at 10:21 AM, Mike Schrag wrote: build.xml:207: Class org.objectstyle.woproject.ant.FrameworkSet doesn't support the eclipse attribute. old woproject.jar I'm seeing this error: java.lang.NoSuchMethodError: org.objectstyle.woproject.ant.FrameworkSet.getDir()Ljava/io/File; old ant upgrade to ant 1.7 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/dominant_seventh%40me.com This email sent to dominant_seve...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/wkhatch %40me.com This email sent to wkha...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [Wonder-disc] OpenBase / boolean / ERPrototypes
Ricardo: I use OpenBase and have boolean columns. I have mine modeled like the first boolean prototype below. The prototype sets the valueType to String and uses toString() to convert the java boolean to a 5 character varchar in the database (for false). The result is that it actually writes true or false (String) to the database. So, your column type in OpenBase should not be boolean, it should be varchar, 5. I haven't used the approach of the intBoolean prototype. I am not using the WOnder prototypes but Practical WebObjects also describes modeling booleans in this fashion - which I like. Tim UCLA GSEIS On Mar 8, 2009, at 3:25 PM, Ricardo J. Parada wrote: Hi Mike, Not sure I understood what you mean by flag. :-) Anyways, here's the boolean protototype from ERPrototypes as defined in EOJDBCOpenBasePrototypes.plist: { adaptorValueConversionMethodName = toString; columnName = ; externalType = varchar; factoryMethodArgumentType = EOFactoryMethodArgumentIsNSString; name = boolean; valueClassName = java.lang.Boolean; valueFactoryMethodName = valueOf; valueType = S; width = 5; }, and the intBoolean prototype is setup as follows: { adaptorValueConversionMethodName = toString; columnName = ; externalType = bool; factoryMethodArgumentType = EOFactoryMethodArgumentIsNSString; name = intBoolean; valueClassName = NSNumber; valueFactoryMethodName = valueOf; valueType = c; }, I tried both and neither one works for me. Anybody out there using OpenBase 10.0.11 with and boolean properties in your columns and EOs? I've been trying all kinds of things to get these booleans to work... And I just thought of one which might work. I'll change the type in openbase for those columns back to integer type. Then I'll use the intBoolean prototype from ERPrototypes. I assume that's what the intBoolean prototype is for: to have a boolean in your EO stored as an integer in the database. Right? On Mar 8, 2009, at 10:20 AM, Mike Schrag wrote: boolean in erp = varchar, not boolean, intBoolean in erp = number, flag = probably what OB is calling boolean, but you'd have to check if the OB variant of erp declares this properly. ms On Mar 8, 2009, at 3:06 AM, Ricardo J. Parada wrote: Hi All, There seems to be something wrong with booleans when using OpenBase and ERPrototypes. In OpenBaseManager the column type for my column says boolean: Picture 2.png In openisql (command line) I can query like this: select count(*) from cliente where suspendido = true of like this: select count(*) from cliente where suspendido = 1 In entity modeler, if I configure my attribute using the boolean prototype from ERPrototypes as shown below, then the queries don't return the right number of rows. The update statements generated by EOF don't work either (even though they look right). If I model my attribute as an integer then the queries work okay and the update statements issued by EOF work too. By I don't like having an Integer in my accessor methods in my EO for a boolean column. I want to use boolean. Looking at the screenshot below, does this look like the boolean prototype is setting the fields correctly for a boolean column in OpenBase? Anybody wants to guess? Anybody using booleans in OpenBase and ERPrototypes? Picture 1.png -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Wonder-disc mailing list wonder-d...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wonder-disc -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ Wonder-disc mailing list wonder-d...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wonder-disc ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription:
Re: ant build problem
On Mar 9, 2009, at 11:37 AM, Dom wrote: OK, and now I'm getting this: Failed to process eclipse frameworks. when issuing ant war or any other target that requires a build. IIRC that means the .classpath file has not been updated to New Hotness. Chuck On Mar 8, 2009, at 11:16 AM, Dom wrote: Thank you Mike, Where should I put the woproject.jar on my local machine assuming osx? Does it matter? I currently have it in my /Library/WebObjects/ lib directory, and that was more in an effort to resolve this while messing around yesterday. I'm not really sure how it worked before;-) Thanks again. On Mar 8, 2009, at 10:21 AM, Mike Schrag wrote: build.xml:207: Class org.objectstyle.woproject.ant.FrameworkSet doesn't support the eclipse attribute. old woproject.jar I'm seeing this error: java.lang.NoSuchMethodError: org.objectstyle.woproject.ant.FrameworkSet.getDir()Ljava/io/File; old ant upgrade to ant 1.7 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/dominant_seventh%40me.com This email sent to dominant_seve...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/wkhatch %40me.com This email sent to wkha...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/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: SimpleDateFormat vs [Deprecated] NSTimestampFormatter
On Mar 9, 2009, at 11:28 AM, David Holt wrote: On 9-Jul-08, at 10:42 AM, Kieran Kelleher wrote: Wonder: ERXTimestampFormatter.dateFormatterForPattern( pattern ) I am moving my code away from using date format strings in the format bindings in my .wod and looking up old email threads about the deprecation of NSTimestampFormatter. This class suggested by Kieran returns an NSTimestampFormatter. Can I safely continue to use NSTimestampFormatter for now or am I missing a WOnder alternative that uses Pierre's recommendation of SimpleDateFormat? I am still using NSTimestampFormatter. SimpleDateFormat uses a different set of formatting symbols, so you can't just drop one in in place of the other. I have considered making a SimpleDateFormat subclass that understands NSTimestampFormatter symbols. So far... don't hold your breath. Chuck . app-level caching built-in. On Jul 9, 2008, at 12:43 PM, Chuck Hill wrote: On Jul 9, 2008, at 7:56 AM, Ken Anderson wrote: umm... pretty much all of it. If you're allocating all the objects you deal with inside your components, you probably aren't faced with many issues, but any time you start considering anything that is shared, you have to consider the fact that java is natively multi-threaded, and there are always other threads running, even if you're not concurrently handling requests. True that. For instance, if you always instantiate a formatter inside your component and that thread is the only one that know about it, you should be fine. However, if you're sharing an instance (usually for performance reasons), you need to be aware of the fact that it could be called from multiple places at the same time. Looking at them both, as long as you are not changing the format pattern, time zone, etc. and _only_ using them for formatting, they should be re-entrant. I would not swear to it thought. I have never had a problem using NSTimestampFormatter like this (cached at app level, shared across all threads). Chuck On Jul 9, 2008, at 10:18 AM, Gennady Kushnir wrote: Hmm... I'm not quite shure in what parts of WO programming it is vital to be thread safe? 2008/7/9 Ken Anderson kenli...@anderhome.com: I'm sure Pierre could answer this better than anyone else, but I always lock NSTimestampFormatter when used in multi-threaded situations... On Jul 8, 2008, at 7:03 PM, Chuck Hill wrote: Also note that unlike NSTimestampFormatter, SimpleDateFormat is not thread safe. At least NSTimestampFormatter is not documented to be non-thread safe. ___ Do not post admin requests to the list. They will 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 ___ Do not post admin requests to the list. They will 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/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: 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: ant build problem
OK, and now I'm getting this: Failed to process eclipse frameworks. when issuing ant war or any other target that requires a build. IIRC that means the .classpath file has not been updated to New Hotness. It could also be that a framework can't be found ... You're really just seeing the very top level of a lot of possible failure cases. 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: SimpleDateFormat vs [Deprecated] NSTimestampFormatter
Wonder: ERXTimestampFormatter.dateFormatterForPattern( pattern ) I am moving my code away from using date format strings in the format bindings in my .wod and looking up old email threads about the deprecation of NSTimestampFormatter. This class suggested by Kieran returns an NSTimestampFormatter. Can I safely continue to use NSTimestampFormatter for now or am I missing a WOnder alternative that uses Pierre's recommendation of SimpleDateFormat? I am still using NSTimestampFormatter. SimpleDateFormat uses a different set of formatting symbols, so you can't just drop one in in place of the other. I have considered making a SimpleDateFormat subclass that understands NSTimestampFormatter symbols. So far... don't hold your breath. i kick myself that i wrote one of these last year and tossed thinking nobody would end up using it ... i don't remember what logic i used to get to that place, but it seems faulty in hindsight :) 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: Digging up a Session object from an EOGenericRecord
On Mar 7, 2009, 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? Roles and Privileges are good. I add a SecurityAgent object to hold all of this for a user and to the arbiter of access requests. The SecurityAgent gets set in the session when the user is authenticated. I also use permission names like ViewThis so that I can form these into bindings like @session.userCanViewThis. This gets passed to the SecurityAgent via KVC (actually, I use @userCanViewThis and get the page to pass it off to session). I also extend this with an optional EO so that after the SecurityAgent has verified the user has the Privilege, it can then delegate the final decision to the EO. This is useful where there are groups of users and you might have ViewThis but only on objects in your group. Is that the sort of thing you were looking for? Chuck On Mar 7, 2009, at 12:48 PM, Mike Schrag wrote: well, wherever ... awake possibly, or whenever your auth code runs to check for ACL's at the top of each request. ___ Do not post admin requests to the list. They will 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: SimpleDateFormat vs [Deprecated] NSTimestampFormatter
On Mar 9, 2009, at 12:17 PM, Mike Schrag wrote: Wonder: ERXTimestampFormatter.dateFormatterForPattern( pattern ) I am moving my code away from using date format strings in the format bindings in my .wod and looking up old email threads about the deprecation of NSTimestampFormatter. This class suggested by Kieran returns an NSTimestampFormatter. Can I safely continue to use NSTimestampFormatter for now or am I missing a WOnder alternative that uses Pierre's recommendation of SimpleDateFormat? I am still using NSTimestampFormatter. SimpleDateFormat uses a different set of formatting symbols, so you can't just drop one in in place of the other. I have considered making a SimpleDateFormat subclass that understands NSTimestampFormatter symbols. So far... don't hold your breath. i kick myself that i wrote one of these last year and tossed thinking nobody would end up using it ... i don't remember what logic i used to get to that place, but it seems faulty in hindsight :) I will be happy to kick you at WWDC this year! :-P -- 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: Memory Management
On Mar 6, 2009, at 6:08 PM, Jeff Schmitz wrote: On Mar 6, 2009, at 7:05 PM, Chuck Hill wrote: from the Entry table, the Game table and the TeamPopup table that are associated with a single pool via joins from the pool's entries to each entry's games to each game's teams. To process 1 pool that has say 300 entries, each entry having 63 Games and each Game having 2 Teams, That's 63 rows from the Entry table, 18900 distinct rows from the Games table and 37800 distinct rows from the Teams table. My first question is, with a pool name in hand, how do I fashion the qualifier so that all the Pool's associated Game Rows and Team rows that I need for processing are batch fetched in? Have you turned on SQL logging to see what is getting sent to the database? No. Without knowing what is actually happening, you have no (realistic) hope of optimizing it. Turn it on. Look at what each like is causing. Too many single row selects? Would an index improve performance? Here's an interesting (LONG) one. t_team_popup--gameID IS indexed, but I'm not sure why it would be trying to traverse from t_team_popup back to t_game??? SELECT t0.c_game_index, t0.gameID, t0.c_group, t0.id, t0.c_pool_type, t0.c_seed, t0.c_team_id, t0.c_team_pos FROM t_team_popup t0 WHERE (t0.gameID = 1043321 OR t0.gameID = 1043355 OR t0.gameID = 1043352 OR t0.gameID = 1043341 OR t0.gameID = 1043310 OR t0.gameID = 1043295 OR t0.gameID = 1043325 OR t0.gameID = 1043331 OR t0.gameID = 1043348 OR t0.gameID = 1043335 OR t0.gameID = 1043338 OR t0.gameID = 1043353 OR t0.gameID = 1043313 OR t0.gameID = 1043300 OR t0.gameID = 1043294 OR t0.gameID = 1043312 OR t0.gameID = 1043298 OR t0.gameID = 1043339 OR t0.gameID = 1043350 OR t0.gameID = 1043326 OR t0.gameID = 1043320 OR t0.gameID = 1043308 OR t0.gameID = 1043324 OR t0.gameID = 1043327 OR t0.gameID = 1043351 OR t0.gameID = 1043322 OR t0.gameID = 1043337 OR t0.gameID = 1043302 OR t0.gameID = 1043305 OR t0.gameID = 1043344 OR t0.gameID = 1043347 OR t0.gameID = 1043323 ... (you get the idea, it goes on over 50 times this long) To pre-fetch the TeamPopups (whatever that is) for specific Games. Does your model have Batch Faulting configured for these relationships? http://wiki.objectstyle.org/confluence/display/WO/EOF-Modeling-EOModeler#EOF-Modeling-EOModeler-BatchFaulting Yes Details? PoolEntry no batch fetch EntryGame batch fetches 65. GameTeamPopup batch fetches 5 I'd increase those if you have large data sets. Chuck Are you using prefetching keypaths with the fetch spec? http://developer.apple.com/documentation/MacOSXServer/Reference/WO54_Reference/com/webobjects/eocontrol/EOFetchSpecification.html#setPrefetchingRelationshipKeyPaths(com.webobjects.foundation.NSArray) I'm using Wonder, which I think does that. Hopefully I'm using it correctly... ERXBatchFetchUtilities.batchFetch(currPool.entries(), Entry.GAMES.append(Game.TEAM_POPUPS)); That is _batch_ fetching, not _pre_fetching. They do similar things, but prefetching is easier to use for most cases. In the end, by creating a new EC and a new, dedicated Object Store to process each pool, the performance isn't too bad and it doesn't degrade, but sounds like the raw row route might be even faster, or do the joins (I'm no SQL/DB guru) make that more difficult? Faster than what? If what you have is not tuned now, fixing that might make it faster and better. With raw rows you lose EOs. You get raw pieces of data. Which brings us back to, Maybe this is best done in SQL. 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
Using Ant to Minify Javascript and CSS
Hi, I've never done any scripting via Ant but I get the vague impression that I should be able to trigger a call to minify any javascript or CSS files being built in a WebObjects Eclipse project. Does anyone have any experience doing this or could maybe recommend a good Ant tutorial for me? Thanks. --- Kevin 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
[OT] Need beta testers for a hosting solution
Hello everyone, I'm working on a WebObjects shared hosting solution and I'm seeking beta testers to try it out. wocommunity.org is running under this environment since mid-January, but since it seems most of you have different preferences for deployment, I can't test every situation :-) Get the details about the solution here : http://www.woahosting.com/ If you think it answer your needs and want to try it out, drop me a note. --- Pascal Robert http://www.macti.ca http://www.aircourriel.com 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: Finding eomodels in Eclipse/WOLips
How about having WOLips/Eclipse open the entity modeler in a separate window when you find the index.eomodeld? Right now it opens in the same window even though the preference for opening in a separate window is checked in the WOLips preferences. On Mar 9, 2009, at 2:11 PM, Mike Schrag wrote: Is there a way to configure Eclipse so that if finds my eomodels instead of having to hunt them down in the package explorer view with a zillion projects in it? I would think there is a way. right now, no ... the best you can do is type index.eomodeld probably in cmd-shift-r and go through the list to see what folder it's in ... eomodels are folders, and folders aren't considered openable items in Eclipse (the support that's there in wolips is hacked in). Have we filed a bug with the eclipse people asking for this? Or are they just completely unwilling to do something with folders? i wouldn't hold your breath ... 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/rparada %40mac.com This email sent to rpar...@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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Using Ant to Minify Javascript and CSS
Ask and you shall receive, seek and you shall find, knock and it will be opened to you. I use YUICompressor http://developer.yahoo.com/yui/compressor/. This will minify the js and css files in the ${dest.dir} location after the ant build (not the original files obviously). The mapper here doesn't actually change the filename - the files are minified in place. This is from the pre-hotness build.xml BTW. John target name=js.minify depends=build.woapp apply executable=java parallel=false force=true dest=${dest.dir}/${project.name}.woa/Contents/WebServerResources fileset dir=WebServerResources includes=**/*.js/ arg line=-jar/ arg path=../MySharedFramework/Libraries/yuicompressor-2.3.5.jar/ srcfile/ arg line=-o/ mapper type=identity from=*.js to=*-min.js/ targetfile/ /apply /target target name=css.minify depends=build.woapp apply executable=java parallel=false force=true dest=${dest.dir}/${project.name}.woa/Contents/WebServerResources fileset dir=WebServerResources includes=**/*.css/ arg line=-jar/ arg path=../MySharedFramework/Libraries/yuicompressor-2.3.5.jar/ arg line=--line-break 0/ srcfile/ arg line=-o/ mapper type=identity from=*.css to=*-min.css/ targetfile/ /apply /target On Mon, Mar 9, 2009 at 2:33 PM, Kevin Hinkson kkhink...@mac.com wrote: Hi,I've never done any scripting via Ant but I get the vague impression that I should be able to trigger a call to minify any javascript or CSS files being built in a WebObjects Eclipse project. Does anyone have any experience doing this or could maybe recommend a good Ant tutorial for me? Thanks. --- Kevin ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com This email sent to johnth...@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: Finding eomodels in Eclipse/WOLips
log a bug in the wolips jira On Mar 9, 2009, at 3:50 PM, Ricardo J. Parada wrote: How about having WOLips/Eclipse open the entity modeler in a separate window when you find the index.eomodeld? Right now it opens in the same window even though the preference for opening in a separate window is checked in the WOLips preferences. On Mar 9, 2009, at 2:11 PM, Mike Schrag wrote: Is there a way to configure Eclipse so that if finds my eomodels instead of having to hunt them down in the package explorer view with a zillion projects in it? I would think there is a way. right now, no ... the best you can do is type index.eomodeld probably in cmd-shift-r and go through the list to see what folder it's in ... eomodels are folders, and folders aren't considered openable items in Eclipse (the support that's there in wolips is hacked in). Have we filed a bug with the eclipse people asking for this? Or are they just completely unwilling to do something with folders? i wouldn't hold your breath ... 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/rparada%40mac.com This email sent to rpar...@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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Using Ant to Minify Javascript and CSS
On 9-Mar-09, at 3:51 PM, John Huss wrote: Ask and you shall receive, seek and you shall find, knock and it will be opened to you. I use YUICompressor. This will minify the js and css files in the $ {dest.dir} location after the ant build (not the original files obviously). The mapper here doesn't actually change the filename - the files are minified in place. This is from the pre-hotness build.xml BTW. pre-hotness build? meaning what? Sorry I've been buried in my own world trying to learn webobjects for a bit and this is my first foray into the build process other than just getting it to deploy. John target name=js.minify depends=build.woapp apply executable=java parallel=false force=true dest=${dest.dir}/${project.name}.woa/Contents/WebServerResources fileset dir=WebServerResources includes=**/*.js/ arg line=-jar/ arg path=../MySharedFramework/Libraries/ yuicompressor-2.3.5.jar/ srcfile/ arg line=-o/ mapper type=identity from=*.js to=*-min.js/ targetfile/ /apply /target target name=css.minify depends=build.woapp apply executable=java parallel=false force=true dest=${dest.dir}/${project.name}.woa/Contents/WebServerResources fileset dir=WebServerResources includes=**/*.css/ arg line=-jar/ arg path=../MySharedFramework/Libraries/ yuicompressor-2.3.5.jar/ arg line=--line-break 0/ srcfile/ arg line=-o/ mapper type=identity from=*.css to=*-min.css/ targetfile/ /apply /target Cool. Thanks. I'll let you know if I have any issues. On Mon, Mar 9, 2009 at 2:33 PM, Kevin Hinkson kkhink...@mac.com wrote: Hi, I've never done any scripting via Ant but I get the vague impression that I should be able to trigger a call to minify any javascript or CSS files being built in a WebObjects Eclipse project. Does anyone have any experience doing this or could maybe recommend a good Ant tutorial for me? Thanks. --- Kevin ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com This email sent to johnth...@gmail.com --- Kevin 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: ant build problem
I think the .classpath is good; it looks just like the one you'd get from a brand new project and nothing like the old pre hotness classpath file. Here's a very relevant lines from ant with -verbose; first output upon hitting the compile target: ZoneInfo: /usr/lib/jvm/java-1.6.0-sun-1.6.0.7/jre/lib/zi/ ZoneInfoMappings (Too many open files) ZoneInfo: /usr/lib/jvm/java-1.6.0-sun-1.6.0.7/jre/lib/zi/ ZoneInfoMappings (Too many open files) On Mar 9, 2009, at 3:04 PM, Chuck Hill wrote: On Mar 9, 2009, at 11:37 AM, Dom wrote: OK, and now I'm getting this: Failed to process eclipse frameworks. when issuing ant war or any other target that requires a build. IIRC that means the .classpath file has not been updated to New Hotness. Chuck On Mar 8, 2009, at 11:16 AM, Dom wrote: Thank you Mike, Where should I put the woproject.jar on my local machine assuming osx? Does it matter? I currently have it in my /Library/WebObjects/ lib directory, and that was more in an effort to resolve this while messing around yesterday. I'm not really sure how it worked before;-) Thanks again. On Mar 8, 2009, at 10:21 AM, Mike Schrag wrote: build.xml:207: Class org.objectstyle.woproject.ant.FrameworkSet doesn't support the eclipse attribute. old woproject.jar I'm seeing this error: java.lang.NoSuchMethodError: org.objectstyle.woproject.ant.FrameworkSet.getDir()Ljava/io/File; old ant upgrade to ant 1.7 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/dominant_seventh%40me.com This email sent to dominant_seve...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/wkhatch%40me.com This email sent to wkha...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/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: Using Ant to Minify Javascript and CSS
It probably doesn't matter for this, but the standard build.xml file changed a bit recently and this uses the old version. So if you installed WOLips recently I can't say for sure that this will work verbatim, but it might. John On Mon, Mar 9, 2009 at 2:55 PM, Kevin Hinkson kkhink...@mac.com wrote: On 9-Mar-09, at 3:51 PM, John Huss wrote: Ask and you shall receive, seek and you shall find, knock and it will be opened to you. I use YUICompressor http://developer.yahoo.com/yui/compressor/. This will minify the js and css files in the ${dest.dir} location after the ant build (not the original files obviously). The mapper here doesn't actually change the filename - the files are minified in place. This is from the pre-hotness build.xml BTW. pre-hotness build? meaning what? Sorry I've been buried in my own world trying to learn webobjects for a bit and this is my first foray into the build process other than just getting it to deploy. John target name=js.minify depends=build.woapp apply executable=java parallel=false force=true dest=${dest.dir}/${project.name}.woa/Contents/WebServerResources fileset dir=WebServerResources includes=**/*.js/ arg line=-jar/ arg path=../MySharedFramework/Libraries/yuicompressor-2.3.5.jar/ srcfile/ arg line=-o/ mapper type=identity from=*.js to=*-min.js/ targetfile/ /apply /target target name=css.minify depends=build.woapp apply executable=java parallel=false force=true dest=${dest.dir}/${project.name}.woa/Contents/WebServerResources fileset dir=WebServerResources includes=**/*.css/ arg line=-jar/ arg path=../MySharedFramework/Libraries/yuicompressor-2.3.5.jar/ arg line=--line-break 0/ srcfile/ arg line=-o/ mapper type=identity from=*.css to=*-min.css/ targetfile/ /apply /target Cool. Thanks. I'll let you know if I have any issues. On Mon, Mar 9, 2009 at 2:33 PM, Kevin Hinkson kkhink...@mac.com wrote: Hi,I've never done any scripting via Ant but I get the vague impression that I should be able to trigger a call to minify any javascript or CSS files being built in a WebObjects Eclipse project. Does anyone have any experience doing this or could maybe recommend a good Ant tutorial for me? Thanks. --- Kevin ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com This email sent to johnth...@gmail.com --- Kevin ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com This email sent to johnth...@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: Using Ant to Minify Javascript and CSS
I'll poke around first and see if I can figure it out. Thanks again. On 9-Mar-09, at 4:05 PM, John Huss wrote: It probably doesn't matter for this, but the standard build.xml file changed a bit recently and this uses the old version. So if you installed WOLips recently I can't say for sure that this will work verbatim, but it might. John On Mon, Mar 9, 2009 at 2:55 PM, Kevin Hinkson kkhink...@mac.com wrote: On 9-Mar-09, at 3:51 PM, John Huss wrote: Ask and you shall receive, seek and you shall find, knock and it will be opened to you. I use YUICompressor. This will minify the js and css files in the $ {dest.dir} location after the ant build (not the original files obviously). The mapper here doesn't actually change the filename - the files are minified in place. This is from the pre-hotness build.xml BTW. pre-hotness build? meaning what? Sorry I've been buried in my own world trying to learn webobjects for a bit and this is my first foray into the build process other than just getting it to deploy. John target name=js.minify depends=build.woapp apply executable=java parallel=false force=true dest=${dest.dir}/${project.name}.woa/Contents/WebServerResources fileset dir=WebServerResources includes=**/*.js/ arg line=-jar/ arg path=../MySharedFramework/Libraries/ yuicompressor-2.3.5.jar/ srcfile/ arg line=-o/ mapper type=identity from=*.js to=*-min.js/ targetfile/ /apply /target target name=css.minify depends=build.woapp apply executable=java parallel=false force=true dest=${dest.dir}/${project.name}.woa/Contents/WebServerResources fileset dir=WebServerResources includes=**/*.css/ arg line=-jar/ arg path=../MySharedFramework/Libraries/ yuicompressor-2.3.5.jar/ arg line=--line-break 0/ srcfile/ arg line=-o/ mapper type=identity from=*.css to=*-min.css/ targetfile/ /apply /target Cool. Thanks. I'll let you know if I have any issues. On Mon, Mar 9, 2009 at 2:33 PM, Kevin Hinkson kkhink...@mac.com wrote: Hi, I've never done any scripting via Ant but I get the vague impression that I should be able to trigger a call to minify any javascript or CSS files being built in a WebObjects Eclipse project. Does anyone have any experience doing this or could maybe recommend a good Ant tutorial for me? Thanks. --- Kevin ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com This email sent to johnth...@gmail.com --- Kevin ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com This email sent to johnth...@gmail.com --- Kevin 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: Access Control [was: Digging up a Session object from an EOGenericRecord]
Thanks for discussing Chuck. I am just wondering what others do and looking for ideas and/or standardization for current and future projects. Meanwhile I found this useful NIST standards info on various forms of RBAC http://csrc.nist.gov/groups/SNS/rbac/ Cheers, Kieran On Mar 9, 2009, at 3:22 PM, Chuck Hill wrote: On Mar 7, 2009, 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? Roles and Privileges are good. I add a SecurityAgent object to hold all of this for a user and to the arbiter of access requests. The SecurityAgent gets set in the session when the user is authenticated. I also use permission names like ViewThis so that I can form these into bindings like @session.userCanViewThis. This gets passed to the SecurityAgent via KVC (actually, I use @userCanViewThis and get the page to pass it off to session). I also extend this with an optional EO so that after the SecurityAgent has verified the user has the Privilege, it can then delegate the final decision to the EO. This is useful where there are groups of users and you might have ViewThis but only on objects in your group. Is that the sort of thing you were looking for? Chuck On Mar 7, 2009, at 12:48 PM, Mike Schrag wrote: well, wherever ... awake possibly, or whenever your auth code runs to check for ACL's at the top of each request. ___ Do not post admin requests to the list. They will 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
[CAWUG] Reminder Meeting Tomorrow
Yes ... sorry for the terse reminder, here's the standard info: Agenda: - Bob on optimizing your web site / web app for the iPhone iPod Touch - adjournment to O'Toole's When: Tuesday, March 10th, 7:00 PM Where: Apple Store Michigan Avenue 679 North Michigan Ave. (at the corner of Huron Michigan Ave.) Chicago, IL 60611 http://tinyurl.com/Michigan-Ave-Apple-Store (Google Maps URL) On Mar 9, 2009, at 5:07 PM, Adam Howitt wrote: Hi Bob, I'm new to the group - Apple store at 7pm? On Mon, Mar 9, 2009 at 5:00 PM, Bob Frank b...@apple.com wrote: Hi all, Sorry for the late reminder, I've been totaly swamped. Tomorrow I'll be talking about how to optimize your web sites web apps for the iPhone. -Bob -- ~~~ Adam Howitt 312.714.9229 http://www.walkjogrun.net http://www.adamhowitt.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CAWUG: Chicago Cocoa WebObjects User Group group. To post to this group, send email to ca...@googlegroups.com To unsubscribe from this group, send email to cawug+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cawug?hl=en -~--~~~~--~~--~--~--- ___ Do not post admin requests to the list. They will 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: ant build problem
Does anybody have any idea on how to solve this problem? I'm stuck and would very much like to move onto actually deploying this test app in tomcat. Any suggestions on how to get the Too many open files thing resolved? Thanks, Dom On Mar 9, 2009, at 3:51 PM, Dom wrote: I think the .classpath is good; it looks just like the one you'd get from a brand new project and nothing like the old pre hotness classpath file. Here's a very relevant lines from ant with -verbose; first output upon hitting the compile target: ZoneInfo: /usr/lib/jvm/java-1.6.0-sun-1.6.0.7/jre/lib/zi/ ZoneInfoMappings (Too many open files) ZoneInfo: /usr/lib/jvm/java-1.6.0-sun-1.6.0.7/jre/lib/zi/ ZoneInfoMappings (Too many open files) On Mar 9, 2009, at 3:04 PM, Chuck Hill wrote: On Mar 9, 2009, at 11:37 AM, Dom wrote: OK, and now I'm getting this: Failed to process eclipse frameworks. when issuing ant war or any other target that requires a build. IIRC that means the .classpath file has not been updated to New Hotness. Chuck On Mar 8, 2009, at 11:16 AM, Dom wrote: Thank you Mike, Where should I put the woproject.jar on my local machine assuming osx? Does it matter? I currently have it in my /Library/ WebObjects/lib directory, and that was more in an effort to resolve this while messing around yesterday. I'm not really sure how it worked before;-) Thanks again. On Mar 8, 2009, at 10:21 AM, Mike Schrag wrote: build.xml:207: Class org.objectstyle.woproject.ant.FrameworkSet doesn't support the eclipse attribute. old woproject.jar I'm seeing this error: java.lang.NoSuchMethodError: org.objectstyle.woproject.ant.FrameworkSet.getDir()Ljava/io/File; old ant upgrade to ant 1.7 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/dominant_seventh%40me.com This email sent to dominant_seve...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/wkhatch%40me.com This email sent to wkha...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/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/wkhatch%40me.com This email sent to wkha...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ant build problem
On Mar 9, 2009, at 3:19 PM, Dom wrote: Does anybody have any idea on how to solve this problem? I'm stuck and would very much like to move onto actually deploying this test app in tomcat. Any suggestions on how to get the Too many open files thing resolved? Thanks, Dom On Mar 9, 2009, at 3:51 PM, Dom wrote: I think the .classpath is good; it looks just like the one you'd get from a brand new project and nothing like the old pre hotness classpath file. Here's a very relevant lines from ant with - verbose; first output upon hitting the compile target: ZoneInfo: /usr/lib/jvm/java-1.6.0-sun-1.6.0.7/jre/lib/zi/ ZoneInfoMappings (Too many open files) ZoneInfo: /usr/lib/jvm/java-1.6.0-sun-1.6.0.7/jre/lib/zi/ ZoneInfoMappings (Too many open files) I've not seen that before. If you reboot, does the same thing still happen? If not, I'd suspect something else on that machine of gobbling up handles. Chuck On Mar 9, 2009, at 3:04 PM, Chuck Hill wrote: On Mar 9, 2009, at 11:37 AM, Dom wrote: OK, and now I'm getting this: Failed to process eclipse frameworks. when issuing ant war or any other target that requires a build. IIRC that means the .classpath file has not been updated to New Hotness. Chuck On Mar 8, 2009, at 11:16 AM, Dom wrote: Thank you Mike, Where should I put the woproject.jar on my local machine assuming osx? Does it matter? I currently have it in my /Library/ WebObjects/lib directory, and that was more in an effort to resolve this while messing around yesterday. I'm not really sure how it worked before;-) Thanks again. On Mar 8, 2009, at 10:21 AM, Mike Schrag wrote: build.xml:207: Class org.objectstyle.woproject.ant.FrameworkSet doesn't support the eclipse attribute. old woproject.jar I'm seeing this error: java.lang.NoSuchMethodError: org.objectstyle.woproject.ant.FrameworkSet.getDir()Ljava/io/ File; old ant upgrade to ant 1.7 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/dominant_seventh%40me.com This email sent to dominant_seve...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/wkhatch%40me.com This email sent to wkha...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/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/wkhatch %40me.com This email sent to wkha...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/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: ant build problem
Does anybody have any idea on how to solve this problem? I'm stuck and would very much like to move onto actually deploying this test app in tomcat. Any suggestions on how to get the Too many open files thing resolved? Seems possible that the error is just telling the truth and you really are running out of open files ... just google search for too many open files whatever your os is and you'll find the command to bump up your max open file limit. 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
AjaxObserveField question
Is it possible to observe a text field to update a container when user presses the return key inside the text field. Right now I'm using a text field with a little javascript to look at each key stroke and call the FooUpdate() function to update the container when the key typed is the return key. But I was wondering if the AjaxObserveField already has this functionality. I couldn't quite follow the english in the javadoc documentation for AjaxObserveField... Specially the sentences toward the end. Something ain't quite right in the explanation (I think). :-) Ricardo ___ Do not post admin requests to the list. They will 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: AjaxObserveField question
On Mar 9, 2009, at 9:28 PM, Ricardo J. Parada wrote: Right now I'm using a text field with a little javascript to look at each key stroke and call the FooUpdate() function to update the container when the key typed is the return key. But I was wondering if the AjaxObserveField already has this functionality. I forgot to say. If I do FooUpdate() from my javascript, but it's not sending in text field value. Does FooUpdate() take any arguments for the values I want to send in with the request (i.e. a partial ajax submit). ___ Do not post admin requests to the list. They will 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: AjaxObserveField question
On Mar 9, 2009, at 6:46 PM, Ricardo J. Parada wrote: On Mar 9, 2009, at 9:28 PM, Ricardo J. Parada wrote: Right now I'm using a text field with a little javascript to look at each key stroke and call the FooUpdate() function to update the container when the key typed is the return key. But I was wondering if the AjaxObserveField already has this functionality. I forgot to say. If I do FooUpdate() from my javascript, but it's not sending in text field value. Does FooUpdate() take any arguments for the values I want to send in with the request (i.e. a partial ajax submit). AjaxObserveField submits the form which is why the value will be present on the server. AjaxUpdateContainer just sends the current state of what is on the server. Updating the container does not submit the form. 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
wolips and eclipse not working
Any help would be greatly appreciated. At first, after installing eclipse 3.4.1 and wolips everything was working except inline bindings. While trying to fix inline bindings something has happened to wolips. Now when I try to create a new project (from the main menu) in wolips it only creates a folder with the project name and it is empty. If I try to right click in wolips explorer and then on a new project, it does nothing. I have now tried deleting eclipse and have tried eclipse 3.4.0, 3.4.1, and 3.4.2. I have tried to delete any reference to wolips on the system but every time wolips installs it does the same thing and in eclipse/features directory all the references point to wolips/stable instead of the wolips/nightly that I am installing. If you have any ideas or need any other info please let me know. Thanks Patrick ___ Do not post admin requests to the list. They will 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