Please use pastebin.com or similar for paste'ing code :)
Regards
Žilvinas Vilutis
Mobile: (+370) 652 38353
E-mail: cika...@gmail.com
On Tue, Dec 7, 2010 at 12:56 PM, Cédric Thiébault
cedric.thieba...@gmail.com wrote:
You're right, it works :-)
So if I understand, all request will be
Hi,
I want to upload files with an Ajax form that is in a modal window
(using a Panel, not a WebPage). The modal and its form are part of the
main form:
main-page.html
form wicket:id=form
div wicket:id=modal /
input type=submit wicket:id=submit /
/form
upload-window.html
form wicket:id=form
just add
form.setMultiPart(true);
in your form
François
Le 7 déc. 2010 à 20:11, Cédric Thiébault a écrit :
Hi,
I want to upload files with an Ajax form that is in a modal window
(using a Panel, not a WebPage). The modal and its form are part of the
main form:
main-page.html
form
I've done this in the modal window form... And I set it to false for
the main form that is not used for uploading.
The upload works well, it's when my modal is closed, the main form
(not the one for the upload) throws an exception on submit.
Here is the code that I've attached to the Jira issue:
it has to be in the main form afaik
François
Le 7 déc. 2010 à 20:27, Cédric Thiébault a écrit :
I've done this in the modal window form... And I set it to false for
the main form that is not used for uploading.
The upload works well, it's when my modal is closed, the main form
(not the one
It is...
Here is the code...
HomePage.html
html
xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd;
body
div wicket:id=feedbackfeedback/div
form wicket:id=form
Input text: input type=text wicket:id=text size=40 /
br /
div
final FormBean formBean = new FormBean();
ModelFormBean model = new ModelFormBean(formBean);
FormFormBean form = new FormFormBean(form, model);
form.setMultiPart(false); should be true
add(form);
François
Le 7 déc. 2010 à 20:45, Cédric Thiébault a écrit :
It is...
You're right, it works :-)
So if I understand, all request will be multipart just because one of
theme needs to be multipart...
Thanks for your help François!
Cedric
2010/12/7 François Meillet fm...@meillet.com:
final FormBean formBean = new FormBean();
ModelFormBean model = new