I have a custom object on which i have a field named Owner which is of Data Type Lookup(User,Queue). When i access this field on visualforce page like below just using standard controller, i am getting error :
<apex:inputField label="Owner" value="{!CustomObject__c.Owner}"/>
Expression value does not resolve to a field Error is in expression '{!CustomObject__c.Owner}' in component in page page1
How can this field be accessed in vf page.
EDIT : Owner is a standard field on my custom object named CustomObject and i am using standard controller on apex:page tag using <apex:page standardController="CustomObject__c">
SECOND EDIT :
Changing to
<apex:inputText label="Owner" value="{!CustomObject__c.Owner}"/>
works but i am not getting lookup UI functionality.
OwnerId
, so do{!CustomObject__c.OwnerId}
.