Renders one choice. Separates the 'id' values used for internal representation from 'display values' which are the values shown to the user of components that use this renderer. Usage:
new DropDownChoice<User>("users", new Model<User>(selectedUser), listOfUsers)
creates a DropDownChoice of users and the display value will be toString() and the id the index of the object in the ListOfUsers.
new DropDownChoice<User>("users", new Model<User>(selectedUser), listOfUsers, new ChoiceRenderer<User>("name"))
creates a DropDownChoice of users and the display value will be looked up by property expression ("name") and the id the index of the object in the ListOfUsers
new DropDownChoice<User>("users", new Model<User>(selectedUser), listOfUsers, new ChoiceRenderer<User>("name", "id"))
creates a DropDownChoice of users and the display value will be looked up by property expression ("name") and the id will be looked up by the property expression "id"
@author jcompagner
@param < T> The model object type