title: Apex:Datalist showing empty results
body: <p>I'm trying to show a list of rows from a custom object in a <code>datalist</code>.</p>
  
  <p>When I try this on a regular object it seems to work, which is rather strange.</p>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>     List&lt;Account&gt; accounts;
       public List&lt;Account&gt; getAccounts() {
          if(accounts == null) accounts = [select id from Account limit 10];
          return accounts;
       }
  </code></pre>
  
  <p><strong>Visualforce</strong></p>
  
  <pre><code>     &lt;apex:dataList value="{!accounts}" var="account" id="theList"&gt;
          &lt;apex:outputText value="{!account.id}"/&gt; 
       &lt;/apex:dataList&gt;
  </code></pre>
  
  <p>This works just like it use to, it shows the id for all accounts. When I use a custom object I get an empty bullet list. Like:</p>
  
  <p><img src="https://i.stack.imgur.com/E7wMZ.png" alt="empty list"></p>
  
  <p>This has the correct amount of bullets (there are 3 items). </p>
  
  <p><strong>My Controller is now this</strong></p>
  
  <pre><code>     List&lt;AttributeMeetingroomAssociation__c&gt; accounts;
       public List&lt;AttributeMeetingroomAssociation__c&gt; getAccounts() {
          if(accounts == null) accounts = [select id from AttributeMeetingroomAssociation__c limit 10];
          return accounts;
  
       }
  </code></pre>
  
  <p><code>[select id from AttributeMeetingroomAssociation__c limit 10]</code> gives the 3 correct results when I use them in the salesforce.schema</p>
  
  <p>Anyone has a solution to this problem?</p>