In the Javadoc, it is written that only with this syntax :

new DropDownChoice("users", new Model(selectedUser), listOfUsers)

will toString() be used for display value.

However, what happens with a syntax like :

DropDownChoice laboratoireDropDown = new DropDownChoice(
               "users", new PropertyModel(companyModel, "user"),
               new ChoiceRenderer("name", "id"));

if the object returned by propery "user" of companyModel has no property 
"name" ?

I thought it would throw an exception, but it seems it is silently using 


Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
Wicket-user mailing list

Reply via email to