Re: Does the ERXStaticResourceRequestHandler work with those compressed jarred resources?
The reason we don't do it ourself is that a lot of that stuff calls into erxfileutils and that uses path names. Fixing it would be a lot of work and make code more complicated without a lot of real gain (at least from when I last looked at it). So unless any of the committers actually need to use this themselves, I wouldn't hold my breath waiting for it. Cheers, Anjo Am 23.07.2010 um 05:12 schrieb Mr. G Brown: On Jul 21, 2010, at 11:12 PM, Mike Schrag wrote: Is anybody using 5.4? It is too bad that Wonder doesn't work so well with the jar frameworks; sometimes it does, sometimes it doesn't... fixes welcome :) ms Well the following line in my Application fixes this problem: registerRequestHandler( requestHandlerForKey(wr), _wr_ ) ; // use standard requestHandler for _wr_ key Hmmm, maybe a new Wonder property like er.PleaseIReallyReallyWantToUseNSBundleJars=true would be a catch-all for people who really really want to use NSBundle jars, and would make this and other future-to-be-made-changes to the Wonder framework. ;) The warning: WARN er.extensions.foundation.ERXFileUtilities - Can't get path when run as jar: ERNeutralLook - Properties must be a NSBundle jar problem as well; WONDER-461? ___ Do not post admin requests to the list. They will 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 ___ Do not post admin requests to the list. They will 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
any there any other actions which could cause a timeout?
Hi All, can someone tell me if there is anything else which can cause a timeout? we have set setSessionTimeOut to be an hour in Application class, but we are intermittently experiencing timeouts when the hour has not been reached. Thanks in advance Bearko ___ Do not post admin requests to the list. They will 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
Solaris SPARC WO Adaptor
Hi everyone, I'd need to setup a running WO environment for a client on a SPARC Solaris 10, with Apache 2.2. Would it happen someone has already a precompiled WO Adaptor for this platform please ? I saw some dicussions about compiling this adaptor is tricky, so if I could find one already built it would save me a lot of time. Thanks. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OT: WO Wiki search less than helpful
The new Extension isn't version 1 yet. I am trying to figure out what else I can do to make it better. I will take a look for the Wiki Search. And I am not happy with Google too, but for an Startingpoint it was OK. Greetings Ken iPadから送信 On 2010/07/22, at 23:30, David Holt programming...@mac.com wrote: Hi Joe, I've been really impressed with the updated confluence site itself. search on confluence site.jpg The search has become especially useful to me. I hope that the extension can match it, but if not, the confluence wiki itself is still only a click away. And no, I don't think you put up your notes about ERModernLook. I am pretty sure I would have seen them. d On 22-Jul-10, at 2:04 PM, Joe Little wrote: I was trying out the new extension, and wanted to see what I last posted on ERModernLook (or if I ever did get around to adding my notes). I was lazy, and did a search for ERModern but came up blank. Only by searching full names like ERModernLook did results come up. This is relative to the search provided by Confluence. Is there a way that searches on substrings is supposed to work there? Considering WebObjects is the land of the VeryLongAndHardToRememberExactOrderingMethodNames, I thought perhaps this was something to bring up. Relying on google doesn't help much, as it doesn't always direct me to the real meat at the objectstyle wiki or even find things there. ___ Do not post admin requests to the list. They will 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/ken%40ksroom.com This email sent to k...@ksroom.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: any there any other actions which could cause a timeout?
Hi Jake; If you don't have concurrent request processing turned on then if an instance (X) is already dealing with another request which takes more than a few seconds to return a response, the Apache adaptor seems to fail-over a new inbound request to another instance (Y) even though the new request is related to a session. As the second instance (Y) is oblivious to the session on the new request it gives you a session timeout response. This could be what is happening in your case. cheers. can someone tell me if there is anything else which can cause a timeout? we have set setSessionTimeOut to be an hour in Application class, but we are intermittently experiencing timeouts when the hour has not been reached. ___ Andrew Lindesay www.silvereye.co.nz ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
(dead)locking of EC and OSC
Hi, We recently had some deadlock problems involving EC and OSC locking, and I would like to validate my thoughts with the list. As a very basic rule with everything multithreaded, whenever two threads want access to the same resources, they have to lock them in a predefined identical order. Otherwise you have that classic deadlock possibility, where T1 has A and wants B, and T2 has B and wants A. This, for EOF, means the following: Whenever you hold an OSC lock, you are NOT allowed to lock any EC anymore! Why not? Cause the normal order is the other way round. First you lock the EC, then, when doing something with it, you lock the OSC. For example, our specific deadlock occurred, cause we had a Thread1: - lock the OSC - in a loop, do some operations involving locking of lots of ECs (we have some stuff in there, which posts notifications to all ECs) - Unlock OSC Now, while T1 was busy in its loop, some T2 was fetching a single EO: - lock the EC - fetch EO causing OSC to lock - which waits for T2 to finish And, as soon as the T1 loop reaches the locked EC of T2 - Deadlock Now, the questions I have: - Is this analysis correct? - What do we do about it? If I understand all this correctly, my above rule means: _Whenever you have the need to explicitely lock an OSC, you can't do any operation, which would cause an formerly unlocked (by you) EC to be locked._ Which might be more than you think. IIRC, you are not allowed to make any changes to any EO. Because that causes EOObjectsChangedInStoreNotifications to be fired around to all ECs. Which in turn, causes all these ECs to be locked. Which violates the rule. Now, if you really need to do this (you NEED to lock an OSC, and you NEED to use ECs while having it locked), you could think, Oh it's OK, I just lock all of them first. But then again, in what order do you lock the ECs? Because if you do it in random order, you again have the possibility of deadlock. So, what is everybody doing? - I don't lock the OSC myself. Why would I want to? - I do, but I am VERY careful about what I do with it being locked. - I do, and so far I have been lucky. BTW, this deadlock we had occurred about once a week. As such, it was not really reproducible on a developer machine. We finally catched it, when we put that T2 thread in an endless loop, letting it refetch that same EO again and again. The Eclipse Console didn't like the logging output of that thread at all :) Greetings, Marc ___ Do not post admin requests to the list. They will 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: Does the ERXStaticResourceRequestHandler work with those compressed jarred resources?
The reason we don't do it ourself is that a lot of that stuff calls into erxfileutils and that uses path names. Fixing it would be a lot of work and make code more complicated without a lot of real gain (at least from when I last looked at it). So unless any of the committers actually need to use this themselves, I wouldn't hold my breath waiting for it. Cheers, Anjo WARN er.extensions.foundation.ERXFileUtilities - Can't get path when run as jar: ERNeutralLook - Properties Actually, having only Properties come from and set by my program--is a feature--not a bug! This feature has not caused me any pain--yet. I generally would look at the properties included in the framework, but would set the ones I want in my program's properties file. I am not sure what all I am missing by having to work this way. NSBundle jars have additional features that regular frameworks do not! (Sometimes.) -- gsbr...@umich.edu ___ Do not post admin requests to the list. They will 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: Does the ERXStaticResourceRequestHandler work with those compressed jarred resources?
Hm. Then again, IIRC we use strings for paths... so you probably *could* give these methods a jar:xxx string and handle that in the method. Not the cleanest way, but what the heck. I'm not sure if not using the default props is that good a thing. Sometimes these change or get added to and you would want to get the additions. Cheers, Anjo Am 23.07.2010 um 14:56 schrieb gsbr...@umich.edu: The reason we don't do it ourself is that a lot of that stuff calls into erxfileutils and that uses path names. Fixing it would be a lot of work and make code more complicated without a lot of real gain (at least from when I last looked at it). So unless any of the committers actually need to use this themselves, I wouldn't hold my breath waiting for it. Cheers, Anjo WARN er.extensions.foundation.ERXFileUtilities - Can't get path when run as jar: ERNeutralLook - Properties Actually, having only Properties come from and set by my program--is a feature--not a bug! This feature has not caused me any pain--yet. I generally would look at the properties included in the framework, but would set the ones I want in my program's properties file. I am not sure what all I am missing by having to work this way. NSBundle jars have additional features that regular frameworks do not! (Sometimes.) -- gsbr...@umich.edu ___ Do not post admin requests to the list. They will 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 ___ Do not post admin requests to the list. They will 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: Inverse to-one relationships
On Jul 22, 2010, at 9:17 PM, Paul Hoadley wrote: On 23/07/2010, at 10:20 AM, Chuck Hill wrote: 1. It only works when I call a.addObjectToBothSidesOfRelationshipWithKey(b, b). (Don't get me wrong—that's great, an enormous improvement on what I was doing 5 minutes ago.) Did you add versions of this method to both entities? Yes. I've got Wonder's updateInverseRelationships property set true, but it doesn't seem to be automatically updating this relationship. (It is working as designed on others.) In fact, inverseForRelationshipKey() isn't even being called, unless I manually call addObjectToBothSidesOfRelationshipWithKey(). Is this expected? I don't know. OK. I'll work around it. 2. Slightly more academic: why did everything I had read previously make me think this wouldn't work? I had also read that post from Chuck quoted in this thread by Ramsey: You could model it as a right-outer join and optional, but I think that EOF is still going to have a hissy fit when it does not find the row. Worth a try and a good bug to log with Apple if it does not work. Chuck, were you talking about something else there? (Presumably the answer is: I was mis-reading everything, and I didn't describe the problem clearly enough for Ramsey!) I am pretty sure that was referring to a PK - PK relationship when the PK is propagated from the parent to the child. Ah, OK. Well, this has all ended quite nicely. Thanks all. -- Paul. http://logicsquad.net/ Nice trick Chuck (^_^) You are awesome! And it seems so simple now, I wonder why I didn't try it sooner. This appears to work in both directions for me. I must have looked through 10 years of archived list messages and never found an answer to this one. Anyway, thank you again Chuck and thank you too Paul for asking the question one more time. Ramsey ___ Do not post admin requests to the list. They will 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: Inverse to-one relationships
On Jul 23, 2010, at 7:14 AM, Ramsey Gurley wrote: On Jul 22, 2010, at 9:17 PM, Paul Hoadley wrote: On 23/07/2010, at 10:20 AM, Chuck Hill wrote: 1. It only works when I call a.addObjectToBothSidesOfRelationshipWithKey(b, b). (Don't get me wrong—that's great, an enormous improvement on what I was doing 5 minutes ago.) Did you add versions of this method to both entities? Yes. I've got Wonder's updateInverseRelationships property set true, but it doesn't seem to be automatically updating this relationship. (It is working as designed on others.) In fact, inverseForRelationshipKey() isn't even being called, unless I manually call addObjectToBothSidesOfRelationshipWithKey(). Is this expected? I don't know. OK. I'll work around it. 2. Slightly more academic: why did everything I had read previously make me think this wouldn't work? I had also read that post from Chuck quoted in this thread by Ramsey: You could model it as a right-outer join and optional, but I think that EOF is still going to have a hissy fit when it does not find the row. Worth a try and a good bug to log with Apple if it does not work. Chuck, were you talking about something else there? (Presumably the answer is: I was mis-reading everything, and I didn't describe the problem clearly enough for Ramsey!) I am pretty sure that was referring to a PK - PK relationship when the PK is propagated from the parent to the child. Ah, OK. Well, this has all ended quite nicely. Thanks all. -- Paul. http://logicsquad.net/ Nice trick Chuck (^_^) You are awesome! It is not me, it is EOF that is awesome. I just remember the specifics. ;-) Chuck And it seems so simple now, I wonder why I didn't try it sooner. This appears to work in both directions for me. I must have looked through 10 years of archived list messages and never found an answer to this one. Anyway, thank you again Chuck and thank you too Paul for asking the question one more time. Ramsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: (dead)locking of EC and OSC
I don't lock the OSC myself. Why would I want to? I would like to know when this is necessary. Thanks, John On Fri, Jul 23, 2010 at 7:08 AM, Marc Guenther y...@schli.ch wrote: So, what is everybody doing? - I don't lock the OSC myself. Why would I want to? - I do, but I am VERY careful about what I do with it being locked. - I do, and so far I have been lucky. ___ Do not post admin requests to the list. They will 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: (dead)locking of EC and OSC
On Jul 23, 2010, at 5:08 AM, Marc Guenther wrote: Hi, We recently had some deadlock problems involving EC and OSC locking, and I would like to validate my thoughts with the list. As a very basic rule with everything multithreaded, whenever two threads want access to the same resources, they have to lock them in a predefined identical order. Otherwise you have that classic deadlock possibility, where T1 has A and wants B, and T2 has B and wants A. This, for EOF, means the following: Whenever you hold an OSC lock, you are NOT allowed to lock any EC anymore! I think of it as taking escalating locks: EC - DB Context - OSC Why not? Cause the normal order is the other way round. First you lock the EC, then, when doing something with it, you lock the OSC. For example, our specific deadlock occurred, cause we had a Thread1: - lock the OSC - in a loop, do some operations involving locking of lots of ECs (we have some stuff in there, which posts notifications to all ECs) - Unlock OSC That seems like a long time to have the OSC locked. Why are you locking the OSC? Now, while T1 was busy in its loop, some T2 was fetching a single EO: - lock the EC - fetch EO causing OSC to lock - which waits for T2 to finish And, as soon as the T1 loop reaches the locked EC of T2 - Deadlock Now, the questions I have: - Is this analysis correct? Yes. - What do we do about it? Lock in the correct order. Don't lock and hold locked the OSC. Use different EOF stacks (hence different OSC). Don't touch the same EC in more than one thread concurrently. If I understand all this correctly, my above rule means: _Whenever you have the need to explicitely lock an OSC, you can't do any operation, which would cause an formerly unlocked (by you) EC to be locked._ Which might be more than you think. IIRC, you are not allowed to make any changes to any EO. Because that causes EOObjectsChangedInStoreNotifications to be fired around to all ECs. That happens when saveChanges() is called. saveChanges() locks the OSC. Which in turn, causes all these ECs to be locked. Which violates the rule. If they are already locked, it will only queue the notification, not wait for a lock. Now, if you really need to do this (you NEED to lock an OSC, and you NEED to use ECs while having it locked), you could think, Oh it's OK, I just lock all of them first. But then again, in what order do you lock the ECs? Because if you do it in random order, you again have the possibility of deadlock. That sounds like you may be sharing ECs between threads in a dangerous pattern. So, what is everybody doing? - I don't lock the OSC myself. Why would I want to? - I do, but I am VERY careful about what I do with it being locked. - I do, and so far I have been lucky. Never any problems, provided you lock it at the appropriate time. Chuck BTW, this deadlock we had occurred about once a week. As such, it was not really reproducible on a developer machine. We finally catched it, when we put that T2 thread in an endless loop, letting it refetch that same EO again and again. The Eclipse Console didn't like the logging output of that thread at all :) Greetings, Marc ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Inverse to-one relationships
On Jul 23, 2010, at 10:22 AM, Chuck Hill wrote: It is not me, it is EOF that is awesome. I just remember the specifics. ;-) That makes you the WOman then, right? Dave ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Inverse to-one relationships
On Jul 23, 2010, at 8:29 AM, David Avendasora wrote: On Jul 23, 2010, at 10:22 AM, Chuck Hill wrote: It is not me, it is EOF that is awesome. I just remember the specifics. ;-) That makes you the WOman then, right? Sounds like a WOWODC shirt in the making there... -- 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
Dumb ERAttachmentFlexibleUpload question
I am trying to use ERAttachmentFlexible upload in our app. We have a communication entity, which has up to 5 attachments of type ERAttachment. (attachment1, attachment2 . . ., etc.) all are foreign keys to the ERAttachment. I am trying to use ERAttachmentFlexibleUpload inside a subcomponent which itself is contained in an AjaxModalDialog. This seems to work for the first attachment I upload, using relatively few bindings ERAttachmentFlexibleUpload : ERAttachmentFlexibleUpload { attachment = attachmentItem; editingContext = communication.editingContext; finishedFunction = new function() { attachmentUploadContainerUpdate() }; selectFileButtonClass = prettyButton; selectFileLabel = Choose File; } I am not a javascript whiz to say the least, so I am having difficulty figuring out what the javascript is doing and where it is (e.g. attachmentUploadContainerUpdate()) Also, I don't know where the default css is. The main problem is that when I delete an attachment (by setting it to null in the communication's edit component), then I want to add another attachment, the old filename appears, with a clear link below it. I have no idea why that is, or where that is happening. I assume there is someplace someone could point me to. Thanks Andrew ___ Do not post admin requests to the list. They will 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: Dumb ERAttachmentFlexibleUpload question
On 2010-07-23, at 1:19 PM, David LeBer wrote: On 2010-07-23, at 12:50 PM, Andrew R. Kinnie wrote: I am trying to use ERAttachmentFlexible upload in our app. We have a communication entity, which has up to 5 attachments of type ERAttachment. (attachment1, attachment2 . . ., etc.) all are foreign keys to the ERAttachment. I am trying to use ERAttachmentFlexibleUpload inside a subcomponent which itself is contained in an AjaxModalDialog. This seems to work for the first attachment I upload, using relatively few bindings ERAttachmentFlexibleUpload : ERAttachmentFlexibleUpload { attachment = attachmentItem; editingContext = communication.editingContext; finishedFunction = new function() { attachmentUploadContainerUpdate() }; selectFileButtonClass = prettyButton; selectFileLabel = Choose File; } I am not a javascript whiz to say the least, so I am having difficulty figuring out what the javascript is doing and where it is (e.g. attachmentUploadContainerUpdate()) Well that will update an ajax update container with the id 'attachmentUploadContainer' Also, I don't know where the default css is. Because ERAttachmentFlexibleUpload is based on AjaxFlexibleFileUpload the default css is in the Ajax framework: default_ajaxupload.css The main problem is that when I delete an attachment (by setting it to null in the communication's edit component), then I want to add another attachment, the old filename appears, with a clear link below it. I have no idea why that is, or where that is happening. It is not clear what you are doing here. How and where are you deleting the attachment again? Have you looked at using ERAttachmentFlexibleEditor? It uploading adding *and* removing/replacing attachments. OK, that makes no sense... trying again: It supports uploading *and* removing/replacing attachments. I assume there is someplace someone could point me to. Thanks The bindings for the various FlexibleUpload (which I just realized compresses to FU... oops) components are documented in their respective java docs. ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Dumb ERAttachmentFlexibleUpload question
On Jul 23, 2010, at 1:19 PM, David LeBer wrote: Well that will update an ajax update container with the id 'attachmentUploadContainer' Well that clears that much up. Unfortunately, this didn't actually solve anything. Also, I don't know where the default css is. Because ERAttachmentFlexibleUpload is based on AjaxFlexibleFileUpload the default css is in the Ajax framework: default_ajaxupload.css Thanks. I didn't even think of that. I'll look there. The main problem is that when I delete an attachment (by setting it to null in the communication's edit component), then I want to add another attachment, the old filename appears, with a clear link below it. I have no idea why that is, or where that is happening. It is not clear what you are doing here. How and where are you deleting the attachment again? Basically, I have an edit component which contains the AjaxModalDialog containing the subcomponent with the Flexible Uploader The edit component edits the communication in general, and as part of that, the user can attach up to 5 files. These appear in an inline worepetition with a close button. Clicking close tells the attachment represented by that index to be set to null. e.g. click the close button for attachment1 sends communcation.setAttachment1(null) There are also links at the end of the repetition to add more attachments. Clicking one opens the AjaxModalDialog containing the subcomponent with the ERAttachmentFlexibleUploader. The first time you click Add File the dialog appears with the choose file button reflected as a shrunken version of my standard prettyButton . . . presumably it's shrunken because of something in the CSS. Once you choose a file, it's uploaded and it appears with a red x close button. Presumably also in the CSS. (I originally didn't set the choose button class and got a blue choose button which apparently didn't have a grey background, so the corners are a little weird. Hence I tried to use our button class) After you upload a file, and click my Attach button (which simply sets the attachmentItem into the first available spot for the communication's attachments -- e.g. communication().setAttachment1(attachmentItem). This appears to work. The dialog goes away and the attachment appears. If you click our close button for it, it disappears. Then if you click attach files again, the old attachment's filename appears, with a Clear link under it. I'd rather have it just open an empty one uploader with a default button instead of a clear link. Sorry I wasn't clearer earlier, Dave A was harassing me to go to lunch. I can't disappoint Dave. Have you looked at using ERAttachmentFlexibleEditor? It uploading adding *and* removing/replacing attachments. I was originally looking at using the editor, but they actively didn't want to see the uploaded file (dunno why) so I went back to the Flexible Uploader. I will look at the other things you mentioned, and hopefully that will explain things better for me ___ Do not post admin requests to the list. They will 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
willDelete() is not getting fired for children in a tree structured entity
Hi, I have a model where an entity A has a recursive relationship as parent toParentOfTypeA() and children toChildrenOfTypeA(). Consider it as a tree structured entity. In the model have setup the entity to delete cascade. In the entity I have overriden the method willDelete(). Now when I delete the parent, it fires the willDelete() of it but does not fire willDelete() of it's children. When I checked in the willDelete() I found the toChildren() relationship is empty but the children are there and I access it in the component when I generate tree. Below is the source code. Follwing method is overridden inside entity A. public void willDelete() { ERXUtilities.deleteObjects(editingContext(), toChildrenOfTypeA()); } // below code is somewhere else. A a = // object retrieved from the db. a.delete(); Any Idea? If needed, I can send the source code too. Farrukh Sent from my iPad ___ Do not post admin requests to the list. They will 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: Dumb ERAttachmentFlexibleUpload question
On 2010-07-23, at 2:38 PM, Andrew R. Kinnie wrote: On Jul 23, 2010, at 1:19 PM, David LeBer wrote: Well that will update an ajax update container with the id 'attachmentUploadContainer' Well that clears that much up. Unfortunately, this didn't actually solve anything. Also, I don't know where the default css is. Because ERAttachmentFlexibleUpload is based on AjaxFlexibleFileUpload the default css is in the Ajax framework: default_ajaxupload.css Thanks. I didn't even think of that. I'll look there. The main problem is that when I delete an attachment (by setting it to null in the communication's edit component), then I want to add another attachment, the old filename appears, with a clear link below it. I have no idea why that is, or where that is happening. It is not clear what you are doing here. How and where are you deleting the attachment again? Basically, I have an edit component which contains the AjaxModalDialog containing the subcomponent with the Flexible Uploader The edit component edits the communication in general, and as part of that, the user can attach up to 5 files. These appear in an inline worepetition with a close button. Clicking close tells the attachment represented by that index to be set to null. e.g. click the close button for attachment1 sends communcation.setAttachment1(null) Are you ever actually deleting the Attachment? Wouldn't this leave one dangling? There are also links at the end of the repetition to add more attachments. Clicking one opens the AjaxModalDialog containing the subcomponent with the ERAttachmentFlexibleUploader. The first time you click Add File the dialog appears with the choose file button reflected as a shrunken version of my standard prettyButton . . . presumably it's shrunken because of something in the CSS. Once you choose a file, it's uploaded and it appears with a red x close button. Presumably also in the CSS. (I originally didn't set the choose button class and got a blue choose button which apparently didn't have a grey background, so the corners are a little weird. Hence I tried to use our button class) After you upload a file, and click my Attach button (which simply sets the attachmentItem into the first available spot for the communication's attachments -- e.g. communication().setAttachment1(attachmentItem). This appears to work. The dialog goes away and the attachment appears. If you click our close button for it, it disappears. Then if you click attach files again, the old attachment's filename appears, with a Clear link under it. I'd rather have it just open an empty one uploader with a default button instead of a clear link. Sorry I wasn't clearer earlier, Dave A was harassing me to go to lunch. I can't disappoint Dave. Hmm. The ERAttachmentFlexibleUpload/AjaxFlexibleFileUpload cache the filename as their default behaviour. My brain is farting right now and I cannot think of a simple way to get them to reset that value when the AMD opens. There is a binding that will bypass the showing of the uploaded file name and clear button: 'clearUploadProgressOnSuccess' - it defaults to false. However with this set, there will be no indication of what file you uploaded, the uploader will revert to a select button. You can look at ERAttachmentFlexibleEditor as an example of how to setup a view/upload/replace workflow with these components. You could possibly set that binding and have the success function of the uploader close the AjaxModalDialog. Have you looked at using ERAttachmentFlexibleEditor? It uploading adding *and* removing/replacing attachments. I was originally looking at using the editor, but they actively didn't want to see the uploaded file (dunno why) so I went back to the Flexible Uploader. I will look at the other things you mentioned, and hopefully that will explain things better for me ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Using Apache in Development
Hi all, In development am getting the dreaded The requested application was not found on this server. I have followed all of the instructions here on a new Snow Leopard machine: http://wiki.objectstyle.org/confluence/display/WO/Running+Through+Apache+-+Leopard+Client+10.5.5+-+Summary and http://wiki.objectstyle.org/confluence/display/WO/Programming__WebObjects-Web+Applications-Deployment-Mac+OS+X+Server As soon as I start wotaskd from the commandline, then I no longer get the error and my application loads correctly. Any ideas? Thanks, David ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Using Apache in Development
Le 2010-07-23 à 20:10, David Holt a écrit : Hi all, In development am getting the dreaded The requested application was not found on this server. I have followed all of the instructions here on a new Snow Leopard machine: http://wiki.objectstyle.org/confluence/display/WO/Running+Through+Apache+-+Leopard+Client+10.5.5+-+Summary and http://wiki.objectstyle.org/confluence/display/WO/Programming__WebObjects-Web+Applications-Deployment-Mac+OS+X+Server As soon as I start wotaskd from the commandline, then I no longer get the error and my application loads correctly. The problem is right there! If wotaskd is not available, the HTTP adaptor can't find available instances/applications... AFAIK, you don't need to run JavaMonitor, just wotaskd. ___ Do not post admin requests to the list. They will 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 Apache in Development
On 2010-07-23, at 5:15 PM, Pascal Robert wrote: Le 2010-07-23 à 20:10, David Holt a écrit : Hi all, In development am getting the dreaded The requested application was not found on this server. I have followed all of the instructions here on a new Snow Leopard machine: http://wiki.objectstyle.org/confluence/display/WO/Running+Through+Apache+-+Leopard+Client+10.5.5+-+Summary and http://wiki.objectstyle.org/confluence/display/WO/Programming__WebObjects-Web+Applications-Deployment-Mac+OS+X+Server As soon as I start wotaskd from the commandline, then I no longer get the error and my application loads correctly. The problem is right there! If wotaskd is not available, the HTTP adaptor can't find available instances/applications... AFAIK, you don't need to run JavaMonitor, just wotaskd. I know! :-) But I don't see why the launchdaemon is not making this available on startup. Thanks! David ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Using Apache in Development
On Jul 23, 2010, at 5:15 PM, Pascal Robert wrote: Le 2010-07-23 à 20:10, David Holt a écrit : Hi all, In development am getting the dreaded The requested application was not found on this server. I have followed all of the instructions here on a new Snow Leopard machine: http://wiki.objectstyle.org/confluence/display/WO/Running+Through+Apache+-+Leopard+Client+10.5.5+-+Summary and http://wiki.objectstyle.org/confluence/display/WO/Programming__WebObjects-Web+Applications-Deployment-Mac+OS+X+Server As soon as I start wotaskd from the commandline, then I no longer get the error and my application loads correctly. The problem is right there! If wotaskd is not available, the HTTP adaptor can't find available instances/applications... AFAIK, you don't need to run JavaMonitor, just wotaskd. I will guess that when launchd launches it, there is a permissions issue, probably on SiteConfig.xml. Here is mine: csaskatoon:~ chuck$ cat /Library/LaunchDaemons/com.apple.webobjects.wotaskd.plit?xml version=1.0 encoding=UTF-8? !DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd; plist version=1.0 dict keyDisabled/key false/ keyGroupName/key stringappserverusr/string keyLabel/key stringcom.apple.webobjects.wotaskd/string keyOnDemand/key false/ keyProgram/key string/System/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd/string keyProgramArguments/key array stringwotaskd/string string-WOPort/string string1085/string string-WOHost/string stringlocalhost/string /array keyServiceIPC/key false/ keyUserName/key stringappserver/string /dict /plist saskatoon:~ 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 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: Using Apache in Development
Le 2010-07-23 à 20:18, David Holt a écrit : On 2010-07-23, at 5:15 PM, Pascal Robert wrote: Le 2010-07-23 à 20:10, David Holt a écrit : Hi all, In development am getting the dreaded The requested application was not found on this server. I have followed all of the instructions here on a new Snow Leopard machine: http://wiki.objectstyle.org/confluence/display/WO/Running+Through+Apache+-+Leopard+Client+10.5.5+-+Summary and http://wiki.objectstyle.org/confluence/display/WO/Programming__WebObjects-Web+Applications-Deployment-Mac+OS+X+Server As soon as I start wotaskd from the commandline, then I no longer get the error and my application loads correctly. The problem is right there! If wotaskd is not available, the HTTP adaptor can't find available instances/applications... AFAIK, you don't need to run JavaMonitor, just wotaskd. I know! :-) But I don't see why the launchdaemon is not making this available on startup. Check /var/log/system.log for startup errors, but like Chuck said, it's probably a permissions problem. -- Pascal Robert prob...@macti.ca WOWODC 2010 : August 27th-29th, Montreal. wowodc.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: Inverse to-one relationships
On 23/07/2010, at 11:44 PM, Ramsey Gurley wrote: Nice trick Chuck (^_^) You are awesome! And it seems so simple now, I wonder why I didn't try it sooner. This appears to work in both directions for me. Are you using Wonder, Ramsey? If so, does it work automatically when you set the updateInverseRelationships property, or are you manually calling addObjectToBothSidesOfRelationshipWithKey()? This is the last tiny detail I wouldn't mind ironing out. I must have looked through 10 years of archived list messages and never found an answer to this one. You and me both! -- Paul. http://logicsquad.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: Solaris SPARC WO Adaptor
Compiling the Wonder adaptor sources with Sun Studio Webstack on Solaris 10 should work fine. I haven't tested it on sparc, but it works fine on x86. On 23/07/2010, at 5:32 PM, Josef Vanek wrote: Hi everyone, I'd need to setup a running WO environment for a client on a SPARC Solaris 10, with Apache 2.2. Would it happen someone has already a precompiled WO Adaptor for this platform please ? I saw some dicussions about compiling this adaptor is tricky, so if I could find one already built it would save me a lot of time. Thanks. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/qdolan%40gmail.com This email sent to qdo...@gmail.com -- Seeya...Q Quinton Dolan - qdo...@gmail.com Gold Coast, QLD, Australia (GMT+10) ___ Do not post admin requests to the list. They will 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 Apache in Development
Hey David! On 23/Jul/2010, at 5:22 PM, Pascal Robert wrote: Check /var/log/system.log for startup errors, but like Chuck said, it's probably a permissions problem. My approach is somewhat different Break it down into steps: - is Apache running: curl http://host - is the WOAdaptor loaded: http://host/cgi-bin/WebObjects/WOAdaptorInfo - which wotaskd's is the WOAdaptor talking to - they are listed on the WOAdaptorInfo page - which application instances are controlled by those wotaskd's - also listed on the WOAdaptorInfo page - does the WOAdaptor think that your app instances are dead? - dead time listed on the WOAdaptorInfo page You get the idea where I'm going with this! ;-) I should point out that you might find the updated WOAdaptor in wonder useful here because it's ability to log messages has been fixed/expanded. FYI, if it turns out that WOTaskd isn't launching your app, then these thoughts might help: http://wiki.objectstyle.org/confluence/display/WO/Debugging+wotaskd+and+JavaMonitor Good luck! M. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: OT: WO Wiki search less than helpful
On Thu, Jul 22, 2010 at 2:30 PM, David Holt programming...@mac.com wrote: Hi Joe, I've been really impressed with the updated confluence site itself. The search has become especially useful to me. I hope that the extension can match it, but if not, the confluence wiki itself is still only a click away. Well, for me it doesn't work in that putting an incomplete search yields no results. Yes, relative to that search bar you get live search completion, but the results from a sub-string are still blank: http://wiki.objectstyle.org/confluence/dosearchsite.action?queryString=ERModern Gets you nothing, and the dashboard search results with the above as well. And no, I don't think you put up your notes about ERModernLook. I am pretty sure I would have seen them. d On 22-Jul-10, at 2:04 PM, Joe Little wrote: I was trying out the new extension, and wanted to see what I last posted on ERModernLook (or if I ever did get around to adding my notes). I was lazy, and did a search for ERModern but came up blank. Only by searching full names like ERModernLook did results come up. This is relative to the search provided by Confluence. Is there a way that searches on substrings is supposed to work there? Considering WebObjects is the land of the VeryLongAndHardToRememberExactOrderingMethodNames, I thought perhaps this was something to bring up. Relying on google doesn't help much, as it doesn't always direct me to the real meat at the objectstyle wiki or even find things there. ___ Do not post admin requests to the list. They will 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
Ajax accordion menu examples
Does any one have any example code that they would be willing to share or point me to. I am having a hard time figuring out how to get it to work. Or if you have a good alternative that works well i would like too. Thanks ___ Do not post admin requests to the list. They will 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