RE: Question on validation
"Yury Peskin" <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
That was just me typing the code into the e-mail. The program is still not catching the validation correctly, even though the tests are correct. Any other ideas? Thanks, Yury Peskin -----Original Message----- From: Anjo Krank [mailto:[email protected]] Sent: Thursday, May 04, 2006 11:09 PM To: Yury Peskin Cc: 'WebObjects-Dev OmniGroup' Subject: Re: Question on validation Am 05.05.2006 um 00:37 schrieb Yury Peskin: > Any idea on how to get this thing to work? Watching for typos (and probably switching your logic): if(key.equals("has Agreed") && ((Boolean)value).equals(new Boolean (false))) -------------------^ vs return (validationDictionary.objectForKey("hasAgreed") != null); ----------------------------------------------^ So "has Agreed" is never the key and thus can never set the boolean. Cheers, Anjo