com.liferay.faces.bridge.context
Class ExceptionHandlerAjaxImpl

java.lang.Object
  extended by javax.faces.context.ExceptionHandler
      extended by javax.faces.context.ExceptionHandlerWrapper
          extended by com.liferay.faces.bridge.context.ExceptionHandlerAjaxImpl
All Implemented Interfaces:
EventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListener, javax.faces.FacesWrapper<javax.faces.context.ExceptionHandler>

public class ExceptionHandlerAjaxImpl
extends javax.faces.context.ExceptionHandlerWrapper

The purpose of this class is to wrap the JSF implementation's Ajax exception handler so that exceptions that occur during Ajax are logged to the console. For some reason Mojarra doesn't do that, which makes it very hard for the developer to find out what went wrong.

Author:
Neil Griffin

Constructor Summary
ExceptionHandlerAjaxImpl(javax.faces.context.ExceptionHandler exceptionHandler)
           
 
Method Summary
 javax.faces.context.ExceptionHandler getWrapped()
           
 void handle()
           
 
Methods inherited from class javax.faces.context.ExceptionHandlerWrapper
getHandledExceptionQueuedEvent, getHandledExceptionQueuedEvents, getRootCause, getUnhandledExceptionQueuedEvents, isListenerForSource, processEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandlerAjaxImpl

public ExceptionHandlerAjaxImpl(javax.faces.context.ExceptionHandler exceptionHandler)
Method Detail

handle

public void handle()
            throws javax.faces.FacesException
Overrides:
handle in class javax.faces.context.ExceptionHandlerWrapper
Throws:
javax.faces.FacesException

getWrapped

public javax.faces.context.ExceptionHandler getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.context.ExceptionHandler>
Overrides:
getWrapped in class javax.faces.context.ExceptionHandlerWrapper


Copyright © 2014 Liferay, Inc.. All Rights Reserved.