How to show a lookup icon using VisualForce Page
Yes. we can certainly achieve using below steps.
Example:1
Use standardController and “extensions”. Put your custom controller in extensions. it will work as you desire
this is example
[html]
<apex:page standardController=”Account” extensions=”customController”/>
[/html]
Example:2
VisualForce Page:
[html]
<apex:page controller=”Lookup” >
<apex:form>
Account Value : <apex:inputField value=”{!acc.Parentid}”/>
</apex:form>
</apex:page>
[/html]
Apex Class:
[java]
public with sharing class Lookup {
public Account acc{get;set;}
public Lookup () {
acc = new Account();
}
}
[/java]