Re: Nested Editing Contexts

2007-05-30 Thread Jean Pierre Malrieu
A) Clearly document the issue from the outset of the product. Without an active third party community that enlightened these issues, I feel sure I would have never been aware of them, and probably would have switched development platforms in frustration by now. Cough. Cough. http://develope

Re: D2W and Direct Actions

2007-05-30 Thread Denis Frolov
On May 30, 2007, at 5:55 PM, Guido Neitzer wrote: On 29.05.2007, at 22:05, Lachlan Deck wrote: Naturally I can subclass and provide a defaultPage(WOContext) but I'm wondering how much of the D2W components/framework require a session to work? All of them. There is no D2W without a session

Re: Nested Editing Contexts

2007-05-30 Thread Mike Schrag
While not fully addressing this issue, Wonder actually does have a cool feature where it computes hash codes for items in a WORepetition and modifies the element id to include this hash, which allows structural ... you have to turn this on, btw -- See the javadoc on ERXWORepetition (http://

Re: Nested Editing Contexts

2007-05-30 Thread Mike Schrag
Why can't some sort of architectural "checksum" be calculated on the nodes of the template object graph as the template is first built in the appendToResponse, stored in the WOContext for that page and compared against any subsequent rebuilding of the template, throwing an exception with a

Re: Nested Editing Contexts

2007-05-30 Thread Jerry W. Walker
Hi, Mike, et al, On May 30, 2007, at 6:49 PM, Mike Schrag wrote: I've seen that document as well, but I noticed the date on it was the latter half of 2005. I read all of the documentation Apple had regarding WebObjects back in 2000, and I even managed to get my hands on the training manua

Re: Linux

2007-05-30 Thread Julius Spencer
Hi, I just got this going a few days ago for the first time - using ubuntu too (which I'd only loaded on for the first time a few weeks ago - and is my first debian-esque linux install). Anywho, the way I went about it was to: 0. Install Java (I installed jdk 1.5 aka 5) 1. Install Eclipse

Re: Nested Editing Contexts

2007-05-30 Thread Chuck Hill
It is indirect. Access to all EO values is via storedValueForKey. This then eventually calls willReadRelationship, but willRead is called first. Same for willChange(). EOCustomObject subclasses might be different. Does anyone still use them? Chuck On May 30, 2007, at 3:41 PM, Mike S

Re: Nested Editing Contexts

2007-05-30 Thread Mike Schrag
I've seen that document as well, but I noticed the date on it was the latter half of 2005. I read all of the documentation Apple had regarding WebObjects back in 2000, and I even managed to get my hands on the training manuals for the courses they used to offer on WebObjects, and I don't e

Re: Nested Editing Contexts

2007-05-30 Thread Mike Schrag
I THINK willReadRelationship is probably the same? Looks like I'm wrong on this one -- it doesn't appear to ... ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Un

Re: Nested Editing Contexts

2007-05-30 Thread Steven Mark McCraw
Cough. Cough. http://developer.apple.com/documentation/WebObjects/ Enterprise_Objects/EnterpriseObjects/chapter_3_section_13.html#// apple_ref/doc/uid/TP30001011-DontLinkChapterID_8-TPXREF146 And I quote, "Note that immediately after the enterprise object is created, it is inserted into a

Re: Nested Editing Contexts

2007-05-30 Thread Mike Schrag
willChange calls willRead (i just happened to check this) ... I THINK willReadRelationship is probably the same? Not sure about that offhand. On May 30, 2007, at 6:32 PM, Lachlan Deck wrote: On 31/05/2007, at 8:15 AM, Chuck Hill wrote: On May 30, 2007, at 12:57 PM, Steven Mark McCraw wrote

Re: Nested Editing Contexts

2007-05-30 Thread Lachlan Deck
On 31/05/2007, at 8:15 AM, Chuck Hill wrote: On May 30, 2007, at 12:57 PM, Steven Mark McCraw wrote: B) Programmatically constrain programmers to follow those rules. Since changing the state of an object is so catastrophic if the object is not in the pool that enables it to be tracked, why

Re: Nested Editing Contexts

2007-05-30 Thread Chuck Hill
On May 30, 2007, at 12:57 PM, Steven Mark McCraw wrote: I definitely don't want to strike up a semantic argument on a list, but just to clarify: I think it's weak due to documentation and implementation. I can fully appreciate the complexity of the problem set EOF is solving. Tracking s

Re: [ANN] WebObjects 5.3.3 on FreeBSD 6.x deployment guide

2007-05-30 Thread Q
Updating the hack is simple enough, assuming the disk image type remains the same. If future updates continue to contain a complete runtime, as seems to be the trend, then maintenance is extremely simple. Even so, it would not be difficult to have the port require a couple of these file bundles an

AW: InsertObject

2007-05-30 Thread Weide, Björn
Hi, You could use EOUtilities.createAndInsertInstance to create the objects and insert them immediatly in the EDC. Note that you should never modify objects that are not inserted in an EDC, so you should always insert them as soon as possible. Ciao, Bjoern -Ursprüngliche Nachricht- Von:

Re: Nested Editing Contexts

2007-05-30 Thread Mark Morris
Although I do agree the defaultEditingContext is not the best way to go, I didn't have problems with it, and I used it for years. However, I had navigation methods in my superclass that would (by default) either abort the navigation if there were unsaved changes, or simply revert (assuming

Re: Nested Editing Contexts

2007-05-30 Thread Guido Neitzer
On 30.05.2007, at 13:03, Steven Mark McCraw wrote: You have stumbled upon what I believe to be one of the biggest weaknesses in EOF, and the solutions are (again, in my opinion) terrible. Hmmm. Interesting opinion. I always see the concept of "sandboxes" (editingContexts) as one of the bi

Re: Nested Editing Contexts

2007-05-30 Thread Steven Mark McCraw
I definitely don't want to strike up a semantic argument on a list, but just to clarify: I think it's weak due to documentation and implementation. I can fully appreciate the complexity of the problem set EOF is solving. Tracking state is a bear, and I can appreciate the necessity of hav

Re: Nested Editing Contexts

2007-05-30 Thread Guido Neitzer
On 30.05.2007, at 12:41, Ted Archibald wrote: Originally in my program I was using the defaultEC to create and insert new objects, but then started to notice I had alot of null objects in my DB. Users are creating an object, then doing nothing with it, then it is committed to the DB when th

Re: Nested Editing Contexts

2007-05-30 Thread Mike Schrag
You have stumbled upon what I believe to be one of the biggest weaknesses in EOF, and the solutions are (again, in my opinion) terrible. I don't really see this as a big weakness of EOF ... It has to be able to track changes, and without an editing context, it's not in a "transaction", and

Re: Nested Editing Contexts

2007-05-30 Thread Steven Mark McCraw
Hi Ted, You have stumbled upon what I believe to be one of the biggest weaknesses in EOF, and the solutions are (again, in my opinion) terrible. As you've noticed, if you insert things into an editing context as they are created, you end up with a bunch of uninitialized objects in the da

Re: Nested Editing Contexts

2007-05-30 Thread Chuck Hill
On May 30, 2007, at 11:41 AM, Ted Archibald wrote: Originally in my program I was using the defaultEC to create and insert new objects, but then started to notice I had alot of null objects in my DB. Users are creating an object, then doing nothing with it, then it is committed to the DB w

Nested Editing Contexts

2007-05-30 Thread Ted Archibald
Originally in my program I was using the defaultEC to create and insert new objects, but then started to notice I had alot of null objects in my DB. Users are creating an object, then doing nothing with it, then it is committed to the DB when the defaultEC is saved at some later point. Is this wh

Re: InsertObject

2007-05-30 Thread Steven Mark McCraw
I personally stay away from using nested editing contexts, because I have been lost days of development a couple of times now by the state of the database context being mangled inexplicably when using a nested editing context. However, the exact same code works fine whenever I use a peer e

Re: Linux

2007-05-30 Thread Joe Little
On 5/30/07, Mike Schrag <[EMAIL PROTECTED]> wrote: I think he's actually talking about the (partial, i think) implementation of eogen in Java that's in WOLips ... It never really got much love, but these things have a way of working themselves out. ms Sort of. I recall from the tutorials that

Re: [ANN] WebObjects 5.3.3 on FreeBSD 6.x deployment guide

2007-05-30 Thread Joe Little
On 5/29/07, Q <[EMAIL PROTECTED]> wrote: On 30/05/2007, at 1:16 PM, Joe Little wrote: > Wow.. how did you figure out that DMG extract trick? I used my unix fu, and hexdump. ;) The hack is totally version specific, the size and offset would need to be updated for each new DMG file. Normally you

Re: Linux

2007-05-30 Thread .::welemski::.
Does anyone knows a good instruction website on how to be able to develop Webobjects under Linux especially ubuntu?. On 5/31/07, Mike Schrag <[EMAIL PROTECTED]> wrote: I think he's actually talking about the (partial, i think) implementation of eogen in Java that's in WOLips ... It never really

Re: Linux

2007-05-30 Thread Mike Schrag
I think he's actually talking about the (partial, i think) implementation of eogen in Java that's in WOLips ... It never really got much love, but these things have a way of working themselves out. ms On May 30, 2007, at 11:44 AM, Chuck Hill wrote: A "mythical" pure Java replacement. "Wai

Re: InsertObject

2007-05-30 Thread Guido Neitzer
On 30.05.2007, at 09:49, Mark Morris wrote: I might have missed something, but for his case I'm not sure he needs anything more than the default editing context, and since he's new to some of the concepts, that might be easier. This is never really easier because it is s simple to screw

Re: InsertObject

2007-05-30 Thread Mark Morris
I might have missed something, but for his case I'm not sure he needs anything more than the default editing context, and since he's new to some of the concepts, that might be easier. Frederic, I usually just use the EOUtilities.createAndInsertInstance method to take care of both creation a

Re: Linux

2007-05-30 Thread Chuck Hill
A "mythical" pure Java replacement. "Wait for it..." On May 30, 2007, at 7:57 AM, John Huss wrote: I know EOGenerator, but what is JavaEOGenerator? John it should be possible using JavaEOGenerator, Eclipse, WOLips, WOProject, Ant, etc. ___ Do

Re: Linux

2007-05-30 Thread John Huss
I know EOGenerator, but what is JavaEOGenerator? John it should be possible using JavaEOGenerator, Eclipse, WOLips, WOProject, Ant, etc. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-de

Re: D2W and Direct Actions

2007-05-30 Thread Guido Neitzer
On 29.05.2007, at 22:05, Lachlan Deck wrote: Naturally I can subclass and provide a defaultPage(WOContext) but I'm wondering how much of the D2W components/framework require a session to work? All of them. There is no D2W without a session. So, D2W is a good choice for anything where the

Re: InsertObject

2007-05-30 Thread Jerry W. Walker
Hi, Frederic, I agree with all who are recommending "the WO way" of inserting your EOs into an editing context as soon as it's created. However, this can seem a bit daunting if you haven't been using peer or child editing contexts before, given the number of messages on the list about not

Re: InsertObject

2007-05-30 Thread Ken Anderson
As Alan pointed out, you could revert the editing context. Other options are to just dispose that EC, or use the undo manager to undo any changes. Trust us - this is the right approach. Ken On May 30, 2007, at 7:36 AM, Alan Ward wrote: Don't fight it (you'll lose). Create an editingCon

Re: InsertObject

2007-05-30 Thread Alexander Spohr
Am 30.05.2007 um 13:20 schrieb Frederic JECKER: Hi, In my case, I can't insert objects in the editing context at their creation but only at the end of the transaction because the user can cancel his action at any time. That is why we use EditingContexts create EdCon new & insert new

Re: InsertObject

2007-05-30 Thread David LeBer
On 30-May-07, at 7:20 AM, Frederic JECKER wrote: Hi, In my case, I can't insert objects in the editing context at their creation but only at the end of the transaction because the user can cancel his action at any time. Doing as decribed works (I do it myself) but if I do so, I will need

Re: InsertObject

2007-05-30 Thread Alan Ward
Don't fight it (you'll lose). Create an editingContext for each user, put the objects into that editingContext as soon as you create them, revert the editingContext if you decide not to save their changes. Alan On May 30, 2007, at 5:20 AM, Frederic JECKER wrote: Hi, In my case, I can't

Re: D2W and Direct Actions

2007-05-30 Thread Anjo Krank
Am 30.05.2007 um 06:05 schrieb Lachlan Deck: Does anyone know which of the D2W components (whether from Apple or ProjectWonder) are session-less friendly? None. The factory wants a session with every page and even if it didn't, it's really not worth the bother. It's only mem, after all. C

Re: InsertObject

2007-05-30 Thread Frederic JECKER
Hi, In my case, I can't insert objects in the editing context at their creation but only at the end of the transaction because the user can cancel his action at any time. Doing as decribed works (I do it myself) but if I do so, I will need to call at editingContext.revert() to prevent unwanted

Re: InsertObject

2007-05-30 Thread Ken Anderson
Frederic, I'm not sure what you mean by over-complicated. Whenever you create an EO, you need to insert it into the editing context - you should do this immediately when the object is created. You can then perform a save changes at any time, and it will serialize all outstanding changes

Re: InsertObject

2007-05-30 Thread Alexander Spohr
EOUtilities.createAndInsertInstance(anEditingContext, entityName) Am 30.05.2007 um 10:59 schrieb Frederic JECKER: Moin list, Could someone answer the following question? : I have two objects A and B, each extending EOGenericRecord. Object A has a field of type B. Now, when I create a new Obj

InsertObject

2007-05-30 Thread Frederic JECKER
Moin list, Could someone answer the following question? : I have two objects A and B, each extending EOGenericRecord. Object A has a field of type B. Now, when I create a new Object A which embeds a new object B, before performing an EditingContext.saveChanges I must insert each object separat