Re: Entity Validation Exception Question

2011-09-09 Thread Michael Gargano
Okay, now it becomes all clear! I had the D2W libraries still in the project, because I was trying to leverage it at one point. Once I took them out, it works without me having to do anything. That was confusing. Thanks Ramsey... 2 for 2! :) -Mike On Sep 9, 2011, at 12:26 PM, Ramsey Gurl

Re: Entity Validation Exception Question

2011-09-09 Thread Ramsey Gurley
In your .strings files. In ERD2W framework under /Resources/English.lproj/ValidationTemplate.strings I see: "NullPropertyException" = "Please provide @@indefiniteArticleForProperty@@ @@displayNameForProperty@@."; That must be overriding the one in ERXExtensions. So it would appear you need t

Re: Entity Validation Exception Question

2011-09-09 Thread Michael Gargano
Hi Ramsey, Sorry, I'm still a little confused with this one. I see what you are saying about the context, but I don't know how to find which keys to use. The messages that are getting generated by validation produce things like "Please provide ? Name." From what I looked at in the code yeste

Re: Entity Validation Exception Question

2011-09-08 Thread Ramsey Gurley
Hi Mike, ERXValidationFactory.ExceptionDelegateInterface ERXValidationFactory.setDefaultDelegate If your exception doesn't have a context (not using d2w, not setting it yourself when the exception is caught, etc) then you can override the delegate to provide a context. Ramsey On Sep 8, 2011,

Re: Entity Validation Exception Question

2011-09-08 Thread Michael Gargano
no D2W, just what I'm catching in validationFailedWithException in the component -Mike On Sep 8, 2011, at 3:16 PM, David Holt wrote: D2W ERModernLook?? On 2011-09-08, at 12:00 PM, Michael Gargano wrote: Hi all, When an EO is being validated, the exception kicked back has ‘?’s in it. I’m as

Re: Entity Validation Exception Question

2011-09-08 Thread David Holt
D2W ERModernLook?? On 2011-09-08, at 12:00 PM, Michael Gargano wrote: > Hi all, > > When an EO is being validated, the exception kicked back has ‘?’s in it. I’m > assuming this is where they are expecting us to place the appropriate article > like (‘a’ vs. ‘an’) or something that is supposed

Entity Validation Exception Question

2011-09-08 Thread Michael Gargano
Hi all, When an EO is being validated, the exception kicked back has ‘?’s in it. I’m assuming this is where they are expecting us to place the appropriate article like (‘a’ vs. ‘an’) or something that is supposed to be pluralized. Is there a good way to handle this or do I just need to do a f

Re: Validation Exception

2006-08-18 Thread Marcos Trejo Munguia
Hi Chuck, First of all, thanks for your reply! I really appreciate your help. I'll try to be more specific, I think I'm confusing you, so here I go. I'm using MultiECLockManager to handle the locking/unlocking of my own editing contexts. The code that inserts InventoryTransDetail's to the ec an

Re: Validation Exception

2006-08-14 Thread Chuck Hill
;); addItemFailed = true; } if (!addItemFailed) { InventoryTransDetail transactionDetail = new InventoryTransDetail(); ec.insertObject(transactionDetail); transaction.addObjectToBothSidesOfRelationshipWithKey (transactionDetail, "inventorytrans

Re: Validation Exception

2006-08-10 Thread Marcos Trejo Munguia
;); addItemFailed = true; } if (!addItemFailed) { InventoryTransDetail transactionDetail = new InventoryTransDetail(); ec.insertObject(transactionDetail); transaction.addObjectToBothSidesOfRelationshipWithKey(transactionDet ail, "inventorytransdetails&

Re: Validation Exception (Modified by Marcos Trejo Munguia)

2006-08-02 Thread Marcos Trejo Munguia
rytransdetails"); transactionDetail.setTranssign(Constant.ONE); transactionDetail.setProduct(productSelected); transactionDetail.setLocation(locationSelected); transactionDetail.setSecondarylot(secondaryLot); transactionDetail.setQty(quantity); } } That looks fine. Here is the code that thr

Re: Validation Exception

2006-07-31 Thread Chuck Hill
transactionDetail.setQty(quantity); } } That looks fine. Here is the code that throws the validation exception, this validateXXX are in the class InventoryTransDetail: public Product validateProduct(Product newValue) throws NSValidation.ValidationException {

Re: Validation Exception

2006-07-31 Thread Marcos Trejo Munguia
); transactionDetail.setTranssign(Constant.ONE); transactionDetail.setProduct(productSelected); transactionDetail.setLocation(locationSelected); transactionDetail.setSecondarylot(secondaryLot); transactionDetail.setQty(quantity); } } Here is the code that throws the validation exception, this validateXXX are in

Re: Validation Exception

2006-07-31 Thread Chuck Hill
is still in the editing context, will all null values. Chuck On Jul 31, 2006, at 2:12 PM, Marcos Trejo Munguia wrote: Hi list: I've been having a problem with a validation exception that must not be happening, here is the stack trace: com.webobjects.foundation.NSValid

Validation Exception

2006-07-31 Thread Marcos Trejo Munguia
Hi list: I've been having a problem with a validation exception that must not be happening, here is the stack trace: com.webobjects.foundation.NSValidation$ValidationException: Product is required at InventoryTransDetail.validateProduct(InventoryTransDetail.java:43)