>Sounds pretty good but don't forget i18n which would require >your messages to be driven by locale... >
Yep, that's the idea of returning an error code. The g11n stuff can know what to render for any given validation failure code. The message is there for development while the g11n stuff might not be complete. >I would be inclined to keep the lookup of the username out of >the validation itself, but perform a lookup ahead of the >validation and pass the result into the validation - or pass a >user gateway object into the validation. That way the >validator does not need to know about persistence. Yep, that sounds sensible. I'm leaning towards passing the gateway object or something similar. I'll put it in my current project and see how it goes. Spike --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
