I have a page with a standard controller on a custom object:
<apex:page standardController="myObject__c" docType="html-5.0" >
<apex:form >
<apex:outputText value="{!myObject__c.Id} {!myObject__c.Amount__c} rendered="false"/>
</apex:form>
<c:myComponent objectId="{!myObject__c.Id}"
amount="{!myObject__c.Amount__c}"/>
</apex:page>
Based on the SF documentation I've added a non-rendered outputText
element so that the fields are referenced on the page however this is still yielding the error.
SObject row was retrieved via SOQL without querying the requested field: pmt4__myObject__c.pmt4__Amount__c
Even upon commenting out the custom component I am still receiving the error. I have verified that the fields are visible. Any ideas?
"
(2) is there a deliberate reason why the component is outside the form?