This seems to result in org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.apache.wicket.util.io.DeferredFileOutputStream
I must implement the "detach()" method for the dummy fileUpload model: form.add(fileUploadField = new FileUploadField(PHOTO_UPLOAD_ID, new Model<FileUpload>() { /** * @see org.apache.wicket.model.Model#detach() */ @Override public void detach() { setObject(null); } })); This really seems like an overkill to me, previously this worked much better ;) ** Martin 2008/11/19 Marat Radchenko <[EMAIL PROTECTED]>: > Does it mean that FileUploadField now stores FileUpload in model? > 2008/11/19, Erik van Oosten <[EMAIL PROTECTED]>: >> Yeah, I run into the same thing. >> >> Just pass FileUploadField an empty model: new Model<FileUpload>() >> >> Regards, >> Erik. >> >> >> Bruno Cesar Borges schreef: >> >> > Yes, you need to set a Model object into FileUploadField. :-) >> > >> > Bruno >> > >> > >> > >> > >> >> >> -- >> Erik van Oosten >> http://www.day-to-day-stuff.blogspot.com/ >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: >> [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]