title: MVC 3 C# RequiredAttribute Extension
body: <p>I've tried to extend the RequiredAttribute to make some localizations. I wrote this:</p>
  
  <p><code>
  public class LocalizedRequiredAttribute : RequiredAttribute</p>
  
  <pre><code>{
      public LocalizedRequiredAttribute(string errorMessageResourceName)
      {
          this.ErrorMessageResourceName = string.IsNullOrEmpty(errorMessageResourceName) ? "Required_ValidationError" : errorMessageResourceName;
          ErrorMessageResourceType = typeof(bop.Core.Resources.Label);
      }
  }
  </code></pre>
  
  <p></code></p>
  
  <p>At the client side no validation message is rendered. What is wrong?
  Thanks for help.
  Luca</p>