[Wicket-user] how to use dropdownchoice

2005-09-19 Thread Davide Savazzi
On 9/16/05, Gwyn Evans <[EMAIL PROTECTED]> wrote: > I'd suggest trying to simplify it down by stages seeing how far you > can get towards a single dropdown in a form, while the error still > persists - if nothing else, you might end up with an example to post > in an issue report. Well, these bugs

Re: [Wicket-user] how to use dropdownchoice

2005-09-19 Thread Davide Savazzi
On 9/16/05, Gwyn Evans <[EMAIL PROTECTED]> wrote: > I'd suggest trying to simplify it down by stages seeing how far you > can get towards a single dropdown in a form, while the error still > persists - if nothing else, you might end up with an example to post > in an issue report. Well, these bugs

Re: [Wicket-user] how to use dropdownchoice

2005-09-16 Thread Gwyn Evans
I wouldn't have thought so, as there should be an exception thrown during the rendering in that case... I'd suggest trying to simplify it down by stages seeing how far you can get towards a single dropdown in a form, while the error still persists - if nothing else, you might end up with an exampl

Re: [Wicket-user] how to use dropdownchoice

2005-09-16 Thread Johannes Fahrenkrug
Hmmm have you maybe just created the Border but not added it to the form/the page using add()? - Johannes Davide Savazzi wrote: On 9/16/05, Johannes Fahrenkrug <[EMAIL PROTECTED]> wrote: you have to attach a model to the drop downlist that will hold the state of each list. T

Re: [Wicket-user] how to use dropdownchoice

2005-09-16 Thread Davide Savazzi
On 9/16/05, Johannes Fahrenkrug <[EMAIL PROTECTED]> wrote: > you have to attach a model to the drop downlist that will hold the state > of each list. Thanks Johannes, but using a PropertyModel for every DropDownChoice doesn't work (the problem is the same). I don't understand why the model is upd

Re: [Wicket-user] how to use dropdownchoice

2005-09-16 Thread Johannes Fahrenkrug
Davide, you have to attach a model to the drop downlist that will hold the state of each list. you could to this: create a MyDate class with integer fields for day, month, hour and minute and the respective getters and setters. then change your method so it takes a PropertyModel: private Fo

[Wicket-user] how to use dropdownchoice

2005-09-16 Thread Davide Savazzi
I have created a Form with several DropDownChoice... some of them update the model but after the submit they lose their state (the first value is selected), others update the model only on the first submit, and only one of them seems to work! :) public Step1Form(String name, MyModel model) { su