[jboss-cvs] jboss-seam/src/mail/org/jboss/seam/mail/ui ...

Peter Muir peter at bleepbleep.org.uk
Thu Aug 2 06:54:40 EDT 2007


  User: pmuir   
  Date: 07/08/02 06:54:40

  Modified:    src/mail/org/jboss/seam/mail/ui  UIMessage.java
  Log:
  JBSEAM-1752
  
  Revision  Changes    Path
  1.16      +34 -18    jboss-seam/src/mail/org/jboss/seam/mail/ui/UIMessage.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UIMessage.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/mail/org/jboss/seam/mail/ui/UIMessage.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- UIMessage.java	28 Jun 2007 23:24:40 -0000	1.15
  +++ UIMessage.java	2 Aug 2007 10:54:40 -0000	1.16
  @@ -89,6 +89,8 @@
         mimeMessage = null;
         try
         {
  +         try
  +         {
            if (Importance.HIGH.equalsIgnoreCase(getImportance()))
            {
               // Various mail client's use different headers for indicating
  @@ -114,6 +116,12 @@
            throw new FacesException(e.getMessage(), e);
         }
      }
  +      catch (RuntimeException e) 
  +      {
  +         MailFacesContextImpl.stop();
  +         throw e;
  +      }
  +   }
   
      @Override
      public void encodeEnd(FacesContext ctx) throws IOException
  @@ -152,8 +160,16 @@
      @Override
      public void encodeChildren(FacesContext context) throws IOException
      {
  +      try
  +      {
         JSF.renderChildren(FacesContext.getCurrentInstance(), this);
      }
  +      catch (RuntimeException e)
  +      {
  +         MailFacesContextImpl.stop();
  +         throw e;
  +      }
  +   }
   
      public String getImportance()
      {
  
  
  



More information about the jboss-cvs-commits mailing list