portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/layout LayoutPortlet.java
Date Mon, 12 Jan 2004 22:49:34 GMT
weaver      2004/01/12 14:49:34

  Modified:    portal/src/java/org/apache/jetspeed/layout
                        LayoutPortlet.java
  Log:
  now uses the new layout template location
  
  Revision  Changes    Path
  1.4       +3 -2      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/layout/LayoutPortlet.java
  
  Index: LayoutPortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/layout/LayoutPortlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LayoutPortlet.java	12 Jan 2004 18:14:27 -0000	1.3
  +++ LayoutPortlet.java	12 Jan 2004 22:49:34 -0000	1.4
  @@ -99,8 +99,9 @@
               String absViewPage = null;
               try
               {
  -                String viewPage = prefs.getValue(PARAM_VIEW_PAGE, "columns.vm");
  -                absViewPage = jpt.getTemplate(viewPage).getAppRelativePath();
  +                String viewPage = prefs.getValue(PARAM_VIEW_PAGE, "columns");
  +                // Need to retreive layout.properties instead of hard-coding ".vm" 
  +                absViewPage = jpt.getTemplate(viewPage+"/"+JetspeedPowerTool.LAYOUT_TEMPLATE_TYPE+".vm",
JetspeedPowerTool.LAYOUT_TEMPLATE_TYPE).getAppRelativePath();
                   log.debug("Path to view page for LayoutPortlet "+absViewPage);
                   request.setAttribute(PARAM_VIEW_PAGE, absViewPage);
               }
  
  
  

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


Mime
View raw message