title: Using EditorFor with IEnumerable<string> in MVC 3
body: <p>I have an IEnumerable containing strings, using Data Annotations for validation:</p>
  
  <pre><code>[Required(ErrorMessage = "This is required.")]
  [Remote("IsValid", "ControllerName")]
  public IEnumerable&lt;string&gt; MyList { get; set; }    
  </code></pre>
  
  <p>I'm then using this with an editor template. This is how I call it in my view:</p>
  
  <pre><code>@Html.EditorFor(m =&gt; m.MyList)
  </code></pre>
  
  <p>Finally, my template takes this IEnumarable and creates a number of form elements for each element:</p>
  
  <pre><code>@model IEnumerable&lt;string&gt;
  @foreach (var str in Model)
  {
      &lt;li&gt;
          @Html.LabelFor(m =&gt; str, "My Label")
          @Html.TextBoxFor(m =&gt; str)
          @Html.ValidationMessageFor(m =&gt; str)
      &lt;/li&gt;
  }
  </code></pre>
  
  <p>Even though the form elements do render correctly, am I approaching this correctly? Also, I have noticed that it no longer validates. How can I resolve this?</p>