Author: adrianc
Date: Sun Jun 1 07:35:26 2008
New Revision: 662221
URL:
http://svn.apache.org/viewvc?rev=662221&view=revLog:
Improved Find Screen decorator.
Modified:
ofbiz/trunk/framework/common/widget/CommonScreens.xml
Modified: ofbiz/trunk/framework/common/widget/CommonScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/widget/CommonScreens.xml?rev=662221&r1=662220&r2=662221&view=diff==============================================================================
--- ofbiz/trunk/framework/common/widget/CommonScreens.xml (original)
+++ ofbiz/trunk/framework/common/widget/CommonScreens.xml Sun Jun 1 07:35:26 2008
@@ -340,9 +340,21 @@
<screen name="FindScreenDecorator">
<section>
<widgets>
- <container style="h1">
- <label text="${uiLabelMap.${titleProperty}}"/>
- </container>
+ <section>
+ <condition>
+ <if-empty field-name="titleProperty"/>
+ </condition>
+ <widgets>
+ <container style="h1">
+ <label text="${title}"/>
+ </container>
+ </widgets>
+ <fail-widgets>
+ <container style="h1">
+ <label text="${uiLabelMap.${titleProperty}}"/>
+ </container>
+ </fail-widgets>
+ </section>
<decorator-section-include name="menu-bar"/>
<screenlet name="findScreenlet" collapsible="true" padded="false">
<container style="screenlet-body">