Permalink
Browse files

Fix FullAjaxExceptionHandler incompatibility with DeltaSpike

  • Loading branch information...
1 parent db6eb6b commit 23d7baff39dad10ae57e1f06c3ea212a13d9bd91 @BalusC BalusC committed Dec 8, 2016
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/main/java/org/omnifaces/exceptionhandler/FullAjaxExceptionHandler.java
@@ -46,6 +46,7 @@
import javax.faces.event.AbortProcessingException;
import javax.faces.event.ExceptionQueuedEvent;
import javax.faces.event.PhaseId;
+import javax.faces.lifecycle.Lifecycle;
import javax.faces.webapp.FacesServlet;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
@@ -533,7 +534,9 @@ private void renderErrorPageView(FacesContext context, final HttpServletRequest
try {
context.setCurrentPhaseId(PhaseId.RENDER_RESPONSE);
- getLifecycle(context).render(context);
+ Lifecycle lifecycle = getLifecycle(context);
+ lifecycle.execute(context);
+ lifecycle.render(context);
context.responseComplete();
}
catch (Exception e) {

0 comments on commit 23d7baf

Please sign in to comment.