You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thomas Andraschko (Jira)" <de...@myfaces.apache.org> on 2024/12/17 14:46:00 UTC

[jira] [Created] (MYFACES-4700) Javascript AJAX: displayError only when no faces.ajax.addOnError listener was registred

Thomas Andraschko created MYFACES-4700:
------------------------------------------

             Summary: Javascript AJAX: displayError only when no faces.ajax.addOnError listener was registred
                 Key: MYFACES-4700
                 URL: https://issues.apache.org/jira/browse/MYFACES-4700
             Project: MyFaces Core
          Issue Type: Improvement
            Reporter: Thomas Andraschko


Currently writing some docs for PF exception handling and there is one difference in Mojarra and MyFaces:

In Mojarra, the error is only shown via alert, when no listener was registred and its ProjectStage Development: https://github.com/eclipse-ee4j/mojarra/blob/master/impl/src/main/resources/META-INF/resources/jakarta.faces/faces-uncompressed.js#L1442

In MyFaces, we always use console (or alert if configured) to log the error, also if listeners are defined.

I think we should at least only use console or alert, if no global listener is defined.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)