• 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: What is the best way to handle invalid values from a WOTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the best way to handle invalid values from a WOTextField?


  • Subject: Re: What is the best way to handle invalid values from a WOTextField?
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 16 Jul 2008 09:34:25 -0700


On Jul 16, 2008, at 8:50 AM, Guido Neitzer wrote:

On 15.07.2008, at 23:14, Chuck Hill wrote:

It looks like ERXWOTextField is similar to the 5.3.3 implementation, so if you are using Wonder with this patched in as WOTextField then you won't have problems.

Is the problem just limited to WOTextField?

I think just WOTextField formats input.

Yeah, the Wonder one doesn't even try to set a value if parsing fails - which is the correct way in my opinion. For what do I have the formatter?!

I am guessing this is an attempt to deal with the problem of the input value getting discarded if it failed to format. It is reasonable to want to show the invalid value to the user with a message and allow them to edit it into the correct format. This is just the wrong way to do that.



What other diffs are there between Wonder's and WO5.4.x for this stuff?

No idea. The two classes look quite different.

The one in Wonder is probably quite old - but with the nice touch that it does what you'd expect ... :-)


I like that in a piece of software.  :-)

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: What is the best way to handle invalid values from a WOTextField?
      • From: Guido Neitzer <email@hidden>
References: 
 >Re: What is the best way to handle invalid values from a WOTextField? (From: Lachlan Deck <email@hidden>)
 >Re: What is the best way to handle invalid values from a WOTextField? (From: Chuck Hill <email@hidden>)
 >Re: What is the best way to handle invalid values from a WOTextField? (From: Chuck Hill <email@hidden>)
 >Re: What is the best way to handle invalid values from a WOTextField? (From: Guido Neitzer <email@hidden>)
 >Re: What is the best way to handle invalid values from a WOTextField? (From: Chuck Hill <email@hidden>)
 >Re: What is the best way to handle invalid values from a WOTextField? (From: Lachlan Deck <email@hidden>)
 >Re: What is the best way to handle invalid values from a WOTextField? (From: Chuck Hill <email@hidden>)
 >Re: What is the best way to handle invalid values from a WOTextField? (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: What is the best way to handle invalid values from a WOTextField?
  • Next by Date: Re: What is the best way to handle invalid values from a WOTextField?
  • Previous by thread: Re: What is the best way to handle invalid values from a WOTextField?
  • Next by thread: Re: What is the best way to handle invalid values from a WOTextField?
  • Index(es):
    • Date
    • Thread