Hi all,

I'm using the MultiFileUploadField on a page derived from the example
one http://wicketstuff.org/wicket13/upload/multi.  Now I'd like to
show the progress, but not of the upload itself, as the files are not
that big.  Instead, the time consuming part is some processing that is
done for each file upon upload.

It would be enough to update a ListView resp. its model, so that each
file appears in the list as soon as it's processed.  As the body of
onSubmit() is basically a loop iterating over the files, it would be
fine to trigger the update at the end of the loop body.  However, I
don't get how to do that when I don't have an AjaxRequestTarget.

protected void onSubmit() {
        for (final FileUpload upload : uploads) {
                File newFile = new File(getUploadFolder(), 
upload.getClientFileName());

                // upload
                newFile.createNewFile();
                upload.writeTo(newFile);

                // process it
                DataStaticService.ensureSession(new 
SingleFileBibEntryReader(newFile));

                // PAGE/PANEL UPDATE: newFile is processed
        }
}

I don't know if what I want is even possible as multipart-enabled ajax
forms don't work AFAIK.

Could I attach a Behavior to the ListView showing the processed files?
 But how to trigger it?

Any hints?

Best,
Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to