Re: [wicket-user] List of DropDownChoices

2005-07-11 Thread Johan Compagner
what kind of exception? Johannes Fahrenkrug wrote: Hi, I'm new to Wicket and I have a question. I need to generate and display a List of DropDownChoices. This is the scenario: I have different room types and for every room type I have certain vacancies. So I need to have something like this:

Re: [wicket-user] List of DropDownChoices

2005-07-11 Thread Johannes Fahrenkrug
I attached the exception and this is the code I use to build the list: add (zimmerartenList = new ListView (zimmerartenList, termin.getTerminDetails()) { private static final long serialVersionUID = 2623213955857979457L; @Override protected void

Re: [wicket-user] List of DropDownChoices

2005-07-11 Thread Martijn Dashorst
Johannes, You haven't attached a model to the dropdown choice. The constructor you are using implies having a CompoundPropertyModel as ListItem.model. You don't have this, so you need to use another constructor: item.add(new DropDownChoice (paxProZimmerart, new PropertyModel(terminDetail,

Re: [wicket-user] List of DropDownChoices

2005-07-11 Thread Johannes Fahrenkrug
Martijn, thank you so much for your help. Now it works perfectly. I added the field paxProAnreise to the TerminDetail class, added getters and setters and changed the PropertyModel accordingly. Now my code looks like this: protected void populateItem(ListItem item) { final