title: Sprint Boot, Thymeleaf and Form Input Validation - Changing the color of the error message
body: <p>My environment is Spring Boot 1.2.7.RELEASE using Thymeleaf.</p>
  
  <p>I have validation for fields working nicely, but I would like to do some formatting for the error message. I seems that whatever I put into the message on the server side gets passed to my page escaped, so I guess I have to do this in my Thymeleaf template using css. </p>
  
  <p>But how? I have tried a bunch of things, like this:</p>
  
  <pre><code>&lt;label for="password" title="Enter your password here"&gt;Password&lt;/label&gt; 
  &lt;input type="password" name="password" id="password" th:field="*{password}" cssErrorClass="form-field-error" size="15"/&gt; 
  &lt;p class="form-error-text" th:if="${#fields.hasErrors('password')}" th:errors="*{password}"&gt;There was a problem with your password&lt;/p&gt;
  </code></pre>
  
  <p>This causes the error text not to be rendered at all. If I remove the class="form-field-text" I get the error message to render int eh correct spot. </p>
  
  <p>So I guess the bottom line is, how can I apply a css class to the validation error text?</p>