title: <attribute> cannot be resolved as a member of <bean>
body: <p>I have a bean:</p>
  
  <pre><code>package controller.types;
  
  import java.util.ArrayList;
  import java.util.List;
  
  import javax.faces.bean.ManagedBean;
  import javax.faces.bean.SessionScoped;
  
  @ManagedBean
  @SessionScoped
  public class Test
  {
  
      static List&lt;MainTableRow&gt; rows;
  
      public Test()
      {
          rows = new ArrayList&lt;&gt;();
      }
  
      public static List&lt;MainTableRow&gt; getRows()
      {
          return rows;
      }
  
      public static void setRows(List&lt;MainTableRow&gt; rows)
      {
          Test.rows = rows;
      }
  
  }
  </code></pre>
  
  <p>And my xhtml page is:</p>
  
  <pre><code>    &lt;h:form&gt;
          &lt;p:fileUpload
              fileUploadListener="#{fileUploadController.handleFileUpload}"
              mode="advanced" dragDropSupport="false" update="messages"
              sizeLimit="10000000" fileLimit="3" allowTypes="/(\.|\/)(xls)$/"  style="font-size: 14px"/&gt;
  
          &lt;p:growl id="messages" showDetail="true" /&gt;
  
          &lt;p:dataTable id="dataTable" var="mainTableRow" value="#{test.rows}" style="font-size: 14px"&gt;
              &lt;f:facet name="header"&gt;
              Main Table
          &lt;/f:facet&gt;
  
              &lt;p:column sortBy="" headerText="Index"&gt;
                  &lt;h:outputText value="#{mainTableRow.index}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column sortBy="" headerText="Query"&gt;
                  &lt;h:outputText value="#{mainTableRow.index}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column sortBy="" headerText="S1"&gt;
                  &lt;h:outputText value="#{mainTableRow.index}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column sortBy="" headerText="S2"&gt;
                  &lt;h:outputText value="#{mainTableRow.index}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column sortBy="" headerText="S3"&gt;
                  &lt;h:outputText value="#{mainTableRow.index}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column sortBy="" headerText="S9"&gt;
                  &lt;h:outputText value="#{mainTableRow.index}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column sortBy="" headerText="Uygunluk"&gt;
                  &lt;h:outputText value="#{mainTableRow.index}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column sortBy="" headerText="Kural"&gt;
                  &lt;h:outputText value="#{mainTableRow.index}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column sortBy="" headerText="Kaynak"&gt;
                  &lt;h:outputText value="#{mainTableRow.index}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column sortBy="" headerText="Query Type"&gt;
                  &lt;h:outputText value="#{mainTableRow.index}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column sortBy="" headerText="User Intent"&gt;
                  &lt;h:outputText value="#{mainTableRow.index}" /&gt;
              &lt;/p:column&gt;
  
          &lt;/p:dataTable&gt;
  
      &lt;/h:form&gt;
  </code></pre>
  
  <p>At line <code>&lt;p:dataTable id="dataTable" var="mainTableRow" value="#{test.rows}" style="font-size: 14px"&gt;</code> it gives error:</p>
  
  <p><strong>rows cannot be resolved as a member of test</strong></p>
  
  <p>What is the reason? </p>