Re: [Webwork-devel] Validation on commands?
Brought to you by:
baldree,
rickardoberg
From: Rickard <ri...@mi...> - 2002-03-12 09:17:44
|
Low Heng Sin wrote: > non-cmd action - validate() -> doValidate() > cmd-action - doDefault() -> doDefaultValidate() > doEdit() -> doEditValidate() > doCreate() -> doCreateValidate() >=20 > The validate for cmd-action should be optional and implemented using > reflection ( just like how cmd work ). Preferably not. It is quite common (at least for me) that validation=20 rules needs to be shared between two or more commands, so splitting them=20 up is not a good idea. /Rickard --=20 Rickard =D6berg Author of "Mastering RMI" Chief Architect, TheServerSide.com The Middleware Company - We Build Experts! |