I writing my first action filter for a form submission.  When an error
in data entry is detected for example,  how is the error msg handled?
I assume you simply return false on the  DAO or Gateway method called
by the listener.  But if a variety of error conditions are possible,
such as missing field entry or input too long or file already exists,
etc... I'd think this info would need to be passed back too.

Can someone please explain how this is normally handled?
Where is the error msg text normally specified?  Only in the View?
Currently my view file is planning to look for an error msg in the
event obj.  So somewhere it's got to be put into the event obj.  Is
that with a putArg?  Where is that call usually made?

This is the biggest struggle I have with learning Mach-II.  I don't
know where to put the code.  If you consider each of the code snippet
locations as "buckets" (the config .xml file event-handler, the
listener, the filter, the gateway, the view, the model, etc.) it's
sometimes hard to know where to put some piece of the code.
Particularly a variable... like a parameter or property.  Do I set it
in the Properties section, or in the event-handler or in the filter/
listener or in the component or in the method???  Are there "rules of
thumb" to follow?

I guess this is really two threads in one. Sorry... being effficient.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to