-
1. Exceptions to rich:messages
iabughosh Apr 21, 2011 9:43 AM (in response to pschuett)you can add messages using FacesContext :
try {
//your code
} catch(MyException e) {
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR,
e.getMessage(),
e.getMessage()));
}
-
2. Exceptions to rich:messages
pschuett Apr 21, 2011 9:51 AM (in response to iabughosh)Hallo,
I do not want to implement an exception handler at every place.
I want to put _every_ uncatched exception to the rich:messages control.
Ciao
Peter Schütt
-
3. Exceptions to rich:messages
iabughosh Apr 21, 2011 9:52 AM (in response to pschuett)if you are using JSF 2 then you can use SystemEvents, event type : ExceptionQueuedEvent