0 Replies Latest reply on Aug 26, 2011 4:44 AM by Satya K

    Iterate complex object in rich:extendedDataTable

    Satya K Newbie

      Hi All,

      I have list of Employee objects and structure Employee is say...

      Employee {
          String name;
          String address;
          List<String> phoneNum;
      }

      I have to iterate through this List<Employee> and display a row of name, address and phoneNum using rich:extendedDataTable.

       

      It is also sure that all Employee will only have 2 phone numbers so that table display is proper.

       

      If the phone numbers were attributes of Employee object, then it is straight forward to iterate and build a row for every employee, but how about this case wherein while iterating through List<Employee>, one more loop needs to be created to go through the phone numbers?

       

      Is it somehow possible using rich:extendedDataTable?

       

      Regards,

      Satya