title: What is the correct way to deal with JSF 2.0 exceptions for AJAXified components?
body: <p>I have set up web.xml so that anything that's java.lang.Throwable (i.e. any uncaught exceptions or errors) will forward to an error page. However, for AJAXified components, exceptions dont get routed to the error page via this mechanism.</p>
  
  <p>The test case I have is a simple <code>CommandButton</code> tied to an action method that always throws a <code>RuntimeException</code>. It seems like the best practice would be to have the action method catch the exception and add a <code>FacesMessage</code> of type error severity. Is this what people do? Is there a way to configure JSF so that if an AJAXified component's backing bean method throws an exception that the error page can be shown?</p>