function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Lookup Filter in Visualforce Page from Controlller

I am getting error from below visualforce page when adding filter to lookup 

Error: Could not resolve the entity from <apex:inputField> value binding '{!Reseller.Id}'. <apex:inputField> can only be used with SObjects, or objects that are Visualforce field component resolvable.

public list<Account> GetReseller(){
    return [select id from account where Partner_Type__c = 'RESELLER'];       

Visual Force
<apex:inputField value="{!Reseller.Id}" id="resler" />

Please suggest me how to add filter to lookup


So Sudhir you have kept Reseller as an Input field and are also getting its value from the get method - so Ideally shouldn't it be a output field as you are already calculating its value through the method?