Re: [ValidateThis] custom validations with structs

19 views
Skip to first unread message

Bill Berzinskas

unread,
Feb 5, 2013, 1:57:32 PM2/5/13
to valida...@googlegroups.com

Hey Jim,

I use an object approach personally.   I have a base bean that can be populated with any struct, and use onMissingMethod to create generic get / set.  all I wind up with there is the validation rules, since i'm not using CFPROPERTY..  


that being said, I've had to do something similar a few times, and I basically  would execute conditionals in my handler or service and append to the validationResult manually..

-b


----- Original Message -----
From: "Jim Priest" <pri...@thecrumb.com>
Sent: Tue, February 5, 2013 13:00
Subject: [ValidateThis] custom validations with structs

Working on converting an old Fusebox site to FW/1 and trying to implement some simple validation.

Found an old post here:
https://groups.google.com/forum/?fromgroups=#!searchin/validatethis/Custom$20Validation$20Type$20struct/validatethis/og-RkZPrc8Y/unEl1OXlRTIJ

which indicates custom validations don't work with structs (only objects) and provides a few workarounds...  remoteURL?

Before I run off and try the remoteURL or to hack up something ugly I was wondering if this was still the case.

Thanks,
Jim

 

--
You received this message because you are subscribed to the Google Groups "ValidateThis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to validatethis...@googlegroups.com.
To post to this group, send email to valida...@googlegroups.com.
Visit this group at http://groups.google.com/group/validatethis?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages