Re: takeValuesFromForm Validation

2007-08-01 Thread Peter Vandoros
Hi Owen, In your validationFailedWithException() method, add this: public void validationFailedWithException(java.lang.Throwable exception, java.lang.Object value, java.lang.String keyPath) { // add to array of error messages // try to force the value try { // value = the Object para

Re: Concurrency question

2007-08-01 Thread Miguel Arroz
Hi! The contexts are locked. The problem is that it's not the same context - it's a different context per thread, with local copies of the same objects. Synchronizing solves the sample problem, but as my real problem is much more complex than this example, it starts to get a little...

Perform changes from object store

2007-08-01 Thread Miguel Arroz
Hi! Related to my previous question: is there a way to force the processing/merging of changes from the object store? Waiting for the end of the R-R cicle is not enough, and the processRecentChanges method doesn't do it. reaultAllObjects seems to be working, but I don't trust it enough,

Re: Perform changes from object store

2007-08-01 Thread Chuck Hill
On Aug 1, 2007, at 8:47 AM, Miguel Arroz wrote: Hi! Related to my previous question: is there a way to force the processing/merging of changes from the object store? ec.unlock(); ec.lock(); Assuming you have only locked it once. Chuck Waiting for the end of the R-R cicle is not enoug

Re: Concurrency question

2007-08-01 Thread Chuck Hill
HI Miguel, You sure do know how to have fun with WO! On Jul 31, 2007, at 4:41 PM, Miguel Arroz wrote: Hi! I'm trying to understand what's the best way to do something here. Imagine that I need to get a object from the database, modify some attribute based on itself and save it again.

Re: Concurrency question

2007-08-01 Thread Chuck Hill
On Aug 1, 2007, at 5:00 AM, Miguel Arroz wrote: Hi! The contexts are locked. The problem is that it's not the same context - it's a different context per thread, with local copies of the same objects. Synchronizing solves the sample problem, but as my real problem is much more comp

Re: Perform changes from object store

2007-08-01 Thread Chuck Hill
On Aug 1, 2007, at 10:12 AM, Miguel Arroz wrote: Hi! On 2007/08/01, at 17:02, Chuck Hill wrote: On Aug 1, 2007, at 8:47 AM, Miguel Arroz wrote: Hi! Related to my previous question: is there a way to force the processing/merging of changes from the object store? ec.unlock(); ec.lock

Re: excludeObjectFromPropertyWithKey weird error

2007-08-01 Thread Chuck Hill
On Jul 31, 2007, at 6:51 PM, Lachlan Deck wrote: On 31/07/2007, at 2:42 AM, Chuck Hill wrote: On Jul 29, 2007, at 8:35 PM, Lachlan Deck wrote: On 28/07/2007, at 1:04 AM, Chuck Hill wrote: No. Has your model changed and the Java not been regenerated? Good suggestion double checking..

Re: Perform changes from object store

2007-08-01 Thread Miguel Arroz
Hi! On 2007/08/01, at 17:02, Chuck Hill wrote: On Aug 1, 2007, at 8:47 AM, Miguel Arroz wrote: Hi! Related to my previous question: is there a way to force the processing/merging of changes from the object store? ec.unlock(); ec.lock(); Isn't that dangerous? Yours Miguel Arroz

Re: takeValuesFromForm Validation

2007-08-01 Thread Chuck Hill
On Jul 31, 2007, at 8:36 PM, Lachlan Deck wrote: That's something I'm working on at the moment actually... something like... public String validateRqfJustification(String newState) throws NSValidation.ValidationException { if ( newState != null ) { if (newState.le

Re: Concurrency question

2007-08-01 Thread Miguel Arroz
Hi! On 2007/08/01, at 18:14, Chuck Hill wrote: You sure do know how to have fun with WO! My software development cycle is a really weird thing. I'm a very pessimistic guy, and I always assume everything will screw up. So I start to think on all the ramifications I can get. When concurre

Re: Perform changes from object store

2007-08-01 Thread Miguel Arroz
Hi! On 2007/08/01, at 18:22, Chuck Hill wrote: No, why would it be dangerous. The thread won't return from ec.lock () until the EC is locked again. While it is blocked, it is not doing anything else that might affect the EC. Yeah, it's safe from an EC point of view. I must think if it's

Re: takeValuesFromForm Validation

2007-08-01 Thread Chuck Hill
On Jul 31, 2007, at 7:18 PM, Owen McKerrow wrote: Hi All, I have an attribute in an entity that has a width of 1500 char. I have over ridden the validate method for it inside the entities java class. public String validateRqfJustification(String newState) throws NSValidation.Valid

No database connection

2007-08-01 Thread Daniel Brajkovic
This is killing me and it's holding up my entire project. I have written a simple WO app and it works fine when i build and run it. But I want it to wo works with JavaServer Pages and so I am deploying it in a servlet. A simple Hello World app works fine. But as soon as I try to access a db

Re: Concurrency question

2007-08-01 Thread Kieran Kelleher
Turn it off! See attached! Miguel Arroz wrote: btw, apple, you *could* do that popping up a little less stressful! <> ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)

Re: No database connection

2007-08-01 Thread Chuck Hill
It is probably a classpath problem: lack of JDBC driver or lack of EOF plugin. Try adding the attached class and see if it tells you anything useful. Chuck EOFJDBCConnectionAnalyzer.java Description: Binary data On Aug 1, 2007, at 11:28 AM, Daniel Brajkovic wrote: This is killing me

EMMA Testing

2007-08-01 Thread Dov Rosenberg
Has anyone done any EMMA ( http://emma.sourceforge.net/ ) source code coverage integration with WebObjects based applications and frameworks? -- Dov Rosenberg Inquira Knowledge Management Experts http://www.inquira.com ___ Do not post admin requests

Re: No database connection

2007-08-01 Thread Daniel Brajkovic
Figured it out. Had to comment out a section in the web.xml file. It works now. Thanks. On Aug 1, 2007, at 1:42 PM, Chuck Hill wrote: It is probably a classpath problem: lack of JDBC driver or lack of EOF plugin. Try adding the attached class and see if it tells you anything useful. C

Re: No database connection

2007-08-01 Thread Chuck Hill
Can you post what was wrong so that others can benefit from it in the future? Thanks Chuck On Aug 1, 2007, at 1:34 PM, Daniel Brajkovic wrote: Figured it out. Had to comment out a section in the web.xml file. It works now. Thanks. On Aug 1, 2007, at 1:42 PM, Chuck Hill wrote: It is p

Re: No database connection

2007-08-01 Thread Daniel Brajkovic
Sure, sorry about that. After one builds his application and creates his .jsp file per Apple's docs, one of the products in the Servlet Resources->WEB-INF folder will be a doc called web.xml. In it you will find the following: The data source to be used by EOF. If there are multip

Re: Concurrency question

2007-08-01 Thread Pierre Bernard
You can simulate OL, by listening to merge notifications. If it affects a modified object you can later on refuse to save. Pierre On Aug 1, 2007, at 7:18 PM, Chuck Hill wrote: On Aug 1, 2007, at 5:00 AM, Miguel Arroz wrote: Hi! The contexts are locked. The problem is that it's not the

WOFileUpload + Safari 3 Beta

2007-08-01 Thread Clark Mueller
Hi there, Is anyone else experiencing problems with the Safari 3.0.2/3.0.3 beta and WOFileUpload? I have the following in my wod file (fileData is an NSData object and filePath is a String): "$uploadFile" /> When the user clicks on the submit button, Saf

Re: WOFileUpload + Safari 3 Beta

2007-08-01 Thread Clark Mueller
I should also mention... my enctype is set to "multipart/form-data", and I get a stack trace that says: [2007-08-01 19:59:46 MDT] : Exception occurred while handling request: java.lang.IllegalStateException: No form data left for WOFileUpload! Clark

Re: Concurrency question

2007-08-01 Thread Chuck Hill
The problem comes in when the modifications are made and saved after your editing context has been locked in the RR loop. I tricked ;-) Mike into looking at this today with. Looks like tigers lurk here. Maybe Mike will comment. Chuck On Aug 1, 2007, at 2:34 PM, Pierre Bernard wrote: