Author: sergeyhalipov
Date: 2007-10-16 09:11:59 -0400 (Tue, 16 Oct 2007)
New Revision: 3395
Modified:
branches/3.1.x/ui/tree/src/main/templates/htmlTreeNode.jspx
Log:
http://jira.jboss.com/jira/browse/RF-1046
Modified: branches/3.1.x/ui/tree/src/main/templates/htmlTreeNode.jspx
===================================================================
--- branches/3.1.x/ui/tree/src/main/templates/htmlTreeNode.jspx 2007-10-16 11:49:43 UTC
(rev 3394)
+++ branches/3.1.x/ui/tree/src/main/templates/htmlTreeNode.jspx 2007-10-16 13:11:59 UTC
(rev 3395)
@@ -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()) {