110% agree

Validation is business logic. Belongs into your EO.
Accepting a string that is either a number or a number with a suffix character is string parsing. A job for a formatter.

Pierre Bernard
Houdah Software s.à r.l.

On Sep 19, 2007, at 4:48 PM, 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.

Chuck


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects- lists%40houdah.com

This email sent to [EMAIL PROTECTED]

- - -
Houdah Software s. à r. l.
http://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Powerful Spotlight frontend



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to