I've created a custom object called Beer. I've also created a VF page and Apex controller to simply display the beers via the customer portal site using a high volume customer portal user license.
VF Page
<apex:page controller="BeerController">
<apex:pageBlock title="Good List">
<apex:dataTable value="{!myListGood}" var="item" cellPadding="4" border="1">
<apex:column >id=[{!item.id}]</apex:column>
</apex:dataTable>
</apex:pageBlock>
<apex:pageBlock title="Bad List">
<apex:dataTable value="{!myListBad}" var="item" cellPadding="4" border="1">
<apex:column >id=[{!item.id}]</apex:column>
</apex:dataTable>
</apex:pageBlock>
</apex:page>
Controller
public class BeerController {
public List<Account> getMyListGood() { return [select id from Account]; }
public List<Beer__c> getMyListBad() { return [select id from Beer__c]; }
}
I've enabled BeerPage for the High Volume Customer Portal Profile.
I created three accounts and two beers and when I look at the page, I see the following:
Good List
id=[001i000000FGjldAAD]
id=[001i000000IlhtxAAB]
id=[001i000000IlhtyAAB]
Bad List
id=[]
id=[]
So it looks like the controller can successfully retrieve both Account and Beer lists but my user cannot see the attributes of the custom Beer object. What am I missing?
Thanks in advance!!