I have a Visual force page that overrides the "Close Case button" on case details page.VF page uses case standardController.I want to populate CaseComment.commentbody field of the from this VF page. CaseComment is a Child object of Case.Sample code is as below
<apex:page standardController="Case">
apex:form
<apex:inputField value="{!Case.Postback_Options__c}" />
<apex:inputField value="{!CaseComment.CommentBody}" label="Internal Comments" />
</apex:form>
</apex:page><apex:page standardController="Case"> <apex:form> <apex:inputField value="{!Case.Postback_Options__c}" /> <apex:inputField value="{!CaseComment.CommentBody}" label="Internal Comments" /> </apex:form> </apex:page>
This throws an error Unknown property 'CaseStandardController.CaseComment'
Can Somebody please help me out.