• 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: Validation .. I found a good page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Validation .. I found a good page


  • Subject: Re: Validation .. I found a good page
  • From: Johnny Miller <email@hidden>
  • Date: Mon, 11 Feb 2013 10:14:04 -1000

Hi,

I was wondering if anyone has an example of how to do the following:

Using this method...

public void validationFailedWithException(Throwable exception, Object value, String keyPath) {
  super.validationFailedWithException(exception, value, keyPath);
  session().addError(exception.getMessage());
}
 
I would like to put exception.getMessage in a mutable dictionary with keypath as the key.  Easy enough.  Then I'd like to print out the error messages on the page.  Easy enough.  Then I'd like to add a css class name to the input(s) that failed validation (without using D2w)??  I imagine that's where keypath would come in handy but I'm not sure how to connect the key path to the input?  

Thanks in advance,

Johnny

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: Validation .. I found a good page
      • From: Chuck Hill <email@hidden>
    • Re: Validation .. I found a good page
      • From: James Cicenia <email@hidden>
References: 
 >Re: Validation .. I found a good page (From: James Cicenia <email@hidden>)

  • Prev by Date: problem with _private.ERXSwitchComponent
  • Next by Date: WebObjects IDE
  • Previous by thread: Re: Validation .. I found a good page
  • Next by thread: Re: Validation .. I found a good page
  • Index(es):
    • Date
    • Thread