Debugging the code just tells me the same as the exception does:

CheckGroup.updateModel:

public void updateModel()
{
        Collection<T> collection = getModelObject();
        if (collection == null)
        {
                collection = getConvertedInput();
                setDefaultModelObject(collection);
        }
        else
        {
                modelChanging();
                collection.clear();
                collection.addAll(getConvertedInput()); <-----
                modelChanged();
        }
}


getConvertedInput() returns a String instead of a collection instance. This just has to be wrong, because it returns T, the parameter of FormComponent<T>, and CheckGroup extends FormComponent<Collection<T>>.

Removing the setType-Call doesn't help.

Martin Makundi wrote:
Have you tried to debug the code where you get the exception? I
suspect that you just have some data types mixed.

Maybe it is just this: comp.setType(parameter.getType()); Is that necessary?

**
Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to