title: Why the ValidationMessage component does not show error message in Blazor wasm when using the EditContext
body: <p>I create a form with Blazor wasm and I use the EditContext attribute (not the Model attribute)</p>
  <pre><code>&lt;EditForm EditContext=&quot;@FormEditContext&quot;  OnSubmit=&quot;@HandleSubmitAsync&quot;&gt;
  </code></pre>
  <p>The problem I have is with the <strong>ValidationMessage</strong> component in my razor page: it does not show the error message.
  If I use the Model attribute instead of EditContext attribute, the ValidationMessage work well, it show the error message...</p>
  <p>The code that handle the submit is:</p>
  <pre><code>[Parameter]
  public EventCallback&lt;bool&gt; ValidationResult { get; set; }
  
  public async Task HandleSubmitAsync()
  {
     bool isValid = FormEditContext.Validate();
     await ValidationResult.InvokeAsync(isValid);
  }
  </code></pre>
  <p>for now, nothing is done by the ValidationResult handler... so this is not a problem...</p>
  <p>I create the EditContext like this:</p>
  <pre><code>private EditContext FormEditContext;
  protected override Task OnInitializedAsync()
  {
     FormEditContext = new EditContext(MyModel);
     return base.OnInitializedAsync();
  }
  </code></pre>
  <p>In the razor page I use the ValidationMessage component like this:</p>
  <pre><code>&lt;ValidationMessage For=@(() =&gt; MyModel.FirstName)&gt;&lt;/ValidationMessage&gt;
  </code></pre>
  <p>My model implement IValidatableObject and in the Validate function return validation lie this:</p>
  <pre><code>yield return new ValidationResult(&quot;FirstName required&quot;, new[] { &quot;FirstName&quot; });
  </code></pre>
  <p>For information, the ValidationSummary component show the error message..</p>