Re: best practices when deleting

2006-04-11 Thread Anjo Krank
Am 11.04.2006 um 23:46 schrieb Chuck Hill: tdp.setTblDonorPhoneId(new Integer(2)); If TblDonorPhoneId is the actual PK then this is the problem. Remove the diamond icon in EOModeler and remove that code. Cheers, Anjo ___ Do not post admi

Re: Help with Qualifier and NSKeyValueCoding.NullValue

2006-04-11 Thread Kieran Kelleher
Thanks Chuck ah sure you're a genius! You are exactly right. I, with the help of the "working-better-than-ever-in-xcode-2.2.1" CodeSense add endQualifiersArray instead of endQualifiers to my final EOAndQualifier. I noticed that log statement was not right with the comma, but I was as b

Elements and Components Window in WOBuilder

2006-04-11 Thread Lawrence Kendall
I was looking at the "Elements and Components" window in WOBuilder and noticed that at the top it says "Favorites" and I was wondering if anyone was able to add their own custom classes to the list? I know you can just Custom and enter the name etc but it would be nice to specify them there

Fwd: java documentation and xcode

2006-04-11 Thread Jerry W. Walker
Here's the most recent message of a short thread on Apple's Java-dev mailing list that you who drink the Xcode Kool-Aid may find interesting and/or helpful. Regards, Jerry Begin forwarded message: From: Christian <[EMAIL PROTECTED]> Date: April 11, 2006 6:02:55 PM EDT To: Andrea "XFox" Gov

Re: best practices when deleting

2006-04-11 Thread Robert Walker
Stylistically, TblDonorPhone and TblDonor are freaking ugly names.  There are no Windows untyped resource handles here that need to be hacked around with naming conventions.  DonorPhone and Donor would be the customary names in WO.Or in some case prepending entity names with two capital letters as

Re: Help with Qualifier and NSKeyValueCoding.NullValue

2006-04-11 Thread Chuck Hill
I think that Francis gets the prize here. This looks very wrong: ... and ((endDate = null), (endDate >= (com.webobjects.foundation.NSTimestamp)'2006-04-11 16:36:06 Etc/ GMT')) and ... That , should not be there after (endDate = null). In a properly formed qualifier it would be AND or OR.

Re: best practices when deleting

2006-04-11 Thread Chuck Hill
To expand on Ken's answer: On Apr 11, 2006, at 2:16 PM, WebObjects wrote: Chuck (and many regarded others), First, the error: [2006-04-11 13:57:20 PDT] com.webobjects.eoaccess.EOGeneralAdaptorException: deleteRowDescribedByQualifierEntity -- com.webobjects.jdbcadaptor.JDBCChannel: meth

Re: best practices when deleting

2006-04-11 Thread Robert Walker
One definite problem I see here is that you are manipulating the object before inserting it into the editing context. The purpose of the EOEditingContext is to track changes. It can't do that if the object is not inserted. Small correction: One responsibility of the EOEditingContext is t

Re: best practices when deleting

2006-04-11 Thread Robert Walker
Bill,One definite problem I see here is that you are manipulating the object before inserting it into the editing context.  The purpose of the EOEditingContext is to track changes.  It can't do that if the object is not inserted.        TblDonor newDonor = new TblDonor();        ec2.insertObject(ne

Re: best practices when deleting

2006-04-11 Thread Ken Anderson
Bill,You're not inserting the TblDonorPhone objects into the editing context.  You need to do that.Also, you should insert objects into the EC immediately after you instantiate them.Lastly, if TblDonorPhone has a relationship back to TblDonor, you should probably do:newDonor.addObjectToBothSidesOfR

Re: best practices when deleting

2006-04-11 Thread WebObjects
Title: Re: best practices when deleting Chuck (and many regarded others), First, the error: [2006-04-11 13:57:20 PDT] com.webobjects.eoaccess.EOGeneralAdaptorException: deleteRowDescribedByQualifierEntity -- com.webobjects.jdbcadaptor.JDBCChannel: method failed to delete row in database a

Re: Help with Qualifier and NSKeyValueCoding.NullValue

2006-04-11 Thread Kieran Kelleher
I just did a simple test and on its own this qualifier works as shown coded below!! It does not make sense why adding this qualifer into a larger qualifier, which works without this one, would cause this problem Maybe its a bug but usually I find it's me is the problem .. I'll tr

Re: Help with Qualifier and NSKeyValueCoding.NullValue

2006-04-11 Thread Francis Labrie
Hi, Le 11 avr. 2006, à 15:08, Kieran Kelleher a écrit : When I include this qualifier in a qualifier constructed of other qualifiers ANDed and ORed, I get the stack trace shown below. If I leave it out of the qualifier construct, I have no problems. Any idea why this is wrong? endDate i

Re: Error Message:

2006-04-11 Thread Anjo Krank
Am 11.04.2006 um 20:48 schrieb Chuck Hill: On Apr 11, 2006, at 11:36 AM, Jeffrey Pearson wrote: Can someone tell me what this error means? I'd like to know what it actually means so I can learn to troubleshoot on my own and not have to coming running to you guys every time. Id appreciate i

Re: Error Message:

2006-04-11 Thread David Holt
Hi Jeff, I don't know what it means either, and sometimes I get it too. It is from Project Wonder. How did you get into Wonder as a beginner?? ;-) To stop the error message from appearing, the error message tells you to go to the properties file (in your resources group) and add the line:

Re: Help with Qualifier and NSKeyValueCoding.NullValue

2006-04-11 Thread Art Isbell
On Apr 11, 2006, at 9:08 AM, Kieran Kelleher wrote: When I include this qualifier in a qualifier constructed of other qualifiers ANDed and ORed, I get the stack trace shown below. If I leave it out of the qualifier construct, I have no problems. Any idea why this is wrong? endDate is an NSTimestamp

Help with Qualifier and NSKeyValueCoding.NullValue

2006-04-11 Thread Kieran Kelleher
Hi, I need some help please. When I include this qualifier in a qualifier constructed of other qualifiers ANDed and ORed, I get the stack trace shown below. If I leave it out of the qualifier construct, I have no problems. Any idea why this is wrong? endDate is an NSTimestamp mapped to DateTime col

Re: best practices when deleting

2006-04-11 Thread Robert Walker
Bill, It sounds to me like you may be holding onto (and attempting to use) references to deleted objects, either in a display group or other array containing references to your EO's. It's hard to say without more information like what exceptions are getting thrown, etc. It is my understa

Re: best practices when deleting

2006-04-11 Thread Chuck Hill
Hi Bill, On Apr 11, 2006, at 11:19 AM, WebObjects wrote: I’m getting ‘safe’ results when using “ec.refreshAllObjects();” prior to selecting and deleting objects from my database/entities. Without it I get all sorts of problems with context(s) not being in sync. I have no idea what sort o

Re: Error Message:

2006-04-11 Thread Chuck Hill
On Apr 11, 2006, at 11:36 AM, Jeffrey Pearson wrote: Can someone tell me what this error means? I'd like to know what it actually means so I can learn to troubleshoot on my own and not have to coming running to you guys every time. Id appreciate it. You are probably asking the wrong people

Error Message:

2006-04-11 Thread Jeffrey Pearson
Can someone tell me what this error means? I'd like to know what it actually means so I can learn to troubleshoot on my own and not have to coming running to you guys every time. Id appreciate it. Jeff Re-enter metropolisadmin Exception Description Application: metropolisadmin

best practices when deleting

2006-04-11 Thread WebObjects
WOCrew, I¹m getting Œsafe¹ results when using ³ec.refreshAllObjects();² prior to selecting and deleting objects from my database/entities. Without it I get all sorts of problems with context(s) not being in sync. Is there another or additional safe practice that I should be observing, to ensure

Re: WebObjects URL Decoding?

2006-04-11 Thread Dov Rosenberg
Title: Re: WebObjects URL Decoding? The load testing is not be done by our group – they are using a tool from Microsoft that seems pretty nice. I remember there was a tool once that I think got bought by LoadRunner that was able to record WO sessions pretty well. But LoadRunner is way too expens

Re: WebObjects URL Decoding?

2006-04-11 Thread Ray Kiddy
On Apr 10, 2006, at 10:53 PM, Dov Rosenberg wrote: Has anyone decoded the component numbers in the WebObjects URL? myapp.woa/wo/xxx/1.0.1.AdminLogin.1.46.1.1.2 Myapp.woa/wo/xxx/2.0.0.24.0.1.2.1.1.0.0 We are trying to write some load test and regression scripts and have come across some confusion

Re: WebObjects URL Decoding?

2006-04-11 Thread John Lennard
Hi, From my experience, the ones that have names tend to be either stateless components or those inside of a WOSwitch, which are sort of stateless. Of course, this is just my experience and there could be other cases. John On 11/04/2006, at 8:19 PM, Dov Rosenberg wrote: It is strange tha

Re: Logout and localization problem

2006-04-11 Thread Anjo Krank
I think it's much easier to not use the default WO way of localization (English.lproj/Mycomponent.wo, German.lproj/ Mycomponent.wo) except for cases where you need to reorder items on the page like for date pickers and the like. It's far too much work to set these up and keep in sync. I'd

Re: WebObjects URL Decoding?

2006-04-11 Thread Johan Carlberg
Each kind of component decides what it appends to the element id, most standard components use numbers, but there are a few exceptions (WOLongResponsePage is the one I remember to do this). Custom components usually use numbers (as that is the automatic behaviour), but it is possible to use other s

Re: WebObjects URL Decoding?

2006-04-11 Thread Dov Rosenberg
Title: Re: WebObjects URL Decoding? It is strange that sometimes there are component names in the URL and other times just numbers. Any idea why that is? On 4/11/06 3:54 AM, "Johan Carlberg" <[EMAIL PROTECTED]> wrote: Hi, I have looked into it, somewhat, for some non-standard page generati

Re: WebObjects URL Decoding?

2006-04-11 Thread Johan Carlberg
Hi,I have looked into it, somewhat, for some non-standard page generation.The first number is the context id, which increases with each page viewed in a session.The rest is the element id, which is built dynamically when building a page from the template in the WOD file. Basically, the element id i