whats the "proper" way to show a list of form errors when using the mg 
addResult?
It shows up fine one at a time but whats best way to return a list or array?

in controller.cfc
<cfif not len(trim(uname))>
  <cfset arguments.event.setValue("showErrors", "Please enter a name.") />
  <cfset arguments.event.addResult("validationError") />
</cfif>

<cfif not len(trim(phrase)) or not isValid("email", email)>
  <cfset arguments.event.setValue("showErrors", "Please enter a valid email.") 
/>
  <cfset arguments.event.addResult("validationError") />
</cfif>


form page

<cfif viewstate.exists("phraseError")>
<cfoutput>
#viewstate.getValue("phraseError")#
</cfoutput>
</cfif>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256220
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to