title: h:inputText returning null values into Data table
body: <p>I'm sure this is a common problem but I can't seem to find a solution to it at all.  Basically when I add the data I want into each of the input text boxes and click the command button all seen on the input page below,  The data does not go through to the designated data table and I am left with null values instead. </p>
  
  <p>This is the xhtml code for inputting those values: </p>
  
  <pre class="lang-html prettyprint-override"><code> &lt;h3&gt; Please fill in the boxes below and click save when you have finished.&lt;/h3&gt;
              &lt;h:form&gt;
                  &lt;table&gt;
                      &lt;tr&gt;
                  &lt;td&gt;Id Number :&lt;/td&gt;
                          &lt;td&gt;&lt;h:inputText size="20" value="#{collectors.ID}" /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;tr&gt;
                  &lt;td&gt;Name :&lt;/td&gt;
                          &lt;td&gt;&lt;h:inputText size="20" value="#{collectors.name}" /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;tr&gt;
                  &lt;td&gt;Release Date :&lt;/td&gt;
                          &lt;td&gt;&lt;h:inputText size="20" value="#{collectors.releaseDate}" /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;tr&gt;
                  &lt;td&gt;Platform :&lt;/td&gt;
                          &lt;td&gt;&lt;h:inputText size="20" value="#{collectors.platform}" /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;tr&gt;
                  &lt;td&gt;Genre :&lt;/td&gt;
                          &lt;td&gt;&lt;h:inputText size="20" value="#{collectors.genre}" /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;tr&gt;
                  &lt;td&gt;Developer :&lt;/td&gt;
                          &lt;td&gt;&lt;h:inputText size="20" value="#{collectors.developer}" /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
  
                      &lt;tr&gt;
                  &lt;td&gt;Publisher :&lt;/td&gt;
                          &lt;td&gt;&lt;h:inputText size="20" value="#{collectors.publisher}" /&gt;&lt;/td&gt;
                      &lt;/tr&gt;
  
                  &lt;/table&gt;
  
                  &lt;h:commandButton value="SAVE"  action="#{collectors.saveAction}"  /&gt;
  
              &lt;/h:form&gt;
  </code></pre>
  
  <p>This is the code for data table that should display that data: </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;h:form&gt;
  
              &lt;h:dataTable value="#{collectors.collectionList}"  var="c" border ="2"&gt;
  
               &lt;h:column&gt;
              &lt;f:facet name="header"&gt;
                  ID NO
                  &lt;/f:facet&gt;
                  #{c.ID}
  
               &lt;/h:column&gt;
  
              &lt;h:column&gt;
                   &lt;f:facet name="header"&gt;
                      Name
                  &lt;/f:facet&gt;   
                  #{c.name}
              &lt;/h:column&gt;
  
              &lt;h:column&gt;
                      &lt;f:facet name="header"&gt;
                      Release Date
                      &lt;/f:facet&gt;
                      #{c.releaseDate}
              &lt;/h:column&gt;
  
              &lt;h:column&gt;
                      &lt;f:facet name="header"&gt;
                      Platform
                      &lt;/f:facet&gt;
                      #{c.platform}
             &lt;/h:column&gt;
             &lt;h:column&gt;
                      &lt;f:facet name="header"&gt;
                      Genre
                      &lt;/f:facet&gt;
                      #{c.genre}
             &lt;/h:column&gt;
  
             &lt;h:column&gt;
                       &lt;f:facet name="header"&gt;
                      Developer
                      &lt;/f:facet&gt;
                      #{c.developer}
             &lt;/h:column&gt;
  
             &lt;h:column&gt;
                       &lt;f:facet name="header"&gt;
                      Publisher
                      &lt;/f:facet&gt;
                      #{c.publisher}
             &lt;/h:column&gt;
  
              &lt;h:column&gt;
  
              &lt;f:facet name="header"&gt;Action&lt;/f:facet&gt;
  
              &lt;h:commandLink value="Delete" action="#{collectors.deleteAction(c)}" /&gt;
  
              &lt;/h:column&gt;
              &lt;/h:dataTable&gt;
  </code></pre>
  
  <p>And my Java Managed  Bean Code:</p>
  
  <pre><code>package bean;
  
      import java.util.ArrayList;
      import java.util.Arrays;
      import javax.faces.bean.SessionScoped;
      import java.io.Serializable;
  
  
  @Named(value = "collectors")
  @SessionScoped
  
  public class CollectorsBean implements Serializable{
  
  
      private static final long serialVersionUID = 1L;
  
  
  int ID; 
  String Name;
  String ReleaseDate;
  String Platform;
  String Genre;
  String Developer;
  String Publisher;
  
  
  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 getReleaseDate() {
      return ReleaseDate;
  }
  
  public void setReleaseDate(String ReleaseDate) {
      this.ReleaseDate = ReleaseDate;
  }
  
  public String getPlatform() {
      return Platform;
  }
  
  public void setPlatform(String Platform) {
      this.Platform = Platform;
  }
  
  public String getGenre() {
      return Genre;
  }
  
  public void setGenre(String Genre) {
      this.Genre = Genre;
  }
  
  public String getDeveloper() {
      return Developer;
  }
  
  public void setDeveloper(String Developer) {
      this.Developer = Developer;
  }
  
  public String getPublisher() {
      return Publisher;
  
  
   }
  
      public void setPublisher(String Publisher) {
          this.Publisher = Publisher;
      }
  
  
  
    private static final ArrayList&lt;Entry&gt; collectionList= 
                  new ArrayList&lt;Entry&gt;(Arrays.asList(
  
                  new Entry (1, "Persona 5", " 4th April 2017", "Playstation 4", "Social Simulator/RolePlaying","Atlus","Deep Silver" )
  
  
                  ));
  
      public ArrayList &lt;Entry&gt; getCollectionList(){
  
          return collectionList;
      }
  
      public String saveAction(){
  
         Entry entry = new Entry(this.ID, this.Name, this.ReleaseDate, this.Platform, this.Genre, this.Developer, this.Publisher);
  
          collectionList.add(entry);
  
          return "Collection Page.xhtml";
      }
  
      public String deleteAction(Entry entry) {
  
                  collectionList.remove(entry);
          return null;
      }
  
      public static class Entry{
  
      int ID; 
      String Name;
      String ReleaseDate;
      String Platform;
      String Genre;
      String Developer;
      String Publisher;
  
      public Entry(int ID, String Name, String ReleaseDate, String Platform, String Genre, String Developer, String Publisher)
      {
          this.ID = ID;
          this.Name = Name;
          this.ReleaseDate = ReleaseDate;
          this.Platform = Platform; 
          this.Genre = Genre;
          this.Developer = Developer;
          this.Publisher = Publisher;
  
  
      }
  
       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 getReleaseDate() {
          return ReleaseDate;
      }
  
      public void setReleaseDate(String ReleaseDate) {
          this.ReleaseDate = ReleaseDate;
      }
  
      public String getPlatform() {
          return Platform;
      }
  
      public void setPlatform(String Platform) {
          this.Platform = Platform;
      }
  
      public String getGenre() {
          return Genre;
      }
  
      public void setGenre(String Genre) {
          this.Genre = Genre;
      }
  
      public String getDeveloper() {
          return Developer;
      }
  
      public void setDeveloper(String Developer) {
          this.Developer = Developer;
      }
  
      public String getPublisher() {
          return Publisher;
      }
  
      public void setPublisher(String Publisher) {
          this.Publisher = Publisher;
      }
  
  
  
      }
  
  
  
  
  }
  </code></pre>
  
  <p>I'd be very grateful if someone could help me solve this. </p>