You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by TahitianGabriel <gl...@piti.pf> on 2009/12/01 00:20:38 UTC
RE: FileUploadField in a ModalWindow (wicket 1.4.3)?
I've added the UploadWebRequest and I still have the same problem.
Is UploadWebRequest not only for UploadProgressBar as stated in the Javadoc?
Stefan Lindner wrote:
>
> Do you have
>
> @Override
> protected WebRequest newWebRequest(HttpServletRequest servletRequest)
> {
> return new UploadWebRequest(servletRequest);
> }
>
> in your Application class?
>
>
--
View this message in context: http://old.nabble.com/FileUploadField-in-a-ModalWindow-%28wicket-1.4.3%29--tp26577255p26583667.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: FileUploadField in a ModalWindow (wicket 1.4.3)?
Posted by Martin Dietze <di...@fh-wedel.de>.
On Tue, December 01, 2009, TahitianGabriel wrote:
> It looks like a bug, so maybe you can open a jira...
Just added WICKET-2595. This bug may be related to WICKET-2433,
but that one was supposed to be fixed in Wicket 1.4.2 while this
problem was observed with 1.4.3.
Cheers,
M'bert
--
----------- / http://herbert.the-little-red-haired-girl.org / -------------
=+=
It was hard to code, so it should be hard to understand!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: FileUploadField in a ModalWindow (wicket 1.4.3)?
Posted by TahitianGabriel <gl...@piti.pf>.
I've tried what you said, and indeed if you remove the nested form, it works
like a charm for the ajax-upload.
BUT, it breaks other thing (like DatePicker in IE that do not work anymore
in modal window).
It looks like a bug, so maybe you can open a jira...
Regards,
Gabriel.
Martin Dietze wrote:
>
>
> | If you want to use form in modal window component make sure that you put
> the modal window itself
> | in another form (nesting forms is legal in Wicket) and that the form on
> modal window is submitted
> | before the window get closed.
>
> However this seems to break the ajax-upload functionality.
> I attached a zip with a modified FileUploadPage example.
> In the example you'll see that the upload does not work.
> If you remove the 'wrapperForm' from the page and add the modal
> window to the page instead of the wrapper form, things are just
> fine.
>
> Just wondering, is this a bug or a feature? I could not find any
> hint that ajax-based uploads have problems with nested forms?
>
--
View this message in context: http://old.nabble.com/FileUploadField-in-a-ModalWindow-%28wicket-1.4.3%29--tp26577255p26596356.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: FileUploadField in a ModalWindow (wicket 1.4.3)?
Posted by Martin Dietze <di...@fh-wedel.de>.
On Mon, November 30, 2009, TahitianGabriel wrote:
> I've added the UploadWebRequest and I still have the same problem.
OK, I seem to have found the problem now. In the JavaDoc for
ModalWindow we find this:
| If you want to use form in modal window component make sure that you put the modal window itself
| in another form (nesting forms is legal in Wicket) and that the form on modal window is submitted
| before the window get closed.
However this seems to break the ajax-upload functionality.
I attached a zip with a modified FileUploadPage example.
In the example you'll see that the upload does not work.
If you remove the 'wrapperForm' from the page and add the modal
window to the page instead of the wrapper form, things are just
fine.
Just wondering, is this a bug or a feature? I could not find any
hint that ajax-based uploads have problems with nested forms?
Cheers,
M'bert
--
----------- / http://herbert.the-little-red-haired-girl.org / -------------
=+=
manche meinen, lechts und rinks kann man nicht velwechsern.
werch ein illtum! -- elnst jandr