title: Wicket DropDownChoice setting model value
body: <p>I have a table (Dataview) with content from a database, where each row/object has an "edit" button. When I try to edit the object, the DropDownChoice-value (in a form) is not correctly updated (even though it is correct in the database). The value that gets set in the DDC is the first item in the (sorted) list "placeList", where I obviously want the correct value from my object (event.getPlace().getName()).</p>
  
  <p>Here is the code (wicket 1.5):</p>
  
  <pre><code>    List&lt;Place&gt; placesList = UtGuidenApplication.getInstance().getUgpService().getAllPlaces();
      Collections.sort(placesList);
  
      DropDownChoice&lt;Place&gt; selectablePlaceField = new DropDownChoice&lt;Place&gt;("Sted", new PropertyModel&lt;Place&gt;(event, "eventPlace.name"),
              placesList, new ChoiceRenderer&lt;Place&gt;("name"));
      utguidenEventForm.add(selectablePlaceField);
  </code></pre>
  
  <p>Anybody?</p>
  
  <p>Cheers,
  Terje Eithun,
  Norway</p>