Johan, thank you very much! That's good news :) I'll upgrade asap!
- Johannes Johan Compagner wrote: > In 1.0 you have to override/implement the IChoiceList and make youre > own IChoice objects for the TerminDetails class. > > In 1.1 you can do this: > > item.add(new DropDownChoice("zimmerart", new PropertyModel(person, > "aktArtikelZimmerart"), > person.getAktArtikel().getSelectedTermin().getTerminDetails()), new > ChoiceRenderer("displayExpression","ifNeededTheIdExpression")); > > If you are working a lot with dropdown choices please upgrade to 1.1 > as soon as possible. > Because the code is completely rewritten for generating id/display > values. > > johan > > Johannes Fahrenkrug wrote: > >> Hi, >> >> I have another question about DropDownChoices. >> >> I have a listview an in each row I have to fill 2 DropDownChoices. >> >> The code looks like this: >> >> item.add(new DropDownChoice("zimmerart", new PropertyModel(person, >> "aktArtikelZimmerart"), >> >> person.getAktArtikel().getSelectedTermin().getTerminDetails())); >> >> Because I have to show a compound string of a label and a price in the >> dropdownchoice, I overrode the toString method in the TerminDetails >> class. >> >> Is there a different way to make customs label strings for each item in >> a dropdownchoice besides overriding the toString method of that class? >> >> - Johannes >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >> from IBM. Find simple to follow Roadmaps, straightforward articles, >> informative Webcasts and more! Get everything you need to get up to >> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >> _______________________________________________ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user