Author: A.Skokov
Date: 2007-06-21 10:55:11 -0400 (Thu, 21 Jun 2007)
New Revision: 1256
Modified:
trunk/richfaces/panelbar/src/main/templates/panelBarItem.jspx
Log:
http://jira.jboss.com/jira/browse/RF-274
Modified: trunk/richfaces/panelbar/src/main/templates/panelBarItem.jspx
===================================================================
--- trunk/richfaces/panelbar/src/main/templates/panelBarItem.jspx 2007-06-21 14:25:24 UTC
(rev 1255)
+++ trunk/richfaces/panelbar/src/main/templates/panelBarItem.jspx 2007-06-21 14:55:11 UTC
(rev 1256)
@@ -13,11 +13,32 @@
<div id="#{clientId}" class="dr-pnlbar rich-panelbar dr-pnlbar-ext
#{component.panel.attributes['styleClass']}"
style="#{component.panel.attributes['style']}">
<div class="dr-pnlbar-h rich-panelbar-header
#{component.panel.attributes['headerClass']}
#{component.attributes['headerClass']}"
style="#{component.panel.attributes['headerStyle']};#{component.attributes['headerStyle']}">
- #{component.attributes['label']}
+ <jsp:scriptlet><![CDATA[
+ if(component.getFacet("label")!=null &&
component.getFacet("label").isRendered()) {
+ ]]></jsp:scriptlet>
+ <u:insertFacet name="label" />
+ <jsp:scriptlet><![CDATA[
+ } else {
+ ]]></jsp:scriptlet>
+ #{component.attributes['label']}
+ <jsp:scriptlet><![CDATA[
+ }
+ ]]></jsp:scriptlet>
</div>
<div class="dr-pnlbar-h-act rich-panelbar-header-act
#{component.panel.attributes['headerClass']}
#{component.attributes['headerClass']}
#{component.panel.attributes['headerClassActive']}
#{component.attributes['headerClassActive']}"
style="#{component.panel.attributes['headerStyle']};#{component.attributes['headerStyle']};#{component.panel.attributes['headerStyleActive']};#{component.attributes['headerStyleActive']};display:
none;">
- #{component.attributes['label']}
+
+ <jsp:scriptlet><![CDATA[
+ if(component.getFacet("label")!=null &&
component.getFacet("label").isRendered()) {
+ ]]></jsp:scriptlet>
+ <u:insertFacet name="label" />
+ <jsp:scriptlet><![CDATA[
+ } else {
+ ]]></jsp:scriptlet>
+ #{component.attributes['label']}
+ <jsp:scriptlet><![CDATA[
+ }
+ ]]></jsp:scriptlet>
</div>
<div style="display: none; width: 100%;">