function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
visulaforcevisulaforce 

error in visualforce page compilation

Hi,
 
I am creating a visualforce page. m trying to display contact for particular account. but it's throwing compilation error. please check.......
 
error is :
ErrorError: Invalid field 'contacts' for SObject 'Account'.
 
and code 4 visualforce page is:
 
 

<apex:page standardController="Account">

<apex:pageBlock title="Hello {!$User.FirstName}!">

This is {!account.name} account. <p/>

</apex:pageBlock>

<apex:pageBlock title="Contact Detail">

<apex:pageBlockList value="{!Account.Contacts}" var="contact1">

<apex:column value="{!contact1.Name}"/>

</apex:pageBlockList>

</apex:pageBlock>

</apex:page>

 
 
 
visulaforcevisulaforce
no i am using Account standard controller as u can see in code
dchasmandchasman
I believe your user's profile does not have access to Contacts which would be required to be able to save/create this page.
visulaforcevisulaforce
tahnks, it worked .that was profile related issue.