Re: Form from post to multipart

2016-09-10 Thread Martin Grigorov
Hi, Thanks for sharing your solution! IMO this is a special case that is not that common to be in Wicket core. It also assumes that Form#setOutputMarkupId(true) has been called. What about marking the form as multipart from the beginning (Form.setMultipart(true)) ? I think it should work even i

Re: Form from post to multipart

2016-09-05 Thread Илья Нарыжный
Hello! Issue has been solved by the following code. What do you think about inclusion of it into official wicket code? /** * Update Form EncType to "multipart/form-data" of there is something which require multipart is in target ajax response */ public class FixFormEncTypeListener extends

Re: Form from post to multipart

2016-09-05 Thread Илья Нарыжный
It will not solve the problem... Component which want to be mutatable doesn't want to know about parent forms. So forms in ajax mode should somehow adjust encoding automatically, but resending of whole content of a form is not good option, imho. Thanks, Ilya

Re: Form from post to multipart

2016-09-05 Thread Maxim Solodovnik
Maybe you can use nested forms? On Mon, Sep 5, 2016 at 2:51 PM, Илья Нарыжный wrote: > Hello! > > Please help to figure out is there some good solution for the following > situation: > > There is a page with Form with in it. Form contains lots of components > underneath. And

Form from post to multipart

2016-09-05 Thread Илья Нарыжный
Hello! Please help to figure out is there some good solution for the following situation: There is a page with Form with in it. Form contains lots of components underneath. And some components can be changed by AJAX from "view" representation to "edit". And sometimes "edit" is some file upload