MyFaces Core
  1. MyFaces Core
  2. MYFACES-2388

Link to download FILE on a Dialog fails of FF

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.6
    • Fix Version/s: 1.2.8
    • Component/s: None
    • Labels:
      None
    • Environment:
      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.

        Activity

        Paskal Sanil created issue -
        Leonardo Uribe made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Leonardo Uribe [ lu4242 ]
        Fix Version/s 1.2.8-SNAPSHOT [ 12314014 ]
        Resolution Fixed [ 1 ]
        Leonardo Uribe made changes -
        Fix Version/s 1.2.8 [ 12314390 ]
        Fix Version/s 1.2.8-SNAPSHOT [ 12314014 ]
        Leonardo Uribe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            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

                Development