james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r833716 - /james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessagePresenter.java
Date Sat, 07 Nov 2009 17:11:56 GMT
Author: norman
Date: Sat Nov  7 17:11:55 2009
New Revision: 833716

URL: http://svn.apache.org/viewvc?rev=833716&view=rev
Log:
Remove hardcoded path

Modified:
    james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessagePresenter.java

Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessagePresenter.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessagePresenter.java?rev=833716&r1=833715&r2=833716&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessagePresenter.java
(original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/IMAPMessagePresenter.java
Sat Nov  7 17:11:55 2009
@@ -45,6 +45,7 @@
 import org.apache.hupa.shared.rpc.DeleteMessageByUid;
 import org.apache.hupa.shared.rpc.DeleteMessageResult;
 
+import com.google.gwt.core.client.GWT;
 import com.google.gwt.event.dom.client.ClickEvent;
 import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.event.dom.client.HasClickHandlers;
@@ -169,7 +170,7 @@
         registerHandler(display.getShowRawMessageClick().addClickHandler(new ClickHandler()
{
 
             public void onClick(ClickEvent event) {
-                String message_url = "/hupa/messageSourceServlet?uid=" + message.getUid()
+ "&folder=" + folder.getFullName();
+                String message_url = GWT.getModuleBaseURL() + "messageSourceServlet?uid="
+ message.getUid() + "&folder=" + folder.getFullName();
                 display.getRawMessageURL().setUrl(message_url);
                 display.getRawMessageDialog().center();
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message