From: <jma...@rh...> - 2009-04-22 02:33:23
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><style type="text/css"><!-- #msg DL { border : 1px #006 solid; background-color : #369; padding : 6px; color : #fff; } #msg DT { float : left; width : 6em; font-weight : bold; } #msg DL, #msg DT, #msg UL, #msg LI { font-family : arial,helvetica,sans-serif; font-size : 10pt; } h3 { font-family : arial,helvetica,sans-serif; font-size : 10pt; font-weight : bold; } #msg PRE { overflow : auto; white-space : normal; background-color : #ffc; border : 1px #fc0 solid; padding : 6px; } #msg UL, PRE, .diff { overflow : auto; } #patch h4 { font-family : arial,helvetica,sans-serif; font-size : 10pt; } #patch h4 { padding: 8px; background : #369; color : #fff; margin : 0; } #patch .propset h4, #patch .binary h4 {margin: 0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {background:#eeeeee;padding: 0 0 10px 0;} #patch .propset .diff, #patch .binary .diff {padding: 10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch .add {background:#ddffdd;} #patch .rem {background:#ffdddd;} #patch .lines, .info {color:#888888;background:#ffffff;} .diff { width : 100%; } #msg DL { border : 1px #006 solid; background-color : #369; padding : 6px; color : #fff; } #msg DT { float : left; width : 6em; font-weight : bold; } #msg DL, #msg DT, #msg UL, #msg LI { font-family : arial,helvetica,sans-serif; font-size : 10pt; } h3 { font-family : arial,helvetica,sans-serif; font-size : 10pt; font-weight : bold; } #msg PRE { overflow : auto; white-space : normal; background-color : #ffc; border : 1px #fc0 solid; padding : 6px; } #msg UL, PRE, .diff { overflow : auto; } #patch h4 { font-family : arial,helvetica,sans-serif; font-size : 10pt; } #patch h4 { padding: 8px; background : #369; color : #fff; margin : 0; } #patch .propset h4, #patch .binary h4 {margin: 0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {background:#eeeeee;padding: 0 0 10px 0;} #patch .propset .diff, #patch .binary .diff {padding: 10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch .add {background:#ddffdd;} #patch .rem {background:#ffdddd;} #patch .lines, .info {color:#888888;background:#ffffff;} .diff { width : 100%; } --></style> <title>[rhq-project.org rhq] [3821] performance: only load the resource/group nav trees once per page, i.e.</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>3821</dd> <dt>Author</dt> <dd>jmarques</dd> <dt>Date</dt> <dd>2009-04-21 21:33:18 -0500 (Tue, 21 Apr 2009)</dd> </dl> <h3>Log Message</h3> <pre>performance: only load the resource/group nav trees once per page, i.e. context menu loads/reloads no longer cause the tree to re-query the DB for resources or the cost of rebuilding the in-memory tree</pre> <h3>Modified Paths</h3> <ul> <li><a href="#rhqtrunkmodulesenterpriseguiportalwarsrcmainwebapprhqgroupnavigationGroupTreexhtml">rhq/trunk/modules/enterprise/gui/portal-war/src/main/webapp/rhq/group/navigation/GroupTree.xhtml</a></li> <li><a href="#rhqtrunkmodulesenterpriseguiportalwarsrcmainwebapprhqresourcenavigationResourcesTreexhtml">rhq/trunk/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/navigation/ResourcesTree.xhtml</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="rhqtrunkmodulesenterpriseguiportalwarsrcmainwebapprhqgroupnavigationGroupTreexhtml"></a> <div class="modfile"><h4>Modified: rhq/trunk/modules/enterprise/gui/portal-war/src/main/webapp/rhq/group/navigation/GroupTree.xhtml (3820 => 3821)</h4> <pre class="diff"> <span class="info">--- rhq/trunk/modules/enterprise/gui/portal-war/src/main/webapp/rhq/group/navigation/GroupTree.xhtml 2009-04-21 21:47:04 UTC (rev 3820) +++ rhq/trunk/modules/enterprise/gui/portal-war/src/main/webapp/rhq/group/navigation/GroupTree.xhtml 2009-04-22 02:33:18 UTC (rev 3821) </span><span class="lines">@@ -29,6 +29,7 @@ </span><span class="cx"> <h:message for="leftNavGroupTree" showSummary="true" showDetail="false" style="background-color: yellow; display:block; width:100%;"/> </a4j:outputPanel> </span><span class="add">+ <a4j:keepAlive beanName="ResourceGroupTreeModelUIBean" /> </span><span class="cx"> <f:facet name="header"> Server Resources (in single element pages) </span><span class="lines">@@ -133,7 +134,8 @@ </span><span class="cx"> <!-- TODO: Implement GroupTreeContextMenuUIBean. --> <rich:contextMenu attached="false" id="resourceMenu" binding="#{ResourceGroupTreeContextMenuUIBean.menu}" </span><span class="rem">- disableDefaultMenu="false" style="z-index: 50;" > </span><span class="add">+ disableDefaultMenu="false" style="z-index: 50;" + submitMode="ajax" > </span><span class="cx"> </rich:contextMenu> </span></pre></div> <a id="rhqtrunkmodulesenterpriseguiportalwarsrcmainwebapprhqresourcenavigationResourcesTreexhtml"></a> <div class="modfile"><h4>Modified: rhq/trunk/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/navigation/ResourcesTree.xhtml (3820 => 3821)</h4> <pre class="diff"> <span class="info">--- rhq/trunk/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/navigation/ResourcesTree.xhtml 2009-04-21 21:47:04 UTC (rev 3820) +++ rhq/trunk/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/navigation/ResourcesTree.xhtml 2009-04-22 02:33:18 UTC (rev 3821) </span><span class="lines">@@ -30,8 +30,8 @@ </span><span class="cx"> <h:message for="leftNavTree" showSummary="true" showDetail="false" style="background-color: yellow; display:block; width:100%;"/> </a4j:outputPanel> </span><span class="add">+ <a4j:keepAlive beanName="ResourceTreeModelUIBean" /> </span><span class="cx"> </span><span class="rem">- </span><span class="cx"> <rich:tree style="width: 100%; height: 100%; min-width: 100%; min-height: 100%" switchType="ajax" stateAdvisor="#{ResourceTreeStateAdvisor}" status="commonStatus" </span><span class="lines">@@ -102,7 +102,8 @@ </span><span class="cx"> <h:panelGroup id="contentMenuPanelGroup"> <rich:contextMenu attached="true" id="resourceMenu" binding="#{ResourceTreeContextMenuUIBean.menu}" </span><span class="rem">- disableDefaultMenu="false" style="z-index: 50;" /> </span><span class="add">+ disableDefaultMenu="false" style="z-index: 50;" + submitMode="ajax" /> </span><span class="cx"> </h:panelGroup> </a4j:outputPanel> </span> </pre> </div> </div> </body> </html> |