title: How do I get my xhtml datatable to display the values, rather than the expression?
body: <p>I'm trying to move some spreadsheets online, so I created a Java EE application, and I've been trying to play with <code>&lt;h:datatable&gt;</code> to post my tables onto the webpage. When this all is published to the server (<code>JBoss EAP 6.4</code>), I get the following output:</p>
  
  <pre><code>Title Header 
  Name  Current Milestone  #{Change.currentMilestone} 
  </code></pre>
  
  <p>Below are my entity, bean, and xhtml page, in order.   </p>
  
  <pre><code>public class Change {
  
     private String id;
     private String currentMilestone;
  
     public Change(){
     }
  
     public Change(String id, String currentMilestone) {
        super();
        this.id = id;
        this.currentMilestone = currentMilestone;
     }
  
     public String getId() {
        return id;
     } 
  
     public void setId(String id) {
        this.id = id;
     }
  
  
     public String getCurrentMilestone() {
        return currentMilestone;
     }
  
     public void setCurrentMilestone(String currentMilestone) {
        this.currentMilestone = currentMilestone;
     }
  }
  </code></pre>
  
  <p>And now the bean</p>
  
  <pre><code>import java.util.ArrayList;
  import java.util.List;
  import javax.annotation.PostConstruct;
  import javax.faces.bean.ManagedBean;
  import javax.faces.bean.RequestScoped;
  import javax.inject.Named;
  
  @ManagedBean(name = "changesBean")
  @RequestScoped
  public class ChangesBean {
  
     private List&lt;Change&gt; changes;
  
     @PostConstruct
     public void init() {
  
       changes = new ArrayList&lt;Change&gt;();
       changes.add(new Change("HDT 1243", "P&amp;A"));
       changes.add(new Change("CR 2324", "Dev"));
       changes.add(new Change("ECP 6658", "Testing"));
     }
  
     public List&lt;Change&gt; getChanges(){
        return changes;
     }
  }
  </code></pre>
  
  <p>And now the webpage.</p>
  
  <pre><code>  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
    &lt;html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"&gt;
  &lt;h:body&gt;     
  &lt;ui:composition template="/templates/common.xhtml"&gt;
      &lt;h:dataTable value="#{changesBean.changes}" var="change"&gt;
          &lt;h:column&gt;
              &lt;f:facet name="header"&gt;Name&lt;/f:facet&gt;
              &lt;h:link value = "#{change.id}" outcome="change"&gt;&lt;/h:link&gt;
          &lt;/h:column&gt;
          &lt;h:column&gt;
              &lt;f:facet name="header"&gt;Current Milestone&lt;/f:facet&gt;
              #{Change.currentMilestone}
          &lt;/h:column&gt;
      &lt;/h:dataTable&gt;
  &lt;/ui:composition&gt;
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Any help I could get with this problem would be greatly appreciated.</p>