What wicket version are you using? There is a difference how file upload is configured in 1.4 and in 1.5.
Attila 2011/5/10 eugenebalt <[email protected]> > I looked through that example and in fact duplicated what you have there in > the simplest possible example. My simple example below is just a single > FileUpload field and a submit button, that's it. > > And I'm still getting that error! I have no idea why. > > My HTML: > ---------- > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > </head> > <body> > > <form wicket:id="testfrm" method="get" action=""> > <input wicket:id="fileInput" type="file" size="50" /> > <br /> > <input type="submit" /> > </form> > > </body> > </html> > > > My TestFilePickerForm.java > -------------------------- > import org.apache.wicket.markup.html.form.Form; > import org.apache.wicket.markup.html.form.upload.FileUploadField; > > public class TestFilePickerForm extends Form { > > FileUploadField fileUploadField = null; > > public TestFilePickerForm(String id) { > super(id); > setMultiPart(true); > > add(fileUploadField = new FileUploadField("fileInput")); > > } > > public void onSubmit() > { > > } > } > > > My TestPage.java > ----------------- > import org.apache.wicket.ajax.AjaxRequestTarget; > import org.apache.wicket.markup.html.form.Form; > > public class TestPage extends WebPage { > > public TestPage() > { > super(); > > TestFilePickerForm testForm = new TestFilePickerForm("testfrm"); > add(testForm); > } > } > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Error-with-FileUpload-ServletRequest-does-not-contain-multipart-content-tp3512653p3512840.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
