Author: sergeyhalipov
Date: 2007-07-16 09:47:08 -0400 (Mon, 16 Jul 2007)
New Revision: 1633
Modified:
branches/3.0.2/richfaces/panel/src/main/config/component/panel.xml
branches/3.0.2/richfaces/panel/src/main/java/org/richfaces/component/UIPanel.java
branches/3.0.2/richfaces/panel/src/main/templates/panel.jspx
Log:
http://jira.jboss.com/jira/browse/RF-333
Modified: branches/3.0.2/richfaces/panel/src/main/config/component/panel.xml
===================================================================
--- branches/3.0.2/richfaces/panel/src/main/config/component/panel.xml 2007-07-16 13:30:45
UTC (rev 1632)
+++ branches/3.0.2/richfaces/panel/src/main/config/component/panel.xml 2007-07-16 13:47:08
UTC (rev 1633)
@@ -47,6 +47,10 @@
<description>
A class that defines a style for a panel content
</description>
+ </property>
+ <property>
+ <name>header</name>
+ <classname>java.lang.String</classname>
</property>
</component>
</components>
Modified:
branches/3.0.2/richfaces/panel/src/main/java/org/richfaces/component/UIPanel.java
===================================================================
---
branches/3.0.2/richfaces/panel/src/main/java/org/richfaces/component/UIPanel.java 2007-07-16
13:30:45 UTC (rev 1632)
+++
branches/3.0.2/richfaces/panel/src/main/java/org/richfaces/component/UIPanel.java 2007-07-16
13:47:08 UTC (rev 1633)
@@ -32,4 +32,7 @@
public boolean getRendersChildren() {
return true;
}
+
+ public abstract String getHeader();
+ public abstract void setHeader(String header);
}
Modified: branches/3.0.2/richfaces/panel/src/main/templates/panel.jspx
===================================================================
--- branches/3.0.2/richfaces/panel/src/main/templates/panel.jspx 2007-07-16 13:30:45 UTC
(rev 1632)
+++ branches/3.0.2/richfaces/panel/src/main/templates/panel.jspx 2007-07-16 13:47:08 UTC
(rev 1633)
@@ -19,6 +19,12 @@
<u:insertFacet name="header" />
</div>
<jsp:scriptlet>
+ <![CDATA[} else if (null != component.getHeader() &&
!"".equals(component.getHeader())) { ]]>
+ </jsp:scriptlet>
+ <div id="#{clientId}_header" class="dr-pnl-h rich-panel-header
#{component.attributes['headerClass']}">
+ #{component.attributes['header']}
+ </div>
+ <jsp:scriptlet>
<![CDATA[}]]>
</jsp:scriptlet>
<div id="#{clientId}_body" class="dr-pnl-b rich-panel-body
#{component.attributes['bodyClass']}">