Announcement Announcement Module
Collapse
No announcement yet.
file upload with Ajax request Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • file upload with Ajax request

    Hi all,

    I'm trying to upload a file from a SWF 2.0.7 popup, and I'm facing a weird behaviour.

    If ever I submit my form with a "simple" submit button, no javascript, then the file is submitted ok, my command bean is populated. The problem is that if there is validation error, the page is refreshed inside a new blank page, and not inside the popup div. Not acceptable

    So I submitted the form using javascript : Spring.remoting.submitForm. But then, the file property of my bean is not populated.

    Is that a bug? If it is, should I open Jira for that?

    Thanks for your answers.

  • #2
    I'm having this problem also.
    Someone fixed this?

    Comment


    • #3
      I've enabled debug logging and saw following differences between normal and ajax form submit:

      1. Normal submit:
      Code:
      Processing user event 'upload'
      Resolved model org.mobinet.mvc.model.OrderModel@1287f15
      Binding to model
      Adding default mapping for parameter 'file'
      Adding default mapping for parameter 'execution'
      Adding default mapping for parameter 'ajaxSource'
      2. Ajax submit:
      Code:
      Processing user event 'upload'
      Resolved model org.mobinet.mvc.model.OrderModel@feeed7
      Binding to model
      Adding default mapping for parameter 'execution'
      Adding default mapping for parameter 'ajaxSource'
      I think Spring.remoting.submitForm not supports file input.

      Comment

      Working...
      X