did you call listview.setreuseitems(true)
it is usually easier if you provide a quickstart...
-igor
On Nov 12, 2007 7:28 AM, Franklin Antony <[EMAIL PROTECTED]> wrote:
>
> Dear Friends,
> I am having a problem with putting MultiFileUploadField inside a
> ListView. I am following the example, but somehow the uploads collection is
> not getting populated with the files. However when I directly add the
> MultiFileUploadField on a form everything seems to work. Could someone
> please shed some light on this.
>
> Here is some code snippet
>
> List ls = Arrays.asList(new String[]{"Passport "});
> ListView pl = new ListView("plist",ls)
> {
>
> protected void populateItem(ListItem arg0) {
>
>
> MultiFileUploadField ff=new
> MultiFileUploadField("file_input",new
> PropertyModel(this,"uploads"),3);
>
> fileUploadList.add(ff);
> fileUpload.add(ff);
> arg0.add(ff);
>
>
>
>
> }
>
>
> };
>
>
> And the listview is on a form and the collections(uploads) is on the form to
> just as in the example. I am sure its something with the component
> hierarchy. But not sure how to call the uploads correctly. I think there is
> something wrong with the expression.
>
>
> Thanks,
> Franklin
> --
> View this message in context:
> http://www.nabble.com/Multi-file-upload-and-ListView-together-tf4791788.html#a13707621
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]