• 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: Esoteric issue with automatic property validation and validationFailedWithException()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Esoteric issue with automatic property validation and validationFailedWithException()


  • Subject: Re: Esoteric issue with automatic property validation and validationFailedWithException()
  • From: Aaron Rosenzweig <email@hidden>
  • Date: Sat, 20 May 2017 10:55:20 -0400

Hi Paul,

After reading this a few times it is still not clear to me what the issue is but I’ll try to say something helpful. 

“takeValuesFromRequest()” does try to do some validation if it can figure out the key paths and figure out a “validate()” method to call. Obviously if it is just a method on the page it cannot “discover” validation methods to call because it doesn’t know the underlying logic or how to get to the EO that is covered by the custom WOComponent method. This type of “automatic” validation only can happen when you are setting a value hanging from an EO listed directly in the .wod

“editingContext.saveChanges()” also calls these same validation methods. 

“woComponent.validationFailedWithException()” is an important method to implement to catch a bunch of the exceptions during takeValuesFromRequest() so you can show them all to the user. 
Aaron Rosenzweig / Chat 'n Bike
e:  email@hidden  t:  (301) 956-2319
Chat 'n Bike Chat 'n Bike
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
  • Follow-Ups:
    • Re: Esoteric issue with automatic property validation and validationFailedWithException()
      • From: Paul Hoadley <email@hidden>
References: 
 >Esoteric issue with automatic property validation and validationFailedWithException() (From: Paul Hoadley <email@hidden>)
 >Re: Esoteric issue with automatic property validation and validationFailedWithException() (From: Chuck Hill <email@hidden>)
 >Re: Esoteric issue with automatic property validation and validationFailedWithException() (From: Paul Hoadley <email@hidden>)
 >Re: Esoteric issue with automatic property validation and validationFailedWithException() (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: Compiling ERExtensions in Sierra no worky
  • Next by Date: Re: Compiling ERExtensions in Sierra no worky
  • Previous by thread: Re: Esoteric issue with automatic property validation and validationFailedWithException()
  • Next by thread: Re: Esoteric issue with automatic property validation and validationFailedWithException()
  • Index(es):
    • Date
    • Thread