Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-5045

Ajax error not calling ExceptionFilter

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 2.3.0.Final
    • Fix Version/s: 2.3.1.CR1
    • Component/s: None
    • Labels:
      None

      Description

      Now that JSF2 now has support for Ajax errors Ajax requests are being processed by the JSF and not being thrown exceptions to the Seam ExceptionFilter capture.

       
      <exception log="true" log-level="fatal">
          <end-conversation before-redirect="true" root="true"/>
          <redirect view-id="/error.xhtml">
              <message severity="fatal">Unexpected error, please try again.</message>
          </redirect>
      </exception>
      
      <h:form>
          <h:commandButton action="#{xxxx.xxxxx}" value="Submit"/>			
          <h:commandButton action="#{xxxx.xxxxx}" value="Ajax Submit">
      	<f:ajax />
          </h:commandButton>
      </h:form>
      

      I even did a patch that still support the redirection to the error pages in AJAX requests.

        Gliffy Diagrams

          Attachments

          1. ErrorHandlingTest.java
            3 kB
          2. MockExternalContext.java
            13 kB
          3. MockExternalContext.java
            13 kB
          4. MockExternalContext.java
            13 kB
          5. MockExternalContext.java
            13 kB
          6. patch.zip
            4 kB

            Issue Links

              Activity

                People

                • Assignee:
                  manaRH Marek Novotny
                  Reporter:
                  peruzzo Tiago Peruzzo
                • Votes:
                  3 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: