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"),
               listOfUsers,
               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 
toString()???


Pierre-Yves


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to