portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r378080 - /portals/jetspeed-2/trunk/src/webapp/decorations/portlet/decorator.vm
Date Wed, 15 Feb 2006 19:56:51 GMT
Author: taylor
Date: Wed Feb 15 11:56:49 2006
New Revision: 378080

URL: http://svn.apache.org/viewcvs?rev=378080&view=rev
Log:
the JPT getPortletEntity($f) api in turn calls in to entityaccessor.getPortlteEntityForFragment
That little api ALWAYS hits the database to retrieve:
* the entity
* the entire portlet app info
* the entire portlet def info

So everytime we were retrieving a title, ahem, I'll spare you the gruesome performance details

Modified:
    portals/jetspeed-2/trunk/src/webapp/decorations/portlet/decorator.vm

Modified: portals/jetspeed-2/trunk/src/webapp/decorations/portlet/decorator.vm
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/decorations/portlet/decorator.vm?rev=378080&r1=378079&r2=378080&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/decorations/portlet/decorator.vm (original)
+++ portals/jetspeed-2/trunk/src/webapp/decorations/portlet/decorator.vm Wed Feb 15 11:56:49
2006
@@ -29,7 +29,7 @@
 <div id="${f.id}" class="portlet ${decoration.baseCSSClass}">
   <div class="PTitle" >
     <div class="PTitleContent">	
-      $!jetspeed.getTitle($jetspeed.getPortletEntity($f), $f)
+      $!jetspeed.getTitle($jetspeed.getCurrentPortletEntity(), $f)
     </div>
     
     #PortletActionBar($decoration)



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


Mime
View raw message