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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.