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

Log exception on submitForm in Javascript

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.12
    • 2.1.19, 2.2.13, 2.3.3, 2.3-next-M1
    • None
    • None

    Description

      I was looking for a bug in our scripts happening on submit of the form.

      Unfortunately the JSF-Javascript submitting the form (myfaces.oam.submitForm()) is swallowing exceptions that occur while submitting.

      try {
      form.submit();
      }
      catch(e) {
      }

      Maybe one could do some kind of logging there to help debugging.

      try {
      form.submit();
      }
      catch(e) {
      console.error(e); //?
      }

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            hoersch dennis hoersch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: