0 Replies Latest reply on Nov 6, 2006 7:33 PM by Anne Forumer

    Showing nested objects in nested tables

    Anne Forumer Newbie

      I have following objects:

      ArrayList managers;

      String name;
      Arraylist employees;

      String name;
      int yearsOfService;

      I'd like to be able to show one table, AllManagers, each row of which contains information about each manager - name and in the next cell a list of all his employees.

      So I started with

      <h:dataTable value=#{allManagers} var="manager">

      Then nested inside it

      <h:dataTable value="#{manager.employees}" var="employee">
       <h:selectOneMenu readonly="true">
       <f:selectItems value="#{employee.name}" />

      for allManagers. The name shows up as expected. But the employees are not showing up!

      Is this the right way to handle such a situation? I'd appreciate any references or tips.