title: SmartGWT Dynamic Form edit record with boolean values
body: <p>I've got following problem using SmartGWT 2.4:</p>
  
  <ul>
  <li>we are having a DynamicForm showing several static text fields (so the form is in readonly mode). The form uses a datasource in the background and our own <strong>FormItemFactory</strong> to create proper form items based on our meta data. Some of the form items contain boolean values displayed as strings: like <em>'isHidden': false</em> or <em>'canShow': true</em>.</li>
  <li>by user action (button click) we need to switch the form to edit mode. </li>
  </ul>
  
  <p>We do it in following way:</p>
  
  <ul>
  <li>we first gather the form values as <code>rec = form.getValuesAsRecord()</code> getting a Record object</li>
  <li>then we create a new dynamic form and set into it the same datasource as original has</li>
  <li>then we call the <code>newForm.editRecord(rec)</code> method of newly created dynamic form</li>
  </ul>
  
  <p>This way the form static values are shown as editable input fields. <strong>However the problem is with those boolean values. They are correctly transformed into check boxes but all of them are checked by default.</strong> </p>
  
  <p>I think that the string values 'false' or 'true' are not parsed into boolean values and set as value for respective check box item.</p>
  
  <p>Can I somehow influence this process? I tried to provide an anonymous implementation of <strong>FormItemValueParser</strong> to <strong>CheckboxItem</strong> but it turns out to be use only by free text form items.</p>
  
  <p>I'll be really thankful for any given hint.</p>