Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4700

Javascript AJAX: displayError only when no faces.ajax.addOnError listener was registred

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 5.0.0, 4.0.3, 4.1.1
    • None
    • None

    Description

      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. Or only in ProjectStage Development? WDYT werpu?

      Attachments

        Activity

          People

            werpu Werner Punz
            tandraschko Thomas Andraschko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: