title: Display dynamic rows with Column using Jsf 2.0 and Primefaces 3.0
body: <p><img src="https://i.stack.imgur.com/CLnDq.png" alt="enter image description here"></p>
  
  <p>I have student records which I need to display as per shown in this image.</p>
  
  <p>I am using Jsf 2.0 and primefaces 3.0 , I am trying by using  but still unable to get correct format.</p>
  
  <blockquote>
    <p>My problem is , there is a coulmn with name Exam like FE, SE, TE which
    comes under single column and there are fixed as there will be only 3
    examinations.Means for first 3 columns in images need row span 3 as
    each record will have FE -Math ,SE-Math and TE-Maths and... so on
    marks for all s3 subjects So how can we make this structure possible
    like 'for 1 record 3 rowspan' ?</p>
  </blockquote>
  
  <p>How can we achieve this structure as per shown in this image ?</p>
  
  <pre><code>&lt;p:dataTable var="s" value="#{tableBean.studentSummary}"&gt;  
      &lt;p:column headerText="ID"&gt;  
          &lt;h:outputText value="#{s.ID}" /&gt;  
      &lt;/p:column&gt;  
  
      &lt;p:column headerText="Name"&gt;  
          &lt;h:outputText value="#{s.name}" /&gt;  
      &lt;/p:column&gt;  
  
      &lt;p:column headerText="Passing Date"&gt;  
          &lt;h:outputText value="#{s.passDate}" /&gt;  
      &lt;/p:column&gt;  
  
      &lt;p:column headerText="Exam"&gt;  
          &lt;h:outputText value="#{s.exam}" /&gt;  
      &lt;/p:column&gt;  
  
      &lt;p:column headerText="Maths"&gt;  
          &lt;h:outputText value="#{s.math}" /&gt;  
      &lt;/p:column&gt;  
  
      &lt;p:column headerText="Physiscs"&gt;  
          &lt;h:outputText value="#{s.phy}" /&gt;  
      &lt;/p:column&gt;  
  
      &lt;p:column headerText="Chemistry"&gt;  
          &lt;h:outputText value="#{s.chem}" /&gt;  
      &lt;/p:column&gt;
  
  &lt;/p:dataTable&gt;
  </code></pre>