Hi I've been beating my head against the wall with this.

I'm overriding newWebRequest in my Application class:
    protected WebRequest newWebRequest(HttpServletRequest servletRequest)
        return new UploadWebRequest(servletRequest);

Here is the code in my upload panel class:
        Form<Void> uploadform = new Form<Void>("fileUploadForm") {
                        protected void onSubmit() {
                                final FileUpload upload = 
                                if (upload != null) {
                                        try {
                                                File newFile = new 
File(uploadFolder, upload.getClientFileName() );
                                                // Save to new file
newFile, destFolder);
                                        } catch (Exception e) {
                                                throw new 
RuntimeException("Unable to write file");
                                } else {
                                        throw new RuntimeException( "file 
selected for upload is empty" );

                uploadform.add(fileUploadField = new 
                uploadform.add(new UploadProgressBar("progress", uploadform));
                uploadform.add( new UploadValidator(fileUploadField, prefix) );
                add( uploadform );

This is based on the examples, the examples themselves are not working for me 
I tried, http://wicketstuff.org/wicket13/upload and 
http://www.wicket-library.com/wicket-examples/upload/ (the latter URL kinda 
works, it increments the remaining time but does not track the progress)

What am I doing wrong

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

Reply via email to