title: JSF Datatables : How to handle columns with subtype specific content
body: <p>I have a scenario where I have a list of objects that  extend a common supertype.
  This list of objects is supplied to the h:datatable as it's value.</p>
  
  <p>The last column in the table has inputs that are subtype-specific whereas all the other columns apply to fields found in the common superclass.</p>
  
  <p>What is the most elegant way of rendering the subtype-specific fields ?</p>
  
  <p>At the moment I am doing this:</p>
  
  <pre><code>&lt;h:column&gt;
    &lt;c:if test="#{cover.cd eq 2}"&gt;
       //Markup specific to this subtype
    &lt;/c:if&gt;
    &lt;c:if test="#{cover.cd eq 3}"&gt;
       //Markup specific to this subtype
    &lt;/c:if&gt;
  &lt;/h:column&gt;
  </code></pre>