JohnSmith333 wrote:
> 
>  Form uploadForm = new Form("uploadform",new CompoundPropertyModel(new
> TestTO())){
> 

This is the problem. You only add a single TestTO obj to it at constructor
time. It means the page 
will keep updating this object and adding the same object to the list. To
fix it quickly, add a
line:
        protected void onSubmit() {
                TestTO to = (TestTO) getModelObject();
                setModelObject(new TestTO());
                ...
        }


-- 
View this message in context: 
http://www.nabble.com/Help-%21-CompoundPropertyMode-and-ArrayList-Question-tf4405830.html#a12576099
Sent from the Wicket - Dev mailing list archive at Nabble.com.

Reply via email to