Re: triggering error messages after data edits
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.