title: Thymeleaf - How to add checked attribute to input conditionally
body: <p>As you know, <code>input</code> component has an attribute, <code>checked</code> to whether mark the checkbox as enabled by default or not. </p>
  
  <pre><code>&lt;input type="checkbox" name="mycheckbox" checked="checked"/&gt;
  </code></pre>
  
  <p>To disable the checkbox by default, the <code>checked</code> exception should be declared. Is it possible to set <code>checked</code> attribute by a flag in Thymeleaf?</p>