Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2388

Link to download FILE on a Dialog fails of FF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.6
    • 1.2.8
    • None
    • None
    • Windows XP, Firefox 3.5.3

    Description

      On placing a link on a Dialog to download a file, gives javascript error "Form undefined".
      Find Sample generated Js below:

      oamSubmitForm('downloadDialog-f','downloadDialog-f:downloadBulkData',null,[['Uri','ExportedData.zip']]);

      On analyzing further, in methods, oamSubmitForm() and oamSetHiddenInput() it can't find the form.
      I modified "Get form logic" from:

      var form = document.forms[formName];

      to

      var form = document.getElementById(formName);

      and it now works. We are currently using this workaround. But a neat solution in the jar would be more preferable.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            paskal.sanil Paskal Sanil
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Remaining Estimate - 168h
                168h
                Logged:
                Time Spent - Not Specified
                Not Specified