Peter Bell escreveu:
> I'd have some kind of validate method on the bean. Probably use it to 
> call a composed validation bean. I'd put the logic there.

Good suggestion, the validation could be in the set() methods

<cffunction name="setComment">
    <cfarguments name="comment" type="string" required="true" />

    <cfset variables.comment = application.libUtil.ConvertToHTML( 
arguments.comment );

</cffunction>


<cffunction name="setURL">
    <cfarguments name="stringURL" type="string" required="true" />

    <cfif Left(arguments.stringURL, 4) neq "http">
       <cfset variables.stringURL = "http://"; & arguments.stringURL />
    <cfelse>
       <cfset variables.stringURL = arguments.stringURL />
    </cfif>

</cffunction>

Thanks,
Ronan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
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/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to