<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>MVC Foolproof Validation</title><link>http://foolproof.codeplex.com/project/feeds/rss</link><description>MVC Foolproof Validation aims to extend the Data Annotation validation provided in ASP.NET MVC. Initial efforts are focused on adding contingent validation. </description><item><title>Closed Issue: GreaterThan and LessThan attributes not working with unobtrusive js [15188]</title><link>http://foolproof.codeplex.com/workitem/15188</link><description>In my view model i have similar to the following&amp;#58;&lt;br /&gt;&amp;#160;&lt;br /&gt;        &amp;#91;Required&amp;#93;&lt;br /&gt;        &amp;#91;Range&amp;#40;0, 1000, ErrorMessage &amp;#61; &amp;#34;Please enter a value greater than 0.&amp;#34;&amp;#41;&amp;#93;&lt;br /&gt;        &amp;#91;Display&amp;#40;Name &amp;#61; &amp;#34;Low Value&amp;#34;&amp;#41;&amp;#93;&lt;br /&gt;        public double LowValue &amp;#123; get&amp;#59; set&amp;#59; &amp;#125;&lt;br /&gt;&amp;#160;&lt;br /&gt;        &amp;#91;Required&amp;#93;&lt;br /&gt;        &amp;#91;Range&amp;#40;0, 1000, ErrorMessage &amp;#61; &amp;#34;Please enter a value greater than 0.&amp;#34;&amp;#41;&amp;#93;&lt;br /&gt;        &amp;#91;GreaterThan&amp;#40;&amp;#34;LowValue&amp;#34;, ErrorMessage &amp;#61; &amp;#34;Your high value needs to be greater than your low value.&amp;#34;&amp;#41;&amp;#93;&lt;br /&gt;        &amp;#91;Display&amp;#40;Name &amp;#61; &amp;#34;High Value&amp;#34;&amp;#41;&amp;#93;&lt;br /&gt;        public double HighValue &amp;#123; get&amp;#59; set&amp;#59; &amp;#125;&lt;br /&gt;&amp;#160;&lt;br /&gt;I have unobtrusive js enabled in an MVC3 application using the Razor view engine &amp;#40;.NET 4&amp;#41; when. When i run the application and type in 70 for my &amp;#34;low value&amp;#34; and 120 for my &amp;#34;high value&amp;#34; i get a validation error that says &amp;#34;Your high value needs to be greater than your low value&amp;#34; Same results when I tried this with out the &amp;#34;Range&amp;#34; attribute. &lt;br /&gt;&amp;#160;&lt;br /&gt;In addition &amp;#40;thinking the attributes worked the other way&amp;#41; I added the &amp;#34;LessThan&amp;#34; attribute on my &amp;#34;High&amp;#34; value and receive zero javascript validation when &amp;#34;high&amp;#34; is greaterthan or lessthan &amp;#34;low&amp;#34; &amp;#40;but accurate validation when i run Modelstate.IsValid&amp;#41;&lt;br /&gt;</description><author>rbihun</author><pubDate>Thu, 16 May 2013 10:58:41 GMT</pubDate><guid isPermaLink="false">Closed Issue: GreaterThan and LessThan attributes not working with unobtrusive js [15188] 20130516105841A</guid></item><item><title>New Post: Manually trigger foolproof validation</title><link>http://foolproof.codeplex.com/discussions/442479</link><description>&lt;div style="line-height: normal;"&gt;I'm using Foolproof Validation so I can use [RequiredIf] attributes on my view model. The problem is that I'd like to trigger validation within my code using the same logic outside a controller.&lt;br /&gt;
&lt;br /&gt;
I've tried creating my own validation context and using Validatior.TryValidateObject; however, it fails with Foolproof's custom RequiredIf validator. Is there a way to take my model and validate it other than passing it to a controller?&lt;br /&gt;
&lt;br /&gt;
Am I using the wrong approach?&lt;br /&gt;
&lt;br /&gt;
Here is my code:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;var draftModel = _draftHelper.LoadDraft(draftId);

var validationResults = new List&amp;lt;ValidationResult&amp;gt;();

var vc = new ValidationContext(draftModel, null, null);

var isValidDraft = Validator.TryValidateObject(draftModel, vc, 
                                               validationResults, true);&lt;/code&gt;&lt;/pre&gt;

And the error I get is on the TryValidateObject line&lt;br /&gt;
&lt;blockquote&gt;
System.NotImplementedException: The method or operation is not implemented.&lt;br /&gt;
&lt;/blockquote&gt;
I've also posted on &lt;a href="http://stackoverflow.com/questions/16349928/manually-trigger-foolproof-validation" rel="nofollow"&gt;StackOverflow&lt;/a&gt;, but I'll update both posts with the answer when I find it.&lt;br /&gt;
&lt;/div&gt;</description><author>thelameduck</author><pubDate>Fri, 03 May 2013 16:59:27 GMT</pubDate><guid isPermaLink="false">New Post: Manually trigger foolproof validation 20130503045927P</guid></item><item><title>New Post: Why do we need to implement IsValid in ModelAwareValidationAttribute ?</title><link>http://foolproof.codeplex.com/discussions/442069</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
I just downloaded the source code, imported the files into my own project and tried to implement my frist validator (a  RequiredIsTrue)&lt;br /&gt;
When I executed the project I got an exception. The IsValid method in ModelAwareValidationAttribute.cs had fired a NotImplementedException.&lt;br /&gt;
&lt;br /&gt;
Was quite surprised that this method fired.&lt;br /&gt;
Doesn't the specific validators, like RequiredIfTrue have their own validators??&lt;br /&gt;
&lt;br /&gt;
Is there something I'm missing or is it supposed to work like this?&lt;br /&gt;
In case of the latter, I'd like some advice on how to implement a simple solution where I can just leave the validation up to the specific data annotation validators themselves and don't have to write any custom code in the ModelAwareValidationAttribute.&lt;br /&gt;
&lt;br /&gt;
Note that If I do implement the isValid method (for instance set it to always return true), all aspects of the validation do work as expected. It's just that I don't WANT to have to perform the validation in that method...&lt;br /&gt;
&lt;/div&gt;</description><author>DrKawashima</author><pubDate>Tue, 30 Apr 2013 12:20:43 GMT</pubDate><guid isPermaLink="false">New Post: Why do we need to implement IsValid in ModelAwareValidationAttribute ? 20130430122043P</guid></item><item><title>New Post: Minor suggestion to remove cultural bias from project home page examples</title><link>http://foolproof.codeplex.com/discussions/442035</link><description>&lt;div style="line-height: normal;"&gt;The fourth example on the project home page (for Required Validation) uses &amp;quot;FirstName&amp;quot; and &amp;quot;LastName&amp;quot;, which are culturally biased terms.&lt;br /&gt;
&lt;br /&gt;
This is just a minor suggestion to change them to be GivenName and Surname (or GivenName and FamilyName), which are more culturally neutral.&lt;br /&gt;
&lt;br /&gt;
For an in depth discussion of the issue see: &lt;a href="http://www.w3.org/International/questions/qa-personal-names" rel="nofollow"&gt;http://www.w3.org/International/questions/qa-personal-names&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>sgryphon</author><pubDate>Tue, 30 Apr 2013 03:00:59 GMT</pubDate><guid isPermaLink="false">New Post: Minor suggestion to remove cultural bias from project home page examples 20130430030059A</guid></item><item><title>New Post: Custom Validation no client side validation</title><link>http://foolproof.codeplex.com/discussions/438971</link><description>&lt;div style="line-height: normal;"&gt;With MVC4 there is an interface which has to be implemented which isn't implemented within foolproof, I have created my own subset of annotations based upon the very good foolproof code which does implement the interface and this works perfectly with mvcfoolprooj.unobtrusive.js. The interface is &lt;strong&gt;IClientValidatable&lt;/strong&gt;.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public abstract class ModelAwareAttribute : ValidationAttribute, IClientValidatable
{
  //...
  public IEnumerable&amp;lt;ModelClientValidationRule&amp;gt; GetClientValidationRules(ModelMetadata metadata, ControllerContext context)
  {
    yield return new ModelClientValidationRule()
    {
      ErrorMessage = ErrorMessage,
      ValidationType = &amp;quot;is&amp;quot;
    };
  }
}&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>Lukehenners</author><pubDate>Mon, 22 Apr 2013 12:53:13 GMT</pubDate><guid isPermaLink="false">New Post: Custom Validation no client side validation 20130422125313P</guid></item><item><title>Commented Issue: Destination Property should use Display Name if available. [18242]</title><link>http://foolproof.codeplex.com/workitem/18242</link><description>For the property comparison validators, like GreaterThan, it uses the destination property in the error message.&lt;br /&gt;&lt;br /&gt;&amp;#34;Start Date should be greater than EndDate&amp;#34;&lt;br /&gt;&lt;br /&gt;Though the system uses the DisplayName value for the current property, it should also use the DisplayName value for the destination property, if available.&lt;br /&gt;&lt;br /&gt;&amp;#34;Start Date should be greater than End Date&amp;#34;&lt;br /&gt;Comments: ** Comment from web user: peterrow ** &lt;p&gt;I would say that the impact is medium or high.&lt;br&gt;Without this whenever a validation message is shown it is displayed incorrect, this looks bad to clients of my software. The only workaround is to hardcode the error message - not nice, especially for localisation.&lt;/p&gt;</description><author>peterrow</author><pubDate>Tue, 09 Apr 2013 13:11:02 GMT</pubDate><guid isPermaLink="false">Commented Issue: Destination Property should use Display Name if available. [18242] 20130409011102P</guid></item><item><title>New Post: Custom Validation no client side validation</title><link>http://foolproof.codeplex.com/discussions/438971</link><description>&lt;div style="line-height: normal;"&gt;Hello all,&lt;br /&gt;
&lt;br /&gt;
I tried to implement the example in&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.nickriggs.com/posts/build-model-aware-custom-validation-attributes-in-asp-net-mvc-2/" rel="nofollow"&gt;http://www.nickriggs.com/posts/build-model-aware-custom-validation-attributes-in-asp-net-mvc-2/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
But the custom client side validation is not happening.&lt;br /&gt;
&lt;br /&gt;
I am using MVC 4.0.&lt;br /&gt;
&lt;br /&gt;
I have used &lt;a href="mailto:@Scripts.Render(&amp;quot;~/Scripts/mvcfoolproof.unobtrusive.min.js&amp;quot;)" rel="nofollow"&gt;@Scripts.Render("~/Scripts/mvcfoolproof.unobtrusive.min.js")&lt;/a&gt; in my View.&lt;br /&gt;
&lt;br /&gt;
Please advise on what m I missing.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;
&lt;/div&gt;</description><author>jaina</author><pubDate>Wed, 03 Apr 2013 15:08:25 GMT</pubDate><guid isPermaLink="false">New Post: Custom Validation no client side validation 20130403030825P</guid></item><item><title>Commented Issue: Issue - NotImplementedException [17357]</title><link>http://foolproof.codeplex.com/workitem/17357</link><description>&amp;#60;p&amp;#62;http&amp;#58;&amp;#47;&amp;#47;forums.asp.net&amp;#47;post&amp;#47;4749014.aspx&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;&amp;#35;160&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;http&amp;#58;&amp;#47;&amp;#47;forums.asp.net&amp;#47;t&amp;#47;1752975.aspx&amp;#47;1&amp;#63;Conditional&amp;#43;validation&amp;#43;with&amp;#43;MVC&amp;#43;Foolproof&amp;#43;Validation&amp;#43;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;Comments: ** Comment from web user: manuel0081 ** &lt;p&gt;related to #15609. Can be closed.&lt;/p&gt;</description><author>manuel0081</author><pubDate>Thu, 21 Feb 2013 11:03:04 GMT</pubDate><guid isPermaLink="false">Commented Issue: Issue - NotImplementedException [17357] 20130221110304A</guid></item><item><title>Commented Issue: "The method or operation is not implemented." - ValidationAttributes and Entity Framework 4 [15609]</title><link>http://foolproof.codeplex.com/workitem/15609</link><description>&amp;#60;p&amp;#62;Hi,&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;&amp;#35;160&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;There doesn&amp;#39;t appear to be anything about this issue in the discussions or issue tracker. Must say, before I begin, I like what you&amp;#39;ve been doing and would very much like to make use of this library in my MVC 3 projects.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;&amp;#35;160&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Anyway, it looks like there&amp;#39;s an issue with the &amp;#39;IsAttribute&amp;#39; attributes &amp;#40;not tested the RequiredIf attributes&amp;#41; when used in conjunction with the Entity Framework &amp;#40;I&amp;#39;m using EF 4.1 with Code First&amp;#41;. When EF is trying to SaveChanges&amp;#40;&amp;#41; the following exception is being raised&amp;#58;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;&amp;#35;160&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#91;NotImplementedException&amp;#58; The method or operation is not implemented.&amp;#93;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   Foolproof.ModelAwareValidationAttribute.IsValid&amp;#40;Object value&amp;#41; &amp;#43;28&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.ComponentModel.DataAnnotations.ValidationAttribute.IsValid&amp;#40;Object value, ValidationContext validationContext&amp;#41; &amp;#43;108&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.ComponentModel.DataAnnotations.ValidationAttribute.GetValidationResult&amp;#40;Object value, ValidationContext validationContext&amp;#41; &amp;#43;29&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.Data.Entity.Internal.Validation.ValidationAttributeValidator.Validate&amp;#40;EntityValidationContext entityValidationContext, InternalMemberEntry property&amp;#41; &amp;#43;107&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;&amp;#35;160&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Not hugely familiar with EF to be able to give you any detailed suggestions&amp;#47;fixes but, since the error is coming from ModelAwareValidationAttribute, I suspect the issue lies around when the validation attributes are being instantiated or something to do with the object inheritance hierarchy.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;&amp;#35;160&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Hope this helps.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;&amp;#35;160&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Cheers,&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Jonny&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;Comments: ** Comment from web user: manuel0081 ** &lt;p&gt;Impact low? change to urgent! It's related to Entity Framework... it's very important to resolve.&lt;/p&gt;</description><author>manuel0081</author><pubDate>Thu, 21 Feb 2013 10:52:24 GMT</pubDate><guid isPermaLink="false">Commented Issue: "The method or operation is not implemented." - ValidationAttributes and Entity Framework 4 [15609] 20130221105224A</guid></item><item><title>Commented Issue: "The method or operation is not implemented." - ValidationAttributes and Entity Framework 4 [15609]</title><link>http://foolproof.codeplex.com/workitem/15609</link><description>&amp;#60;p&amp;#62;Hi,&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;There doesn&amp;#38;&amp;#35;39&amp;#59;t appear to be anything about this issue in the discussions or issue tracker. Must say, before I begin, I like what you&amp;#38;&amp;#35;39&amp;#59;ve been doing and would very much like to make use of this library in my MVC 3 projects.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Anyway, it looks like there&amp;#38;&amp;#35;39&amp;#59;s an issue with the &amp;#38;&amp;#35;39&amp;#59;IsAttribute&amp;#38;&amp;#35;39&amp;#59; attributes &amp;#40;not tested the RequiredIf attributes&amp;#41; when used in conjunction with the Entity Framework &amp;#40;I&amp;#38;&amp;#35;39&amp;#59;m using EF 4.1 with Code First&amp;#41;. When EF is trying to SaveChanges&amp;#40;&amp;#41; the following exception is being raised&amp;#58;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#91;NotImplementedException&amp;#58; The method or operation is not implemented.&amp;#93;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   Foolproof.ModelAwareValidationAttribute.IsValid&amp;#40;Object value&amp;#41; &amp;#43;28&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.ComponentModel.DataAnnotations.ValidationAttribute.IsValid&amp;#40;Object value, ValidationContext validationContext&amp;#41; &amp;#43;108&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.ComponentModel.DataAnnotations.ValidationAttribute.GetValidationResult&amp;#40;Object value, ValidationContext validationContext&amp;#41; &amp;#43;29&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;   System.Data.Entity.Internal.Validation.ValidationAttributeValidator.Validate&amp;#40;EntityValidationContext entityValidationContext, InternalMemberEntry property&amp;#41; &amp;#43;107&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Not hugely familiar with EF to be able to give you any detailed suggestions&amp;#47;fixes but, since the error is coming from ModelAwareValidationAttribute, I suspect the issue lies around when the validation attributes are being instantiated or something to do with the object inheritance hierarchy.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Hope this helps.&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Cheers,&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Jonny&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: ** Comment from web user: manuel0081 ** &lt;p&gt;I have too&lt;/p&gt;</description><author>manuel0081</author><pubDate>Thu, 21 Feb 2013 10:45:09 GMT</pubDate><guid isPermaLink="false">Commented Issue: "The method or operation is not implemented." - ValidationAttributes and Entity Framework 4 [15609] 20130221104509A</guid></item><item><title>New Post: Entity Framework Not Implemented Exception *Solution*</title><link>http://foolproof.codeplex.com/discussions/405505</link><description>&lt;div style="line-height: normal;"&gt;A sample?&lt;br /&gt;
&lt;/div&gt;</description><author>manuel0081</author><pubDate>Wed, 20 Feb 2013 14:29:57 GMT</pubDate><guid isPermaLink="false">New Post: Entity Framework Not Implemented Exception *Solution* 20130220022957P</guid></item><item><title>Created Issue: How to get VB.Net verion of this code (MVC Validation) [19216]</title><link>http://foolproof.codeplex.com/workitem/19216</link><description>Please let me know&lt;br /&gt;</description><author>Pughalveni</author><pubDate>Mon, 21 Jan 2013 11:21:07 GMT</pubDate><guid isPermaLink="false">Created Issue: How to get VB.Net verion of this code (MVC Validation) [19216] 20130121112107A</guid></item><item><title>Commented Issue: RequiredIf not working with radio buttons [18872]</title><link>http://foolproof.codeplex.com/workitem/18872</link><description>Hi,&lt;br /&gt;I want validate the radio button with reuiredIf attribute using dependent value but client side validation deosnt work for radio button. any help&amp;#33;&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: nairik ** &lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Same bug for me, but i suspect that client validation is not working when using sub classes inside your view model.&lt;/p&gt;&lt;p&gt;Example :&lt;/p&gt;&lt;p&gt;public class Test1ViewModel &lt;br&gt;{&lt;br&gt; public Test2ViewModel model2 {get;set;}&lt;br&gt;}&lt;/p&gt;&lt;p&gt;public class Test2ViewModel &lt;br&gt;{&lt;br&gt;  public bool bool1{get;set;}&lt;/p&gt;&lt;p&gt;[RequiredIfTrue(&amp;quot;bool1&amp;quot;)] // This is not working on client side. Please fix this bug :)&lt;br&gt;   public string string1{get;set;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;</description><author>nairik</author><pubDate>Wed, 16 Jan 2013 09:03:22 GMT</pubDate><guid isPermaLink="false">Commented Issue: RequiredIf not working with radio buttons [18872] 20130116090322A</guid></item><item><title>Created Issue: GreaterThan operator compare only days on 'dd M yy' formatted date [19185]</title><link>http://foolproof.codeplex.com/workitem/19185</link><description>When comparing 2 dates with the &amp;#39;dd M yy&amp;#39; format using the GreaterThan operator&amp;#58;&lt;br /&gt;Begin&amp;#58; 16 Jan 2013&lt;br /&gt;End&amp;#58; 06 Feb 2013&lt;br /&gt;&lt;br /&gt;The GreaterThan operator only check the days instead of the entire date&amp;#40;day, month and year&amp;#41; and as a result of it 16 days is greater than 06 days and the validation failed&amp;#58; &amp;#39;Begin must be greater than End&amp;#39;, which is obviously unwanted behavior.&lt;br /&gt;&lt;br /&gt;Please help.&lt;br /&gt;&lt;br /&gt;Thank you&lt;br /&gt;</description><author>ynevet</author><pubDate>Mon, 14 Jan 2013 08:27:52 GMT</pubDate><guid isPermaLink="false">Created Issue: GreaterThan operator compare only days on 'dd M yy' formatted date [19185] 20130114082752A</guid></item><item><title>Commented Issue: Support internation date and time formats [17417]</title><link>http://foolproof.codeplex.com/workitem/17417</link><description>&amp;#60;p&amp;#62;Please add support for international date and time formats in client validation &amp;#40;unobtrusive&amp;#41;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;&amp;#38;nbsp&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&amp;#60;p&amp;#62;Such as &amp;#38;&amp;#35;39&amp;#59;dd&amp;#47;mm&amp;#47;yyyy&amp;#38;&amp;#35;39&amp;#59; and &amp;#38;&amp;#35;39&amp;#59;dd.mm.yyyy&amp;#38;&amp;#35;39&amp;#59;&amp;#60;&amp;#47;p&amp;#62;&lt;br /&gt;&lt;br /&gt;Comments: ** Comment from web user: stare ** &lt;p&gt;Second that!&lt;/p&gt;</description><author>stare</author><pubDate>Fri, 07 Dec 2012 06:41:55 GMT</pubDate><guid isPermaLink="false">Commented Issue: Support internation date and time formats [17417] 20121207064155A</guid></item><item><title>New Post: Entity Framework Not Implemented Exception *Solution*</title><link>http://foolproof.codeplex.com/discussions/405505</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;If&amp;nbsp;you are getting the&amp;nbsp;Not Implemented Exception on your EF Models, this is what I did to *fix* it:&lt;/p&gt;
&lt;p&gt;My solution has a&amp;nbsp;domain project (POCO) with the repositories in there too and a website project.&lt;/p&gt;
&lt;p&gt;I was trying to&amp;nbsp;utilize&amp;nbsp;the same POCO models as the models website, adding the [RequiredIfEmpty(&amp;quot;field&amp;quot;)] anotations right there.&amp;nbsp;bad idea to begin with, I know.&lt;/p&gt;
&lt;p&gt;What I ended up doing was creating ViewModels on the website with all the fields as the POCO plus the validation Annotations, &amp;nbsp;i also added&amp;nbsp;&lt;a title="Automapper" href="https://github.com/AutoMapper/AutoMapper"&gt;AutoMapper&lt;/a&gt;&amp;nbsp;to map the POCO
 and the ViewModels easily.&lt;/p&gt;
&lt;p&gt;By doing this i was able to fully utilize the&lt;/p&gt;
&lt;div style="display:inline!important"&gt;&lt;a id="ProjectTitle1" href="http://foolproof.codeplex.com/"&gt;MVC Foolproof Validation&lt;/a&gt;. not only that but my solution is a lot more decoupled and the domain is a lot lighter.&lt;/div&gt;
&lt;p&gt;while this doesn't really solves the&amp;nbsp;Not Implemented Exception, it gives you a work around it.&lt;/p&gt;
&lt;div style="display:inline!important"&gt;hope this helps.&lt;/div&gt;
&lt;/div&gt;</description><author>shuzz</author><pubDate>Tue, 04 Dec 2012 11:26:21 GMT</pubDate><guid isPermaLink="false">New Post: Entity Framework Not Implemented Exception *Solution* 20121204112621A</guid></item><item><title>New Post: RequiredIfTrue client side validation</title><link>http://foolproof.codeplex.com/discussions/394183</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hey guys. I made a quick example project using Robelind's&amp;nbsp;original&amp;nbsp;example. The only thing I changed was adding a hidden input for the bool property like I mentioned before. Clientside seems validation works fine in MVC 4. Hope this helps:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://dl.dropbox.com/u/73019/Examples/QuickTest.zip"&gt;https://dl.dropbox.com/u/73019/Examples/QuickTest.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>nickriggs</author><pubDate>Tue, 27 Nov 2012 14:34:33 GMT</pubDate><guid isPermaLink="false">New Post: RequiredIfTrue client side validation 20121127023433P</guid></item><item><title>New Post: RequiredIfTrue client side validation</title><link>http://foolproof.codeplex.com/discussions/394183</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Sorry to nag you, but will there be an update for MVC 4?&lt;/p&gt;
&lt;/div&gt;</description><author>robelind</author><pubDate>Tue, 27 Nov 2012 13:22:27 GMT</pubDate><guid isPermaLink="false">New Post: RequiredIfTrue client side validation 20121127012227P</guid></item><item><title>Reviewed: Beta 0.9.4517 (Nov 27, 2012)</title><link>http://foolproof.codeplex.com/releases/view/87805#ReviewBy-eefhert</link><description>Rated 5 Stars &amp;#40;out of 5&amp;#41; - This is really excellent work&amp;#33; I recently started building an MVC 3 website which has rather complicated forms with nested radiobuttons. So the RequiredIf attribute is a not to miss validation option&amp;#33;&amp;#10;&amp;#10;I like to see some donate button so we can support this kind of codeplex gems.&amp;#10;&amp;#10;Best regards,&amp;#10;&amp;#10;Evert</description><author>eefhert</author><pubDate>Tue, 27 Nov 2012 09:00:26 GMT</pubDate><guid isPermaLink="false">Reviewed: Beta 0.9.4517 (Nov 27, 2012) 20121127090026A</guid></item><item><title>Commented Issue: RequiredIf using Regex against number field never validates [18974]</title><link>http://foolproof.codeplex.com/workitem/18974</link><description>I have a state field that is only required if the user select USA or Canada from a dropdown. I used RequiredIf with the RegExMatch operator. This works perfectly with server side validation, but the unobtrusive validation never shows that field as invalid.&lt;br /&gt;&lt;br /&gt;&amp;#91;RequiredIf&amp;#40;&amp;#38;quot&amp;#59;Country&amp;#38;quot&amp;#59;, Operator.RegExMatch, &amp;#38;quot&amp;#59;&amp;#40;1033&amp;#124;4105&amp;#41;&amp;#38;quot&amp;#59;, ErrorMessage &amp;#61; &amp;#38;quot&amp;#59;&amp;#123;0&amp;#125; is required&amp;#38;quot&amp;#59;&amp;#41;&amp;#93;&lt;br /&gt;public string State &amp;#123; get&amp;#59; set&amp;#59; &amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#91;Required&amp;#40;ErrorMessage &amp;#61; &amp;#38;quot&amp;#59;&amp;#123;0&amp;#125; is required&amp;#38;quot&amp;#59;&amp;#41;&amp;#93;&lt;br /&gt;public int Country &amp;#123; get&amp;#59; set&amp;#59; &amp;#125;&lt;br /&gt;&lt;br /&gt;Looking at the source of mvcfoolproof.unobtrusive.js, the issue is because it is parsing value2 &amp;#40;&amp;#38;quot&amp;#59;&amp;#40;1033&amp;#124;4105&amp;#41;&amp;#38;quot&amp;#59;&amp;#41; to a number because it sees that value1 &amp;#40;&amp;#38;quot&amp;#59;1033&amp;#38;quot&amp;#59;&amp;#41; is a number. This makes the RegEx never fail because value2 is NaN. &lt;br /&gt;&lt;br /&gt;Here is how I changed that block of code to make it work. Essentially I&amp;#39;m keeping the original values around even after being parsed, because you should never parse the regex pattern.&lt;br /&gt;&lt;br /&gt;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61; Code Fix &amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&lt;br /&gt;&amp;#9;var originalValue1 &amp;#61; value1&amp;#59;&lt;br /&gt;&amp;#9;var originalValue2 &amp;#61; value2&amp;#59;&lt;br /&gt;    if &amp;#40;isDate&amp;#40;value1&amp;#41;&amp;#41; &amp;#123;&lt;br /&gt;        value1 &amp;#61; Date.parse&amp;#40;value1&amp;#41;&amp;#59;&lt;br /&gt;        value2 &amp;#61; Date.parse&amp;#40;value2&amp;#41;&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;    else if &amp;#40;isBool&amp;#40;value1&amp;#41;&amp;#41; &amp;#123;&lt;br /&gt;        if &amp;#40;value1 &amp;#61;&amp;#61; &amp;#38;quot&amp;#59;false&amp;#38;quot&amp;#59;&amp;#41; value1 &amp;#61; false&amp;#59;&lt;br /&gt;        if &amp;#40;value2 &amp;#61;&amp;#61; &amp;#38;quot&amp;#59;false&amp;#38;quot&amp;#59;&amp;#41; value2 &amp;#61; false&amp;#59;&lt;br /&gt;        value1 &amp;#61; &amp;#33;&amp;#33;value1&amp;#59;&lt;br /&gt;        value2 &amp;#61; &amp;#33;&amp;#33;value2&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;    else if &amp;#40;isNumeric&amp;#40;value1&amp;#41;&amp;#41; &amp;#123;&lt;br /&gt;        value1 &amp;#61; parseFloat&amp;#40;value1&amp;#41;&amp;#59;&lt;br /&gt;        value2 &amp;#61; parseFloat&amp;#40;value2&amp;#41;&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;&lt;br /&gt;    switch &amp;#40;operator&amp;#41; &amp;#123;&lt;br /&gt;        case &amp;#38;quot&amp;#59;EqualTo&amp;#38;quot&amp;#59;&amp;#58; if &amp;#40;value1 &amp;#61;&amp;#61; value2&amp;#41; return true&amp;#59; break&amp;#59;&lt;br /&gt;        case &amp;#38;quot&amp;#59;NotEqualTo&amp;#38;quot&amp;#59;&amp;#58; if &amp;#40;value1 &amp;#33;&amp;#61; value2&amp;#41; return true&amp;#59; break&amp;#59;&lt;br /&gt;        case &amp;#38;quot&amp;#59;GreaterThan&amp;#38;quot&amp;#59;&amp;#58; if &amp;#40;value1 &amp;#38;gt&amp;#59; value2&amp;#41; return true&amp;#59; break&amp;#59;&lt;br /&gt;        case &amp;#38;quot&amp;#59;LessThan&amp;#38;quot&amp;#59;&amp;#58; if &amp;#40;value1 &amp;#38;lt&amp;#59; value2&amp;#41; return true&amp;#59; break&amp;#59;&lt;br /&gt;        case &amp;#38;quot&amp;#59;GreaterThanOrEqualTo&amp;#38;quot&amp;#59;&amp;#58; if &amp;#40;value1 &amp;#38;gt&amp;#59;&amp;#61; value2&amp;#41; return true&amp;#59; break&amp;#59;&lt;br /&gt;        case &amp;#38;quot&amp;#59;LessThanOrEqualTo&amp;#38;quot&amp;#59;&amp;#58; if &amp;#40;value1 &amp;#38;lt&amp;#59;&amp;#61; value2&amp;#41; return true&amp;#59; break&amp;#59;&lt;br /&gt;        case &amp;#38;quot&amp;#59;RegExMatch&amp;#38;quot&amp;#59;&amp;#58; return &amp;#40;new RegExp&amp;#40;originalValue2&amp;#41;&amp;#41;.test&amp;#40;value1&amp;#41;&amp;#59; break&amp;#59;&lt;br /&gt;        case &amp;#38;quot&amp;#59;NotRegExMatch&amp;#38;quot&amp;#59;&amp;#58; return &amp;#33;&amp;#40;new RegExp&amp;#40;value2&amp;#41;&amp;#41;.test&amp;#40;value1&amp;#41;&amp;#59; break&amp;#59;&lt;br /&gt;    &amp;#125;&lt;br /&gt;Comments: ** Comment from web user: jwynveen ** &lt;p&gt;The other option would be to parse value1 and value2 separately since they very well could be different types. Something like this:&lt;/p&gt;&lt;p&gt;    if (isDate(value1)) {&lt;br&gt;        value1 = Date.parse(value1);&lt;br&gt;    }&lt;br&gt;    else if (isBool(value1)) {&lt;br&gt;        if (value1 == &amp;quot;false&amp;quot;) value1 = false;&lt;br&gt;        value1 = !!value1;&lt;br&gt;    }&lt;br&gt;    else if (isNumeric(value1)) {&lt;br&gt;        value1 = parseFloat(value1);&lt;br&gt;    }&lt;br&gt;    if (isDate(value2)) {&lt;br&gt;        value2 = Date.parse(value2);&lt;br&gt;    }&lt;br&gt;    else if (isBool(value2)) {&lt;br&gt;        if (value2 == &amp;quot;false&amp;quot;) value2 = false;&lt;br&gt;        value2 = !!value2;&lt;br&gt;    }&lt;br&gt;    else if (isNumeric(value2)) {&lt;br&gt;        value2 = parseFloat(value2);&lt;br&gt;    }&lt;br&gt;==end code==&lt;br&gt;That could obviously be cleaned up into a shared function that parses each value, but I think you get the point.&lt;/p&gt;</description><author>jwynveen</author><pubDate>Mon, 26 Nov 2012 22:56:12 GMT</pubDate><guid isPermaLink="false">Commented Issue: RequiredIf using Regex against number field never validates [18974] 20121126105612P</guid></item></channel></rss>