• 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: Validating a percentage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Validating a percentage?


  • Subject: Re: Validating a percentage?
  • From: James Cicenia <email@hidden>
  • Date: Wed, 19 Sep 2007 15:56:49 -0500

Hmm,

I will have to investigate this "custom formatter". I thought they were for display only.

James

On Sep 19, 2007, at 11:04 AM, David LeBer wrote:

On 19-Sep-07, at 10:48 AM, Chuck Hill wrote:


On Sep 19, 2007, at 6:47 AM, James Cicenia wrote:

Hello -

I am trying to use the EO validation frameworks and am a bit confused.

I would like a person to be able to enter either a number, or a percent with the percent sign.
But then I need to strip this out.


Do I have to create a "string" instance variable or can I somehow use validatePercentLoad in the EO?

That does not sound like a task for validation to me. That sounds more like a job for a custom formatter.

My thoughts exactly.

I have a custom formatter that does this kind of thing for phone numbers.

Project Wonder source is a good place to look if you are interested in writing one.

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org



_______________________________________________ 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: Validating a percentage?
      • From: Chuck Hill <email@hidden>
References: 
 >Validating a percentage? (From: James Cicenia <email@hidden>)
 >Re: Validating a percentage? (From: Chuck Hill <email@hidden>)
 >Re: Validating a percentage? (From: David LeBer <email@hidden>)

  • Prev by Date: Validation Week
  • Next by Date: Re: Validation Week
  • Previous by thread: Re: Validating a percentage?
  • Next by thread: Re: Validating a percentage?
  • Index(es):
    • Date
    • Thread