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

Javascript: Method call with wrong argument size after error in AJAX request/response

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.9
    • Fix Version/s: 2.0.16, 2.1.10
    • Component/s: None
    • Labels:
      None
    • Environment:
      MyFaces

      Description

      After an AJAX request in Javascript the method _AjaxResponse.replaceHtmlItem() is called which raises an error if the item to be replaced is not found. Here the method _raiseError() is called without the 'new Error()' as first argument as in all other occurrences:

      throw this._raiseError(_Lang.getMessage("ERR_ITEM_ID_NOTFOUND", null, "_AjaxResponse.replaceHtmlItem", (itemIdToReplace) ? itemIdToReplace.toString() : "undefined"));

      This works:

      throw this._raiseError(new Error(), _Lang.getMessage("ERR_ITEM_ID_NOTFOUND", null, "_AjaxResponse.replaceHtmlItem", (itemIdToReplace) ? itemIdToReplace.toString() : "undefined"), "replaceHtmlItem");

        Attachments

          Activity

            People

            • Assignee:
              werpu Werner Punz
              Reporter:
              hoersch dennis hoersch
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: