Hi all, I have been experiencing some problems with nested forms lately. I have an outer form which contains a FileUploadFile and an inner form with no upload field. If I submit the inner form in *AJAX* mode, I get the following error:
Last cause: ServletRequest does not contain multipart content. One
possible solution is to explicitly call Form.setMultipart(true), Wicket
tries its best to auto-detect multipart forms but there are certain
situation where it cannot.
even though the outer form has its setMultiPart(true).
Adding setMultiPart(true) to the inner form (even though it makes no
sense at all) breaks the JavaScript:
ERROR: Wicket.Ajax.Call.submitForm: Trying to submit form with id
'undefined' that is not in document.
even though its setOutputMarkupID(true) is set.
I have also tried the following
public boolean wantSubmitOnNestedFormSubmit() {
return false;
}
on the outer form, but I had no luck at all.
I would really appreciate if you could help me with this.
Best
Pouyan
signature.asc
Description: This is a digitally signed message part
