title: Nested datatable in JSF 2.0
body: <p>I am trying to fetch the questions and the associated answers. I am able to get the questions fine but the nested datatable does not even recognize the properties each answer has, and this is also pointed out by the IDE as well. Maybe this is not the right way to go about this. How do I iterate over the answers associated with each question ?</p>
  
  <pre><code> &lt;h:dataTable value="#{questionBacking.recentlyAskedQuestions}" var="questions"
                   rendered="#{questionBacking.recentlyAskedQuestions.size() &gt; 0}"
                   border="1"&gt;
  
                  &lt;h:column&gt;
  
                     &lt;h:outputText  value="#{questions.questionTitle}" /&gt;
  
                     &lt;br/&gt;
                     &lt;h:outputText  value="#{questions.questionBody}" /&gt;
  
                 &lt;/h:column&gt;
  
                &lt;h:dataTable value="#{questions.answers}" var="answers"&gt;
                &lt;tr&gt;
                    &lt;h:outputText  value="#{answers.answer}" /&gt;
                &lt;/tr&gt;
  
  
                &lt;/h:dataTable&gt;
  
    &lt;/h:dataTable&gt;
  </code></pre>