Re: ListView inside Form: retrieving the listview's model

2009-08-12 Thread bferr
In your validator, invoke Form.visitFormComponents(FormComponent.IVisitor visitor) The IVisitor will check getInput() vs the other formComponent.getModelObject() Marcel Bonnet wrote: > > Thanks for helping. > In fact I was trying to validate the ListView's model. I thought that each > time w

Re: ListView inside Form: retrieving the listview's model

2009-08-12 Thread Marcel Bonnet
*SOLVED*. I found what was wrong. In case anyone needs a component like this, the main updated code is: final Model dataModel = new Model(); dataModel.setObject(data); ListView listView = new ListView("list", dataModel) { protected void populateItem(ListItem item) { final IModel

Re: ListView inside Form: retrieving the listview's model

2009-08-12 Thread Marcel Bonnet
Thanks for helping. In fact I was trying to validate the ListView's model. I thought that each time we press the Submit button the new choice selected in each DropDownChoice in the ListView's rows would be submited and filled inside the Model of the ListView, meaning the model would now have the ne

Re: ListView inside Form: retrieving the listview's model

2009-08-11 Thread bferr
The model of your listView has to be LoadableDetachable so that the listView retrieves the new list values each time. Also the setReuseItems() might have to be false. I don't think you're doing form validation within the ListView correct? Marcel Bonnet wrote: > > Hi everybody, I'm new in

ListView inside Form: retrieving the listview's model

2009-08-09 Thread Marcel Bonnet
Hi everybody, I'm new in the mail-list. I've been studying the framework, I even read the book Wicket in Action, but I'm having trouble using some kind of repeater inside a Form, updating and validating the model. What I'm trying to do is a ListView inside a Form: when the user change the value of