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 2014/07/09 14:04:04 UTC

[jira] [Commented] (MYFACES-3906) jsf.js: evaled javascript errors are not handled the same way as other errors

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

Werner Punz commented on MYFACES-3906:
--------------------------------------

Ok I fixed this issue, now per default the alert log is enabled also for this case if you want to override this place following somewhere in the code:

window.myfaces = window.myfaces || {};
myfaces.config = myfaces.config || {};
myfaces.config.defaultErrorOutput = console.error;

this enables console logging for the entire myfaces javascripts and replaces the alerts in favor of console errors, wherever a javascript error occurs.


> jsf.js: evaled javascript errors are not handled the same way as other errors
> -----------------------------------------------------------------------------
>
>                 Key: MYFACES-3906
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3906
>             Project: MyFaces Core
>          Issue Type: Improvement
>    Affects Versions: 2.0.21, 2.1.15, 2.2.4
>            Reporter: Werner Punz
>            Assignee: Werner Punz
>            Priority: Minor
>             Fix For: 2.0.22-SNAPSHOT, 2.1.16-SNAPSHOT, 2.2.5-SNAPSHOT
>
>
> In the _Dom.js we eval javascripts however if there is a javascript error we have a different way of displaying the error. There always is a console error put out, however the error alert is not displayed unless there is no console.
> The rest of the system always displays an alert in development mode with a myfaces override to other logging systems.
> We should do the same here.



--
This message was sent by Atlassian JIRA
(v6.2#6252)