DropDownChoice and generics

2010-09-02 Thread Sigmar Muuga
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

Re: DropDownChoice and generics

2010-09-02 Thread Wilhelmsen Tor Iver
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

Re: DropDownChoice and generics

2010-09-02 Thread bht
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,

Re: ListView vs DropDownChoice with Generics

2008-11-25 Thread Jeremy Thomerson
://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