Hi,

thanks for the reply. the wording of my question was a little bit off. I was looking for an automatic way for Exceptions that were thrown in any action method to automatically be added as a message (instead of the horrible error screens i get from facelets at the moment).

The only other option other than an automatic method would be to wrap a try-catch around all the code of every action I have and generate a message when an exception is caught. Sounds like that might have to be the way I do it.

Thanks anyway,
-Robert.

Volker Weber wrote:
Hi,

you can add a Message to FacesContect.

See:
http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/javax/faces/context/FacesContext.html#addMessage(java.lang.String,%20javax.faces.application.FacesMessage)

regards
  Volker

Robert Parsons wrote:
  
Hi,

Is there an easy way to make exceptions thrown by action methods (on
backing beans) to generate messages? Or would this only be possible by
modifying the MyFaces code.

Thanks heaps,
-Robert

    

  

Reply via email to