title: WicketMessage: Null object returned for expression: issueObject.name for setting value: prinsenpark 11
body: <p>I have changed DropDownChoice field to AutoCompleteTextField and getting above error.
  Before, DropDownChoice was like,</p>
  
  <pre><code>DropDownChoice&lt;MyObject&gt; ddcObject = new DropDownChoice&lt;MyObject&gt;("myObjectName", new PropertyModel&lt;MyObject&gt;(mynewModel, "myObject"), myObjectModel, new ChoiceRenderer&lt;MyObject&gt;("name", "objectId"));
  </code></pre>
  
  <p>After, changed to AutoCompleteTextField is like,</p>
  
  <pre><code>AutoCompleteTextField&lt;String&gt; ddcObject = new AutoCompleteTextField&lt;String&gt;("myObjectName", new PropertyModel&lt;String&gt;(mynewModel, "myObject.name"), autoCompleteSettings)
  {               
    @Override
    protected Iterator&lt;String&gt; getChoices(String objectName) 
    {                                 
      ......              
    }     
  };
  </code></pre>
  
  <p>Can anyone suggest what is missing, and how it should be corrected ?</p>
  
  <hr>
  
  <p>In simple words, how to use wicket autocompetetextfield which will use model other than string, I want to show name in the field, but in the model I want to save the objectId, the same thing is achieved in DropDownChoice by using ChoiceRenderer. Please suggest. </p>