You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Pedro Santos (JIRA)" <ji...@apache.org> on 2010/12/09 19:42:02 UTC

[jira] Updated: (WICKET-3202) Form with UploadProgressBar and AjaxButton doesn't submit

     [ https://issues.apache.org/jira/browse/WICKET-3202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pedro Santos updated WICKET-3202:
---------------------------------

    Attachment: WICKET-3202.patch

I'm sending a patch fixing the bug for IE 7, 8, chrome and firefox
On safari only the ajax submit button/link works, the regular submit button only present the progress bar but do not update the state.
I tested the quickstart at WICKET-3181 and the progress bar is presented and updated correctly, the problem is that the bytes uploaded info do not get updated. So the progress bar keep presenting 0% of <size>MB completed.

Patch fix:
- the UploadStatusResource was retuning an state with incorrect value for remainingTimeString varible
- the progressbar.js was not hiding the status bar when there wasn't UploadInfo at UploadWebRequest (can happen if user did not use the UploadWebRequest as the Application WebRequest)
- use the onsubmit callback instead of submit because the wicket-ajax.js use the submit method to submit the multipart form. Doing so the registered submit callback was not get called. Use Wicket.Event.fire to trigger the form submit do not work on IE, so register the callback at the submit is problematic.

> Form with UploadProgressBar and AjaxButton doesn't submit
> ---------------------------------------------------------
>
>                 Key: WICKET-3202
>                 URL: https://issues.apache.org/jira/browse/WICKET-3202
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket, wicket-extensions
>    Affects Versions: 1.5-M3
>         Environment: Windows 7, java 1.6
>            Reporter: Ivan Vasilev
>            Assignee: Igor Vaynberg
>         Attachments: quickstart.rar, WICKET-3202.patch
>
>
> There is a Form and a FIleUploadField and UploadProgressBar in it. The form is submitted via AjaxButton. If the user tries to upload a file, nothing happens (at least nothing on the server side). If the UploadProgressBar is removed from the form everything works fine. This behavior can be observed in the attached quickstart. Thanks.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.