Why am I getting the following error?

Unknown property

Controller Extension

public class CrewWorkDetailController{

    public final Installation__c installation ;

    public CrewWorkDetailController(ApexPages.StandardController stdController)
        this.installation = (Installation__c) stdController.getRecord() ;


<apex:page standardController="Installation__c" extensions="CrewWorkDetailController">

You haven't defined a getter for your Installation__c instance variable. Try replacing this line

public final Installation__c installation ;


public final Installation__c installation {get; private set;}

This will allow the VF page to be able to access the installation variable.

  • 5
    It should be noted that Visualforce requires a public getter or setter to access the variable; it's not enough to simply mark the member as public. – sfdcfox Jun 12 '14 at 1:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.