myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-3616) Javascript: Method call with wrong argument size after error in AJAX request/response
Date Tue, 25 Sep 2012 15:05:08 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-3616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462827#comment-13462827
] 

Werner Punz commented on MYFACES-3616:
--------------------------------------

Thanks for reporting the bug, I will fix the issue sometime tomorrow, as my time permits.

                
> 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
>
> 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

Mime
View raw message