title: Expression must be a value expression but is a method expression error in jsf 2.2
body: <p>I am new to jsf. I write a simple application to retrive data from the database. I am calling a method in xhtml form but it is giving me the error as follow</p>
  
  <pre><code>Expression must be a value expression but is a method 
   expression
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    &gt;
  &lt;h:head&gt;
      &lt;h:outputStylesheet library="css" name="table-style.css"  /&gt;
  &lt;/h:head&gt;
  
  &lt;h:body&gt;
  
      &lt;h1&gt;JSF 2.0 + JDBC Example&lt;/h1&gt;
  
      &lt;h:dataTable value="#{member.getMemberList()}" var="mem"
              styleClass="order-table"
              headerClass="order-table-header"
              rowClasses="order-table-odd-row,order-table-even-row"
          &gt;
  
          &lt;h:column&gt;
              &lt;f:facet name="header"&gt;
                  Customer ID
              &lt;/f:facet&gt;
                  #{mem.FirstName}
          &lt;/h:column&gt;
  
          &lt;h:column&gt;
              &lt;f:facet name="header"&gt;
                  Name
              &lt;/f:facet&gt;
                  #{mem.LastName}
          &lt;/h:column&gt;
  
          &lt;h:column&gt;
              &lt;f:facet name="header"&gt;
                  Email
              &lt;/f:facet&gt;
                  #{mem.Email}
          &lt;/h:column&gt;
  
          &lt;h:column&gt;
              &lt;f:facet name="header"&gt;
                  Password
              &lt;/f:facet&gt;
                  #{mem.Password}
          &lt;/h:column&gt;
  
      &lt;/h:dataTable&gt;
  
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Error at this line </p>
  
  <pre><code>&lt;h:dataTable value="#{member.getMemberList()}" var="mem"
              styleClass="order-table"
              headerClass="order-table-header"
              rowClasses="order-table-odd-row,order-table-even-row"
          &gt;
  </code></pre>
  
  <p>can any on help me to solve this error. I shall be thankful ...... :)</p>