[Webwork-devel] Validation on commands?
Brought to you by:
baldree,
rickardoberg
From: Rickard <ri...@mi...> - 2002-03-11 09:25:44
|
Hey What was the result of our discussions re: validating data on commands=20 as well? I recall that we said that it would be a good idea to call=20 validation() regardless of whether doExecute() or a command was to be=20 invoked. That's ok, but then all examples break since validation is called before=20 doDefault() is invoked. So, either the examples has to be updated so=20 that the validation rules are surrounded with if (!isCommand("default")) { .. } or, we could special-case the validation so that it's not done before=20 executing "default" but it's done on all other commands. What say ye? /Rickard --=20 Rickard =D6berg Author of "Mastering RMI" Chief Architect, TheServerSide.com The Middleware Company - We Build Experts! |