6 Replies Latest reply on Mar 22, 2010 8:51 PM by Shervin Asgari

    FacesMessage after exception

    Miloslav Vlach Novice

      I'm facing problem with facesMessages. Let's imagine this code:


      @End
      public String save() {
       ...
      
       facesMessages.addFromResourceBundle(...);
       em.persist(instance);
      }
      



      The facesMessage is added and the transaction failed. You show another page and you get the previous message, for example: profile has been updated.


      But toe profile.save action ends with exception....


      Know somebody how to solve this problem ?


      Thanks MIla