Re: Question on validation
Anjo Krank <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
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