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
punit tyagi 7punit tyagi 7 

<apex:page standardcontroller="account"> <apex:pageblock title="accountdetail"> <apex:panelGrid columns="10" id="theGrid"> <apex:outputfield value="{! account.name}" /> <apex:outputfield value="{! account.name}" id="theSecond"/>

ERROR:
value for <apex:outputField> is not a dynamic binding!

please solve this
ShirishaShirisha (Salesforce Developers) 
Hi Punit,

Greetings!

I can see that the defining of the outputField is as expected and which should not throw any error.

I have used your code and it worked for me without any issues.
 
<apex:page standardcontroller="account"> 
<apex:pageblock title="accountdetail">
 <apex:panelGrid columns="10" id="theGrid">
  <apex:outputfield value="{! account.name}" />
   <apex:outputfield value="{! account.name}" id="theSecond"/>
   </apex:panelGrid>
   </apex:pageblock>
   </apex:page>
Please try the above code and let me know,if there is any issues.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri