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
*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
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
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
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