Hello,
the generics solution for the DropdownChoice is weird in my opinion.
I want to write like this:
ListGender genders = getGenderList();
DropdownChoicePerson new DropDownChoicePerson(fieldId, new
PropertyModelPerson(currentPerson, gender), genders);
But the compilation fails because of the
ListGender genders = getGenderList();
DropdownChoicePerson new DropDownChoicePerson(fieldId, new
PropertyModelPerson(currentPerson, gender), genders);
The class type parameter for the dropdown and models there should be Gender:
That the model delegates to a property in a Person object should
Hi,
IModelPerson personModel = getPersonModel();
ListGender genders = getGenderList();
DropDownChoice dropDownChoiceGender = new
DropDownChoice(genderFieldId, new PropertyModelGender(personModel,
gender), genderList);
Regards,
Bernard
On Thu, 2 Sep 2010 10:02:27 +0300, you wrote:
Hello,
://www.nabble.com/ListView-vs-DropDownChoice-with-Generics-tp20684801p20684801.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL