I want to use an extension to override the standard contoller of a custom object (DetailContact), which is the detail object in a master-detail relationship with Contact.
<apex:page standardController="DetailContact__c" extensions="myExtension"> public myExtension(ApexPages.StandardController controller)
When loading the page, I got:
Error occurred while loading a Visualforce page.
FYI, when I use:
<apex:page standardController="DetailContact__c" recordSetVar="ContactDetails" extensions="myExtension"> public myExtension(ApexPages.StandardSetController controller)
There is no error, but I don't understand why I would use recordSetVar parameter since I don't manipulate a list of DetailContact__c.
Moreover, I wand to use the standard save button, so I mustn't use a list controller.
Do you know a workaround ? Thanks.