title: How do I bind a checkbox to a boolean in Play! framework
body: <p>An app I'm working on using the Play! Framework has an object called gift with a boolean property, called Taken.  How do I show the state of this value as a checkbox on my view?  I've tried :-</p>
  
  <pre><code>&lt;input id="gift_Taken" class="" type="checkbox" name="gift.Taken" value="true"  /&gt;
  &lt;input type="hidden" name="gift.Taken" value="false" /&gt;
  </code></pre>
  
  <p>based on examples I've seen from the autogenerated CRUD forms, but the checkbox is not checked when the property is True, which is what I'm aiming for.</p>
  
  <p>Anyone know the correct way to achieve this?</p>