I have a form, that is populated by a bean, which updates the bean
when the form values are submitted.  The update is done very simply
using cfset my.setMemento(#form#).

My question now is how do I error check and make the error message
something useful to the user.  If a user enters a non numeric value
into a numeric form field that tries to update the bean, an error is
thrown like:

 The value returned from function getNumberValue() is not of type numeric.

I am using http://rooibos.maestropublishing.com/ to generate the bean
and there is an option for validating.

I also understand that I could create a cfc that would pass the values
to the bean, check for errors and return messages in a more manual
way, but the setMemento is so easy, If I could figure out error
checking also, it would save me alot of time in future projects.

TIA,

--
David Mineer Jr
---------------------
The critical ingredient is getting off your butt and doing
something. It's as simple as that. A lot of people have ideas,
but there are few who decide to do something about them now.
Not tomorrow. Not next week. But today. The true entrepreneur
is a doer.


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to