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] [Resolved] (MYFACES-3616) Javascript: Method call with wrong argument size after error in AJAX request/response
Date Tue, 25 Sep 2012 15:31:07 GMT

     [ 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

Mime
View raw message