Check out this blog post: http://tinyurl.com/2dbvsd ( http://www.danvega.org/blog/index.cfm/2006/7/27/Reactor-Validation-Part-III )
On 5/24/07, D A wrote:
Hi, I'm using MG:Unity + Reactor. I'm using a modelglue.GenericCommit and I have a unique index so the database cannot have multiple email addresses of the same. How can I get validation to work rather than it throwing a hard error? Does reactor not catch this in validation? I think it would be nice, if nothing more to check the SQL error that is thrown back for "Cannot insert duplicate key". I'm using the validation structure for when users don't enter a value in a non-null field, or enter an incorrect data type and/or length. Thanks, - Doug -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [EMAIL PROTECTED] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [EMAIL PROTECTED] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
