[ 
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

Reply via email to