You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2006/02/15 20:56:51 UTC
svn commit: r378080 -
/portals/jetspeed-2/trunk/src/webapp/decorations/portlet/decorator.vm
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