Author: woonsan
Date: Thu Mar 25 10:34:20 2010
New Revision: 927332

URL: http://svn.apache.org/viewvc?rev=927332&view=rev
Log:
JS2-1086: portlet preview image path from the metadata is not prepended by PA's 
context path automatically.

Modified:
    
portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/custom/CustomPreviewModePortlet.java

Modified: 
portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/custom/CustomPreviewModePortlet.java
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/custom/CustomPreviewModePortlet.java?rev=927332&r1=927331&r2=927332&view=diff
==============================================================================
--- 
portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/custom/CustomPreviewModePortlet.java
 (original)
+++ 
portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/custom/CustomPreviewModePortlet.java
 Thu Mar 25 10:34:20 2010
@@ -97,7 +97,7 @@ public class CustomPreviewModePortlet ex
         
         if (colMetaData != null && !colMetaData.isEmpty())
         {
-            previewImage = colMetaData.iterator().next().getValue();
+            previewImage = def.getApplication().getContextPath() + 
colMetaData.iterator().next().getValue();
         }
         
         request.setAttribute("previewImage", previewImage);



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to