Re: didUpdate?

2012-07-29 Thread Theodore Petrosky
@Override public void willUpdate() { NSDictionary diffs = this.changesFromSnapshot(this.editingContext().committedSnapshotForObject(this)); NSLog.out.appendln( willUpdate() diffs + diffs); } the log shows the attributes that were updated AFTER the saveChanges() is

Fixed the WO 5.4.3 2GB file/form upload limitations

2012-07-29 Thread Helmut Tschemernjak
I enhanced JavaWebObjects to support uploads larger then 2GB via the existing upload form data streaming API. At present we don't use Wonder which means the changes apply to WO 5.4.3 deploying it standalone by including three updated classes in your app. We will investigate into Wonder but

Periodic Tasks in WO

2012-07-29 Thread Sisi Li
Dear all, I am currently implementing a REST task in WO that fetches content from a remote server. I just have a little routine running in Application on a scheduler. I was just wondering if there was a better way of running periodic tasks in wonder, and any advise from those who had similar

Re: didUpdate?

2012-07-29 Thread Theodore Petrosky
I found a solution but I want to know how bad it is? in my Session's awake, I am creating an EC and doing a fetch of all my Projects: EOEditingContext theComparisonEC = ERXEC.newEditingContext(); NSArrayProject compArray = Project.fetchAllProjects(theComparisonEC);

Re: didUpdate?

2012-07-29 Thread David Holt
You could use the AuditTrail and email the update entry to your users. David On 2012-07-29, at 7:28 AM, Theodore Petrosky tedp...@yahoo.com wrote: I found a solution but I want to know how bad it is? in my Session's awake, I am creating an EC and doing a fetch of all my Projects:

Re: didUpdate?

2012-07-29 Thread George Domurot
For me, I'd say you're going at this the wrong way within the Session.. Keep the session clean. Check out Paul Yu's recommendation re: ERXGenericRecord and ERXEnterpriseObject. And, write a controller to manage the object you're editing, do your work, and let it provide you with the

Re: didUpdate?

2012-07-29 Thread Vinny Luc
Hi Ted, I 've done similar thing in my app where i captured data changes/updates over to a third-party vendor. The main flow is you save off the updated data on EditingContextWillSaveChanges event notification and do your DIFF on EditingContextDidSaveChanges event. -Vinny Message: 2 Date:

Re: didUpdate?

2012-07-29 Thread Johann Werner
Don't make it so complicated. Out of my head it should be something like that in your willUpdate method: String key = theKeyIWantToTrack; Object beforeValue = committedSnapshotValueForKey(key); Object afterValue = valueForKey(key); jw Am 29.07.2012 um 16:28 schrieb Theodore Petrosky: I

Re: Periodic Tasks in WO

2012-07-29 Thread Pascal Robert
Have a look at ERQuartzScheduler and the recording from WOWODC 2011 (http://www.wocommunity.org/podcasts/wowodc/2011/COScheduler.mov) for COScheduler (COScheduler was the name of the project before it was donated to Wonder). Dear all, I am currently implementing a REST task in WO that

Re: Periodic Tasks in WO

2012-07-29 Thread Amedeo Mantica
You may also just create a simple Thread (runnable) Amedeo Sent from my iPhone On 29/lug/2012, at 18:04, Pascal Robert prob...@macti.ca wrote: Have a look at ERQuartzScheduler and the recording from WOWODC 2011 (http://www.wocommunity.org/podcasts/wowodc/2011/COScheduler.mov) for

Re: Fixed the WO 5.4.3 2GB file/form upload limitations

2012-07-29 Thread Jesse Tayler
Nice work! I was not aware anyone was working on this. Can you explain a little about what you found, did and so forth just so we're aware of what went down? thanks, and thanks! jess On Jul 29, 2012, at 7:04 AM, Helmut Tschemernjak hel...@helios.de wrote: I enhanced JavaWebObjects to

Re: didUpdate?

2012-07-29 Thread Ramsey Gurley
I agree with David, You can do this based off of didInsert in the ERCore audit trail entry. The audit trail entry will already have all your before and after values, and didInsert will only be fired after a successful save. It seems the only thing lacking is a didInsert method that posts a

ERAttachment, Images the Apache Last-Modified header

2012-07-29 Thread Kevin Hinkson
Hi, When using ERAttachment to deliver images, should the Last Modified header be sent without any special configuration? I cannot figure out why the header is not being set. Does anyone know where this should be done/configured? My setup: apache on one machine, app on another which serves the

Re: Fixed the WO 5.4.3 2GB file/form upload limitations

2012-07-29 Thread Helmut Tschemernjak
Hi Jesse, I believe my original posting explained what was done. I wrote some years ago a little java based web server (experimental only) and I have some knowledge about networking IO and protocols. After learning at WOWODC that we need to fix/enhance WebObjects on our own, I spend some

Hello World crashing in Eclipse 4.2

2012-07-29 Thread David Holt
Jul 29 13:15:39 Test1[54687] WARN NSLog - A fatal exception occurred: No versionString() method in NSBundle found. This means your class path is incorrect. Adjust it so that ERJars comes before JavaFoundation. [2012-7-29 13:15:39 PDT] main java.lang.RuntimeException: No versionString()

Re: Periodic Tasks in WO

2012-07-29 Thread Ray Kiddy
On Jul 29, 2012, at 9:33 AM, Amedeo Mantica wrote: You may also just create a simple Thread (runnable) Amedeo I have done the just create a thread method for something and it worked. But we had the application scheduled in JavaMonitor to stop and re-start itself once a day and putting

Re: Hello World crashing in Eclipse 4.2

2012-07-29 Thread Paul Yu
David I didn't know the WO/WOLips worked with Eclipse 4.2 already. Did Quinton release an update? Paul On Jul 29, 2012, at 4:17 PM, David Holt wrote: Jul 29 13:15:39 Test1[54687] WARN NSLog - A fatal exception occurred: No versionString() method in NSBundle found. This means your class

Re: didUpdate?

2012-07-29 Thread Theodore Petrosky
Ramsey, I went over your HelloD2W example and implemented the ERCoreBusiness stuff. your example of adding coreUserPreferences (at 59:45) was just perfect. is there any example of the audit trails? I am trying other ways to implement my emailing issue. Ted --- On Sun, 7/29/12, Ramsey Gurley

Re: didUpdate?

2012-07-29 Thread Theodore Petrosky
Johann, I just implemented ERCoreBusinessLogic to allow me to save user preferences. It was included at time marker 59:45 in Ramsey Gurley's HellowD2W presentation. I would like to include the Audit trail also so I am looking for an example. BTW, here is the URL to my test instance:

Fwd: [Wonder-disc] sample code of ERCAuditTrail

2012-07-29 Thread Ramsey Gurley
If you already have user preference working, then all you need is step 7.Begin forwarded message:From: Dieter Stollorcz die...@media-ecom.netSubject: Re: [Wonder-disc] sample code of ERCAuditTrailDate: June 29, 2012 4:31:35 AM MSTTo: Duc Thanh Nguyen ngducthanh2...@yahoo.comCc: wonder Project

Re: Hello World crashing in Eclipse 4.2

2012-07-29 Thread Q
Not officially.. but I pushed up some initial changes I was working on to github, and pascal is building them on the wocommunity jenkins build server. So if you're feeling adventurous.. On 30/07/2012, at 7:55 AM, Paul Yu p...@mac.com wrote: David I didn't know the WO/WOLips worked with

Re: Fwd: [Wonder-disc] sample code of ERCAuditTrail

2012-07-29 Thread Theodore Petrosky
So if I want to track another EO I need to set up that object as an actor and add the ERXAuditKeys? Or am I missing something. I did have a problem with the table ERCAuditTrail it created a column is_deleted as a integer column but it needs to be a boolean. I fixed it manually. Ted --- On

ERD2W menus not working properly

2012-07-29 Thread Sr. Ângelo Andrade Cirino
I have been trying with little success to design a rather complex (at least for me as it is my first D2W project) application using D2W and ERModernLook. I am able to create a list page and inspect or edit an entity with all the formatting and restrictions on the attributes and relationships as

Re: didUpdate?

2012-07-29 Thread Johann Werner
Hi Ted, that's because your CSS styling for that first row is different. I see .ProjectDescriptionAttrVal { padding: 10px 10px 10px 235px; } where the other rows have .AttrVal { padding: 10px 10px 10px 220px; } jw Am 30.07.2012 um 01:57 schrieb Theodore Petrosky: Johann, I just