title: JSF - populate values at runtime
body: <p>Halo
  My name is Sergie,I working on my school project using jsf spring and jpa to built the school automation system. i am learning jsf. 
  I need your help, Three header</p>
  
  <blockquote>
    <p>City      |           School       |  Add/Remove</p>
  </blockquote>
  
  <pre><code>&lt;c:column&gt;
      &lt;f:facet name="header"&gt;
      &lt;c:outputText value="City" /&gt;
  &lt;/f:facet&gt;
  
      &lt;c:outputText id="ukrCity" value="" " /&gt;
  &lt;/c:column&gt;
  
  &lt;c:column&gt;
  &lt;f:facet name="header"&gt;
  &lt;c:outputText value="School" /&gt;
  &lt;/f:facet&gt;
  &lt;c:inputText id="school" value=""
          maxlength="12" " /&gt;
              &lt;/c:column&gt;
  
  &lt;c:column&gt;
  &lt;f:facet name="header"&gt;
  &lt;c:outputText value="Add/Remove" /&gt;
  &lt;/f:facet&gt;
  &lt;c:selectBooleanCheckbox
      id="addremove"
          value=""
          rendered="" /&gt;
  &lt;/c:column&gt;
  
  
  
  
   City      |           School       |  Add/Remove
  
  
   Київ               "textbox"           "checkbox"
  
   Харків               "textbox"           "checkbox"
  </code></pre>
  
  <p>Cities are populated from City class    </p>
  
  <pre><code>public class UkrCity {                     
  
  private List&lt;A&gt; ukrCities;
  
  public List&lt;A&gt; getUkrCities() {
          return ukrCities;
      }
  
  public void setUkrCities(final List&lt;A&gt; ukrCities) {
          this.ukrCities= ukrCities;
      }
  
   private void allCities() {
          //add all cities in a list
          ukrCities.add("Київ");
          ukrCities.add("Харків");
      }
  }
  </code></pre>
  
  <p>how to show ukrcities on xhtml page under City and blank textbox and checkbox under school and add/remove tav. </p>
  
  <p>thank you
  sorry my bad english. </p>