'er.ajax.AjaxResponse' exists but is not a subclass of WOComponent.

2016-03-21 Thread Raymond NANEON
___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.

Maven not copying java resources into jar file

2016-03-21 Thread Hugi Thordarson
Hi all. I’ve begun the fun task of converting all my WO apps to maven (finally) but I’m encountering odd behaviour with resources. In my src/main/resources I have a couple of xml files that should end up in the final jar (as they do with a regular java maven build). If I run “mvn pakage” on my

Re: Maven not copying java resources into jar file

2016-03-21 Thread Hugi Thordarson
OK, turns out it was Eclipse that was copying the resources to the classes-folder… I should have known. But the question then still remains; how do I introduce the standard maven resources behaviour to my WO projects, i.e. make tem copy resources from src/main/resources into my jar file. Chee

“undelete”?

2016-03-21 Thread OC
Hello there, is there a trick to “undelete” an object in editing context? Before saveChanges, I go through ec.deletedObjects(), and in some very special cases, I might find that an object should NOT be deleted. Just like it has never been added to deletedObjects at all. I've tried to insertObj

Re: “undelete”?

2016-03-21 Thread Chuck Hill
As a first idea, you could make an EC subclass that was able to identify these ready only instances and not call super in deleteObject(). Chuck On 2016-03-21, 1:17 PM, "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of OC" wrote: >Hello there, > >is there a trick to

Re: “undelete”?

2016-03-21 Thread Klaus Berkling
> On Mar 21, 2016, at 1:17 PM, OC wrote: > > Hello there, > > is there a trick to “undelete” an object in editing context? > Does EOEditingContext.revert() do what you want? http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/index.html?com%252Fwebobjects%252Feocontrol%252FEOSortOrderi

Re: “undelete”?

2016-03-21 Thread Chuck Hill
Revert will revert all changes. Undo will revert a set of changes (the most recent group) but that won’t help unless the most recent group is only the delete action he does not want. On 2016-03-21, 1:23 PM, "webobjects-dev-bounces+chill=gevityinc@lists.apple.com on behalf of Klaus Ber

Re: “undelete”?

2016-03-21 Thread OC
Chuck, thanks! It looks like the cleanest possible solution indeed. Alas the drawback is that the change won't be located nicely to one place -- I would have to find all the places in code anyone makes an EC, and change its class. To be frank, I am not even sure which WebObjects/WOnder service

Re: “undelete”?

2016-03-21 Thread Chuck Hill
See Factory in ERXEC. That will cover all cases where you use ERXEC to create the editing context. On 2016-03-21, 1:38 PM, "OC" wrote: >Chuck, > >thanks! > >It looks like the cleanest possible solution indeed. Alas the drawback is that >the change won't be located nicely to one place -- I

Use of ERAttachment Package -- an Example usage

2016-03-21 Thread Kwasi O-Ahoofe
Does anyone have access to a ‘clear’ usage example for Package er.attachment [ ERAttachment, ERAttachmentProcessors, ERAttachmentViewer, etc] for Project Wonder WebObjects Applications? I’d like to utilize the ERAttachment package in place of WOImage type/related Document processing/attachments

Re: Maven not copying java resources into jar file

2016-03-21 Thread Lachlan Deck
Perhaps @see the list archives for the pom I’d sent to the list in 2012. —— Subject: Re: Maven From: Lachlan Deck In-Reply-To: <1fea37e9-8a7e-4c5d-836b-3c82faba6...@mac.com> Date: Sat, 21 Jan 2012 11:01:25 +1100 Message-Id: <64800f58-ca7f-4ed4-bbc1-f69f62cfd...@gmail.com> References: <1fea37e9-8a

Re: Maven not copying java resources into jar file

2016-03-21 Thread Hugi Thordarson
Hi Lachlan, Thanks, I found the pom you mentioned, but I don’t quite see which parts of it are relevant to my question? - hugi > On 21. mar. 2016, at 20:55, Lachlan Deck wrote: > > Perhaps @see the list archives for the pom I’d sent to the list in 2012. > > —— > Subject: Re: Maven > From: L

Re: Use of ERAttachment Package -- an Example usage

2016-03-21 Thread T Worman
Kwasi: Google lead me here: https://wiki.wocommunity.org/display/documentation/ERAttachment+Framework Also, you can subscribe to the WOCommunity podcast and get tons of good tutorials. http://www.wocommunity.org/podcasts/wopodcasts.xml Tim > On Mar 21, 2016, at 2:27 PM, Kwasi O-Ahoofe wrote

Re: Maven not copying java resources into jar file

2016-03-21 Thread Lachlan Deck
A couple of questions: - What’s your pom look like? - What commands are you running? The relevant section is the woman-lifecycle-plugin. Your src/main/resources is a standard path for maven; that’s not your problem. mvn clean package should create your jar in target/. cheers, Lachlan > On 22

RE: Performance issue

2016-03-21 Thread Gerald Jones
What is the purpose of the Synchronizer? What is it Synchronizing, and with what process? Why are the statements bunched together? Mahalo, Gerald From: Chuck Hill [mailto:ch...@gevityinc.com] Sent: Tuesday, March 15, 2016 7:51 AM To: Ken Anderson ; Gerald Jones Cc: webobjects-dev@list

Re: Performance issue

2016-03-21 Thread Chuck Hill
It attempts to synchronize changes to EOs across instances. The frequency of send/receive depends on the frequency of successful saveChanges() in the other instances. They don’t look very bunched to me. Some are in the same second but most are several seconds or minutes apart. I doubt this i

Re: Performance issue

2016-03-21 Thread Chuck Hill
If things are getting slowly. Progressively worse then my first two suspects would be: 1. Missing database performance indexes. Do no assume that EOF is adding all of the indexes that you need for good performance. It is not. It only indexes the PK and FK. IIRC it only indexes half of the PK