Can I use WOMultipartIterator API in WOComponent action methods?

2008-08-04 Thread Shravan Kumar. M
Hello Group, Can you advise me whether it is technically/ functionally correct using WOMultipartIterator API in WOComponent action methods? Looking forward to your response. -- Thank You Shravan Kumar. M effigent India Pvt., Ltd.,

Re: app won't launch

2008-08-04 Thread Joshua Paul
After some digging, I simply added "jvm=java" to my wobuild.properties file in ~/Library/ and all is working again. The error occurred after a recent update of WOLips. I've built an application using OS 10.5.4, Java 1.5.0_13, Eclipse 3.3.2, WOLips. Everything is fine in development. However,

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-04 Thread Jeff Schmitz
As I look closer at the exception trace, the problem seems to have something to do with the fetch traversing inverse relationships that are setup within the model. Notice the following part of the stack trace: at com.netbracketsfw.model._Pricing.pools(_Pricing.java:86) the prici

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-04 Thread Jeff Schmitz
Sure, here's how the thread is kicked off. updateResultsThread and updateResults are both functions in the Component class. public void updateResultsThread(final int winCmd) { t = new Thread("updateResults") { public void run() {

Re: History on WO query: Is there a special name for the design pattern describes EO itself?

2008-08-04 Thread Daniel Beatty
Greetings Chuck, LOL. I happen to have a copy of that issue of Queue (aka the last issue of Queue in paper print). I tend to agree with you, and of course I was reading it to glean a reference that would further contribute to my papers that I am writing. Naturally, it would seem fasc

Re: ERXEC question

2008-08-04 Thread Guido Neitzer
On 04.08.2008, at 15:57, Lachlan Deck wrote: extend ERXApplication extend ERXSession use ERXEC.newEditingContext() All true. But: Properties: er.extensions.ERXApplication.useEditingContextUnlocker=true er.extensions.ERXEC.defaultAutomaticLockUnlock=true er.extensions.ERXEC.useSharedEditingCo

app won't launch

2008-08-04 Thread Joshua Paul
I've built an application using OS 10.5.4, Java 1.5.0_13, Eclipse 3.3.2, WOLips. Everything is fine in development. However, after building the app, I am unable to launch it via CLI or Monitor. The frameworks are embedded on build. On launch, I get the following: Reading MacOSClassPath.t

Re: ERXEC question

2008-08-04 Thread Lachlan Deck
On 05/08/2008, at 9:40 AM, Gustavo Pizano wrote: Hello, I paste this lines on my properties file: extend ERXApplication extend ERXSession use ERXEC.newEditingContext() the other ones were there already Yep - just restating the normal steps for getting going. so now what should I do if I d

Re: ERXEC question

2008-08-04 Thread Lachlan Deck
On 05/08/2008, at 1:24 AM, Gustavo Pizano wrote: Well I have a component which was using the session defaultEditingContext, so what I did was that I create an instance variable in that component of ERXEC, then I replace the displayBoard = (DisplayBoard) EOUtilities .createAndInsertInstance

Re: ERXEC question

2008-08-04 Thread Guido Neitzer
On 04.08.2008, at 09:24, Gustavo Pizano wrote: Why that error came up?, what does it means the coalesce auto- locks, ? It means, it locks on the first access and let the automatic unlocker take care of unlocking it. You don't have that set to true in your properties. and third, did I

WebObjects WebServices Response

2008-08-04 Thread Chandrashekhar Tupe
Hi, It seems webobjects web-services application by default returns RPC encoded response. Is there any way we can set it to return "literal" and not encoded or some other style like DOCUMENT-LITERAL / WRAPPED-LITERAL. Regards, Chandrashekhar Tupe __

Re: History on WO query: Is there a special name for the design pattern describes EO itself?

2008-08-04 Thread Chuck Hill
On Aug 4, 2008, at 8:40 AM, Daniel Beatty wrote: Greetings Chuck, Mike, and all of the WOWO gang, Question for any one who can answer it. I can easily cite the MVC paradigm for WO (EO included) for a significant pattern in WO's development. Since EO (and Core Data) have unique model and

Re: Objects marked for delete fall into the updated objects bucket in processRecentChanges

2008-08-04 Thread arosenzweig
Hi Kieran, I tried this solution just now but I couldn't get it to work for me. I even trashed my entire build directory and tried it to no avail. I still see the same behavior namely: 1) deleted EO causes "validateForSave" exception in ec.saveChanges() The validation exception is still the sa

Re: History on WO query: Is there a special name for the design pattern describes EO itself?

2008-08-04 Thread John Huss
ORM (object relational modeling) Code Generation (sql and java) That's what I would say. John On Mon, Aug 4, 2008 at 10:40 AM, Daniel Beatty <[EMAIL PROTECTED]> wrote: > Greetings Chuck, Mike, and all of the WOWO gang, > Question for any one who can answer it. I can easily cite the MVC paradig

Re: Objects marked for delete fall into the updated objects bucket in processRecentChanges

2008-08-04 Thread Kieran Kelleher
Er .. On Aug 4, 2008, at 1:39 PM, [EMAIL PROTECTED] wrote: Hi Kieran, That is an interesting thought. To mark the relationship as "Mandatory" but yet leave the foreign key itself as optional ("allows null"). You would think the two would need to back each other up though, and to a c

Re: Objects marked for delete fall into the updated objects bucket in processRecentChanges

2008-08-04 Thread arosenzweig
Hi Kieran, That is an interesting thought. To mark the relationship as "Mandatory" but yet leave the foreign key itself as optional ("allows null"). You would think the two would need to back each other up though, and to a casual developer passing by and perusing your model he might think you

Re: Objects marked for delete fall into the updated objects bucket in processRecentChanges

2008-08-04 Thread Kieran Kelleher
If I have understood you correctly, then this is how I prevent this error for mandatory relationships: 1) Make the relationship foreigh key attribute "AllowNull" in the eomodel 2) Make them NOT NULL in the database (therby ensuring a record with NULL foreign key can never be saved or update

History on WO query: Is there a special name for the design pattern describes EO itself?

2008-08-04 Thread Daniel Beatty
Greetings Chuck, Mike, and all of the WOWO gang, Question for any one who can answer it. I can easily cite the MVC paradigm for WO (EO included) for a significant pattern in WO's development. Since EO (and Core Data) have unique model and engine underneath, it would be helpful to describe

ERXEC question

2008-08-04 Thread Gustavo Pizano
hello all. Well I have a component which was using the session defaultEditingContext, so what I did was that I create an instance variable in that component of ERXEC, then I replace the displayBoard = (DisplayBoard) EOUtilities.createAndInsertInstance(session().defaultEditingContext(), "

Objects marked for delete fall into the updated objects bucket in processRecentChanges

2008-08-04 Thread arosenzweig
Hello WOrriors, We're using WO 5.3.x (not 5.4.x) I've run into a pickle where if I do an ec.deleteObject() and then call ec.saveChanges() I find that this fails during a "validateFor*Save*". Curious, indeed, because it should only call "validateFor*Delete*". When asking the EC to delete the Ob

JUnit and Classpath

2008-08-04 Thread Frédéric JECKER
Hi list, I made a simple Junit test case in one of my framework, which only loads a model an tries to read an EO and writes another one. In the setUp method, I load the model, and updates its connexion dictionnary. The test keeps on failing on the EOUtilities.createAndInsertObject, stating th

Re: Copying An EO Values

2008-08-04 Thread David Avendasora
Ahg. I misstated how to call the duplicate() method. You don't actually call the "duplicate()" method I've defined below. You call the "copy()" method that is part of your EOGenericRecord subclass. That copy() method will in-turn call the duplicate method. The duplicate() method just defin

Deployment on Leopard Server using 5.4

2008-08-04 Thread Thierry Kramis
Hi all We're trying to deploy our new 5.4 application on our leopard server running 5.4. The application hangs after the following line: OpenBasePlugIn is loaded... Has anyone had the same? What I had a problem with is the eomodel file which for unknown reason wasn't included into the buil

Re: Copying An EO Values

2008-08-04 Thread David Avendasora
On Aug 4, 2008, at 9:23 AM, Gino Pacitti wrote: Hi David Could you perhaps send me a class that implements this... I am currently trying to use the same code but trying to debug too... :-( Hi Gino, The solution has a few parts, all of which work together so you end up with the least amou

Re: Copying An EO Values

2008-08-04 Thread David Avendasora
Gino, I have implemented the solution outlined in Practical WO into my project and I can say that it works phenomenally well. You have to write a method for each Entity that describes _exactly_ what you want to have happen when you ask for a copy, but once you do that it really is as easy

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-04 Thread Kieran Kelleher
This may be just a trivial coding sequence problem Jeff. Why not post your whole Runnable (or Callable) class so we can see what you are doing ? On Aug 4, 2008, at 12:01 AM, Jeff Schmitz wrote: Hello, Continuing on with trying to access EOs in a background thread, I'm trying to give