• 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: triggering error messages after data edits
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: triggering error messages after data edits


  • Subject: Re: triggering error messages after data edits
  • From: Alexander Spohr <email@hidden>
  • Date: Wed, 7 Jan 2004 11:12:43 +0100

just q quick idea:

put all your messages into one NSDictionary with keys like "isFirstNameCorrect".
then it should be enough to hook up a WOConditional to that dict.key.


you can pump out those messages then by connecting a WOString to that same dict.

	atze

Am 07.01.2004 um 01:28 schrieb Drew Thoeni:

In the registration screen I'm writing there are a good number of edits
being applied to the user's input. I hate bad data. I also hate making
the user guess at what the problem may be so I want to give specific
feedback, such as and error marker (say, a small graphic) and a clear
message (say "Zip code should be five digits).

Having enough WO experience to know there's likely a better way, I'm
trying to avoid a series of variables like:

protected boolean isFirstNameCorrect = true;
protected String firstNameErrorMsg;
protected boolean isLastNameCorrect = true;
protected String lastNameErrorMsg;

How is this best handled in WO?

Drew
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: triggering error messages after data edits
      • From: Art Isbell <email@hidden>
References: 
 >triggering error messages after data edits (From: Drew Thoeni <email@hidden>)

  • Prev by Date: Re: How to avoid instantiation of new WOComponents when reloading?
  • Next by Date: Page with EO's not refreshing properly
  • Previous by thread: triggering error messages after data edits
  • Next by thread: Re: triggering error messages after data edits
  • Index(es):
    • Date
    • Thread