I was working on the autocomplete feature for which I have this controller and page.
Controller:
public class autoCompleteCon {
public List<String> listOfStrings {get; set;}
// Constructor Beginning
public autoCompleteCon() {
listOfStrings = new List<String>();
for(Account a: [SELECT id, Name From Account LIMIT 10])
listOfStrings.add(a.name);
}
}
Visualforce Page:
<apex:page Controller="autoCompleteCon" docType="html-5.0">
<apex:form>
<apex:inputText list="{!listOfString}"/>
</apex:form>
</apex:page>
But there is an error popping up in the page which says
Unknown property 'autoCompleteCon.listOfString'
How do I proceed now?