title: "readonly if parameter" is not working in thymeleaf
body: <p>If the current url have the parameter "action=edit" I want some controls marked as readonly.</p>
  
  <p>I've tried the following:</p>
  
  <p>URL: <a href="http://x.x.x.x:8080/department?id=000001&amp;action=edit" rel="nofollow noreferrer">http://x.x.x.x:8080/department?id=000001&amp;action=edit</a></p>
  
  <pre><code>&lt;input type="text" th:placeholder="#{department.id}" class="form-control" th:field="*{id}" th:readonly="${param.action == 'edit'}"&gt;
  </code></pre>
  
  <p>This is always false for some reason. I've also tried showing the value:</p>
  
  <pre><code>&lt;input type="text" class="form-control" th:value="${param.action}" th:readonly="${param.action=='edit'}"&gt;
  </code></pre>
  
  <p>This show the value 'edit' in the input but readonly is still false. Then I tried the following: "${param.action <strong>!=</strong> 'edit'}" and this is working. Why? param.action is equal to 'edit' but that IF is taking some different value.</p>