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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.9
    • 2.0.16, 2.1.10
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: