• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Entity Validation Exception Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entity Validation Exception Question


  • Subject: Re: Entity Validation Exception Question
  • From: Michael Gargano <email@hidden>
  • Date: Fri, 09 Sep 2011 10:41:48 -0700
  • Acceptlanguage: en-US
  • Thread-topic: Entity Validation Exception Question

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 Gurley wrote:

> In your .strings files.  In ERD2W framework under /Resources/English.lproj/ValidationTemplate.strings I see:
>
> "NullPropertyException" = "Please provide @@indefiniteArticleForProperty@@ <b>@@displayNameForProperty@@</b>.";
>
> That must be overriding the one in ERXExtensions.  So it would appear you need to provide a context dictionary with a value for the key indefiniteArticleForProperty.
>
> Ramsey
>
> On Sep 9, 2011, at 8:43 AM, Michael Gargano wrote:
>
>> 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 yesterday, I guess the '?' is supposed to be the entity name.  Why does the property resolve properly, but not the entity name?  And where do I look to find the valid keys for the context?
>>
>> Thanks.
>> -Mike
>>
>>
>> On Sep 8, 2011, at 4:08 PM, Ramsey Gurley wrote:
>>
>>> 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, at 12:30 PM, Michael Gargano wrote:
>>>
>>>> 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 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 find and replace on each of these messages before display?
>>>>>>
>>>>>> Thanks.
>>>>>> -Mike
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Do not post admin requests to the list. They will be ignored.
>>>>>> Webobjects-dev mailing list      (email@hidden)
>>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>>
>>>>>> This email sent to email@hidden
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list      (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>
>>>
>>
>
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Entity Validation Exception Question (From: Michael Gargano <email@hidden>)
 >Re: Entity Validation Exception Question (From: David Holt <email@hidden>)
 >Re: Entity Validation Exception Question (From: Michael Gargano <email@hidden>)
 >Re: Entity Validation Exception Question (From: Ramsey Gurley <email@hidden>)
 >Re: Entity Validation Exception Question (From: Michael Gargano <email@hidden>)
 >Re: Entity Validation Exception Question (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: Entity Validation Exception Question
  • Next by Date: WOCommunity on SlideShare
  • Previous by thread: Re: Entity Validation Exception Question
  • Next by thread: Reminder: Tools Group meeting
  • Index(es):
    • Date
    • Thread