Author: sergeyhalipov
Date: 2007-10-16 07:39:12 -0400 (Tue, 16 Oct 2007)
New Revision: 3393
Modified:
trunk/ui/tree/src/main/templates/htmlTreeNode.jspx
Log:
http://jira.jboss.com/jira/browse/RF-1046
Modified: trunk/ui/tree/src/main/templates/htmlTreeNode.jspx
===================================================================
--- trunk/ui/tree/src/main/templates/htmlTreeNode.jspx 2007-10-16 10:02:47 UTC (rev 3392)
+++ trunk/ui/tree/src/main/templates/htmlTreeNode.jspx 2007-10-16 11:39:12 UTC (rev 3393)
@@ -68,8 +68,9 @@
<jsp:scriptlet>
- <![CDATA[
- if (component.getUITree().isLeaf()) {
+ <![CDATA[
+ boolean leaf = component.getUITree().isLeaf();
+ if (leaf) {
]]>
</jsp:scriptlet>
<img id="#{clientId}:handle:img" src="#{spacer}"
alt="" class="dr-tree-h-ic-img-md dr-tree-h-ic-img" />
@@ -155,7 +156,7 @@
<jsp:scriptlet>
<![CDATA[
String iconClass = "rich-tree-node-icon";
- if (component.getUITree().isLeaf()) {
+ if (leaf) {
iconClass += "-leaf";
}
variables.setVariable("iconClass",iconClass);
@@ -172,7 +173,7 @@
class="dr-tree-h-ic #{iconClass} #{lineFirst}"
id="#{clientId}:icon">
<jsp:scriptlet>
<![CDATA[
- if (component.getUITree().isLeaf()) {
+ if (leaf) {
UIComponent leafFacet = component.getIconLeafFacet();
if (leafFacet != null && leafFacet.isRendered()) {