[seam-commits] Seam SVN: r8358 - branches/Seam_2_0/src/mail/org/jboss/seam/mail/ui.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Jun 9 12:55:20 EDT 2008


Author: dan.j.allen
Date: 2008-06-09 12:55:20 -0400 (Mon, 09 Jun 2008)
New Revision: 8358

Modified:
   branches/Seam_2_0/src/mail/org/jboss/seam/mail/ui/UIMessage.java
Log:
JBSEAM-3083


Modified: branches/Seam_2_0/src/mail/org/jboss/seam/mail/ui/UIMessage.java
===================================================================
--- branches/Seam_2_0/src/mail/org/jboss/seam/mail/ui/UIMessage.java	2008-06-09 16:49:47 UTC (rev 8357)
+++ branches/Seam_2_0/src/mail/org/jboss/seam/mail/ui/UIMessage.java	2008-06-09 16:55:20 UTC (rev 8358)
@@ -84,8 +84,8 @@
    @Override
    public void encodeBegin(FacesContext context) throws IOException
    {
-      MailFacesContextImpl.start(getUrlBase()
-                  + context.getExternalContext().getRequestContextPath() == null ? "" : context.getExternalContext().getRequestContextPath());
+      String contextPathOverride = getUrlBase();
+      MailFacesContextImpl.start(contextPathOverride == null ? context.getExternalContext().getRequestContextPath() : contextPathOverride);
       mimeMessage = null;
       try
       {
@@ -228,7 +228,7 @@
    {
       if (urlBase == null)
       {
-         return urlBase;
+         return getString("urlBase");
       }
       else
       {




More information about the seam-commits mailing list