I was working on the autocomplete feature for which I have this controller and page.


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])

Visualforce Page:

<apex:page Controller="autoCompleteCon" docType="html-5.0">
  <apex:inputText list="{!listOfString}"/>

But there is an error popping up in the page which says

Unknown property 'autoCompleteCon.listOfString'

How do I proceed now?


You simply misspelled your property. In your controller it is listOfStrings and on your page it is listOfString. You left of the s.

  • 1
    Maybe I'll be able to increase my typing speed one of these days. – Derek F Sep 15 '16 at 14:46
  • @DerekF You were doing the hard part (editing) and I just happened onto the question right when you finished cleaning it up. – Adrian Larson Sep 15 '16 at 14:48
  • 1
    @AdrianLarson I surely will. Just waiting for the 5 min time period to be complete so that I can mark it. I did upvote it . – SatyaSFDC Sep 15 '16 at 14:54
  • 1
    @DerekF Thank you. – SatyaSFDC Sep 15 '16 at 14:55

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.