title: I want to display the data in list using zk by taking data from dataprovider
body: <p>I have these files and i want to display the datas in the list.</p>
  
  <h2>Person.java</h2>
  
  <pre><code>package com.person.info;
  
  public class Person {
  
      private int id;
      private String name;
      private String address;
      public int getId() {
          return id;
      }
      public void setId(int id) {
          this.id = id;
      }
      public String getName() {
          return name;
      }
      public void setName(String name) {
          this.name = name;
      }
      public String getAddress() {
          return address;
      }
      public void setAddress(String address) {
          this.address = address;
      }
      public Person(int id, String name, String address) {
          super();
          this.id = id;
          this.name = name;
          this.address = address;
      }
  
  
  }
  </code></pre>
  
  <h2>PersonDataProvider.java</h2>
  
  <pre><code>package com.person.info;
  
  import java.util.ArrayList;
  import java.util.List;
  
  public class PersonDataProvider {
      public  static List&lt;Person&gt; getPerson() {
  
  
          List&lt;Person&gt; person=new ArrayList&lt;Person&gt;();
          person.add( new Person(1,"Prabin","Thimi"));
          person.add( new Person(2,"Rabin","Bhaktapur"));
  
          return person;
      }
  
  }
  </code></pre>
  
  <h2>PersonController.java</h2>
  
  <pre><code>package com.person.info;
  
  import java.util.List;
  
  import org.zkoss.zk.ui.Component;
  import org.zkoss.zk.ui.select.SelectorComposer;
  
  public class PersonController extends SelectorComposer&lt;Component&gt; {
  
      /**
       *
       */
      private static final long serialVersionUID = 1L;
      List&lt;Person&gt; person = PersonDataProvider.getPerson();
  
  
  
      public List&lt;Person&gt; getPerson()
      {
          return person;
  
      }
  </code></pre>
  
  <h2>Person.zul</h2>
  
  <pre><code>&lt;?page title="new page title" contentType="text/html;charset=UTF-8"?&gt;
  &lt;zk&gt;
      &lt;window title="new page title" border="normal" apply="com.person.info.PersonController"&gt;
          &lt;listbox model="${$composer.person}"&gt;
              &lt;listhead&gt;
                  &lt;listheader label="ID" sort="auto" /&gt;
                  &lt;listheader label="Name" sort="auto" /&gt;
                  &lt;listheader label="Address" sort="auto" /&gt;
  
  
              &lt;/listhead&gt;
              &lt;template name="model"&gt;
                  &lt;listitem&gt;
                      &lt;listcell label="${each.id}" /&gt;
                      &lt;listcell label="${each.name}" /&gt;
                      &lt;listcell label="${each.address}" /&gt;
                  &lt;/listitem&gt;
              &lt;/template&gt;
  
  
  
          &lt;/listbox&gt;
      &lt;/window&gt;
  &lt;/zk&gt;
  </code></pre>