title: JRXML - Display a checkbox in a table
body: <p>I can't manage to display a checkbox in a table in <em>jrxml</em>.</p>
  
  <p>Here is a sample of my code:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;detail&gt;
      &lt;band height="45" splitType="Stretch"&gt;
          &lt;textField isBlankWhenNull="true"&gt;
              &lt;reportElement style="MyCustomStyle" stretchType="RelativeToTallestObject" x="650" y="0" width="80" height="35"/&gt;
              &lt;textElement textAlignment="Center"/&gt;
              &lt;textFieldExpression class="java.lang.Boolean"&gt;&lt;![CDATA[$F{myBooleanVariable}]]&gt;
              &lt;/textFieldExpression&gt;
          &lt;/textField&gt;
      &lt;/band&gt;
  &lt;/detail&gt;
  </code></pre>
  
  <p>The column just displays <strong>true</strong> or <strong>false</strong>. I supposed that specifying <code>class="java.lang.Boolean"</code> in the <strong><em>textFieldExpression</em></strong> element would convert the value to a checkbox but apparently, I need more than that.</p>
  
  <p>Any idea of what I'm doing wrong?</p>