You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Werner Punz (JIRA)" <de...@myfaces.apache.org> on 2012/09/25 17:31:07 UTC

[jira] [Resolved] (MYFACES-3616) Javascript: Method call with wrong argument size after error in AJAX request/response

     [ https://issues.apache.org/jira/browse/MYFACES-3616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Werner Punz resolved MYFACES-3616.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.10-SNAPSHOT

fixed
                
> Javascript: Method call with wrong argument size after error in AJAX request/response
> -------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3616
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3616
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.1.9
>         Environment: MyFaces
>            Reporter: dennis hoersch
>            Assignee: Werner Punz
>             Fix For: 2.1.10-SNAPSHOT
>
>
> 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");

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira