Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    submitForm not working

    Hi,

    I have a form with an uploaditem to send a file to a servlet via typical submit. It works. File is sent to the server, as well as some other parameters on hiddenitems.

    Now I want to process multiple uploads at once. I'm storing DynamicForm's on an ArrayList, say uploadForms, so I can do this later on:

    Code:
    for (DynamicForm form : uploadForms) {
      form.submitForm();
    }
    But this won't work. getFields() for each form returns me the FormItems with the right values (as well as getTarget returns the right URL), but submitForm() just does not call my servlet anymore.

    I guess this is because, the time I call submitForm(), the form itself is now drawn. If I call draw() before, it does call the URL, but every field value is wiped out, so this is not an option either.

    Does anyone know how make submitForm() work for an array of DynamicForms?

    Thanks in advance

    #2
    Hi diogosales,

    I am facing the same issue do you have any solution for this?

    Thanks

    Comment

    Working...
    X