Dear Kent: Thank's a lot.Thank you.It's a good solution.
Kent Tong wrote: > > > 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#a12576579 Sent from the Wicket - Dev mailing list archive at Nabble.com.