http://www.validatethis.org/docs/wiki/Validation_Types_Supported_By_ValidateThis.cfm#IsValidObject
Bob
> --
> You received this message because you are subscribed to the Google Groups
> "ValidateThis" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/validatethis/-/n1QFSFbJsNAJ.
> To post to this group, send email to valida...@googlegroups.com.
> To unsubscribe from this group, send email to
> validatethis...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/validatethis?hl=en.
--
Bob Silverberg
www.silverwareconsulting.com
I see how that could be applied to validate a child - but how could I define a rule on the Container, so that if I pass the container to VT it validates all the children - giving me their errors?
What I'm trying to do might not be possible, I may have to just write my own validate() method on the Container which loops etc.
Thanks,
Robert
--
Bob Silverberg
www.silverwareconsulting.com
--
You received this message because you are subscribed to the Google Groups "ValidateThis" group.
To view this discussion on the web visit https://groups.google.com/d/msg/validatethis/-/0abzj2kiAh0J.
Thanks Rob.
> In an ideal world - what I need back from the isValidObject when invoked on
> an array is not only what specific failures were encountered, but also to
> which instance within the collection.
>
That is how it is supposed to work, and I'm pretty sure it's been
tested for that, so I'll have to take another look. I'll try to get
to it today, but it might not be until this weekend.
Bob
> This would make placement of the error messages around the appropriate
> fields possible.
>
> Thanks.
>
> Robert
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "ValidateThis" group.
--
Bob Silverberg
www.silverwareconsulting.com
If you need any further information or help feel free to ask.
Robert
https://skitch.com/bobsilverberg/g6xc4/localhost-vtisobjecttest-test.cfm-cfc1
Is that not what you see?
Bob
Thanks for taking the time to come up with a solution. I looked at it
today and it turned out that there was actually a one-line solution,
so I've implemented that. Please try it again using the attached file
and let me know if it works for you now.
Thanks,
Bob
Let me know if you can get that scheme working for you.
Thanks,
Bob
--
Bob Silverberg
www.silverwareconsulting.com
>>
>> For more options, visit this group at
>>
>> http://groups.google.com/group/validatethis?hl=en.
>>
>>
>>
>>
>> On 3 Feb 2012, at 12:24, Bob Silverberg wrote:
>>
>>
>> That's not the way it's supposed to work. Would it be possible for you to
>>
>> send me some code for an isolated test?
>>
>>
>> Thanks,
>>
>> Bob
>>
>>
>> Sent from my mobile
>>
>>
>> On 2012-02-03, at 5:46 AM, Rawlins <rob...@supporttime.com> wrote:
>>
>>
>> Hi Bob,
>>
>>
>> I can do this - however I get some slightly unexpected behaviour.
>>
>>
>> It appears to only return failures for the last object in the array, rather
>>
>> than every object.
>>
>>
>> So if I have an array of 3 invalid objects - only failures for the last
>>
>> invalid object are added to the result.
>>
>>
>> Thanks.
>>
>>
>> Robert
>>
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>>
>> "ValidateThis" group.
>>
>> To view this discussion on the web visit
>>
>> https://groups.google.com/d/msg/validatethis/-/0abzj2kiAh0J.
>>
>> To post to this group, send email to valida...@googlegroups.com.
>>
>> To unsubscribe from this group, send email to
>>
>>
>> For more options, visit this group at
>>
>> http://groups.google.com/group/validatethis?hl=en.
>>
>>
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>>
>> "ValidateThis" group.
>>
>> To post to this group, send email to valida...@googlegroups.com.
>>
>> To unsubscribe from this group, send email to
>>
>>
>> For more options, visit this group at
>>
>> http://groups.google.com/group/validatethis?hl=en.
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> Bob Silverberg
>>
>> www.silverwareconsulting.com
>>
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "ValidateThis" group.
>>
>> To post to this group, send email to valida...@googlegroups.com.
>>
>> To unsubscribe from this group, send email to
>>
>> For more options, visit this group at
>> http://groups.google.com/group/validatethis?hl=en.
>>
>>
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "ValidateThis" group.
>>
>> To post to this group, send email to valida...@googlegroups.com.
>>
>> To unsubscribe from this group, send email to
>>
>> For more options, visit this group at
>> http://groups.google.com/group/validatethis?hl=en.
>>
>>
>>
>>
>>
>> --
>> Bob Silverberg
>> www.silverwareconsulting.com
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ValidateThis" group.
>> To post to this group, send email to valida...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> For more options, visit this group at
>> http://groups.google.com/group/validatethis?hl=en.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ValidateThis" group.
>> To post to this group, send email to valida...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> For more options, visit this group at
>> http://groups.google.com/group/validatethis?hl=en.
>
>
>
> --
> Bob Silverberg
> www.silverwareconsulting.com
--
Bob Silverberg
www.silverwareconsulting.com