Extended form of extended GWT

I am trying to use Ext-GWT extended forms , but the above example only shows how to lay out a form, not send and process data. Are there any final examples of how to use them? I am trying to create a form that has text and a file upload, but I don’t know how to do anything other than what is presented in this example.

+3
source share
1 answer

in this form do the following:

panel.setAction(GWT.getModuleBaseURL() + "UploadServletHere");
panel.setEncoding(FormPanel.Encoding.MULTIPART);
panel.setMethod(FormPanel.Method.POST);

And then somewhere in the form where you submit your form (click button), add this:

panel.submit();

Also, make sure you make the correct HttpServlet, where you can cut your request into different fields.

, , .

+1

Source: https://habr.com/ru/post/1713296/


All Articles