You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2008/06/01 16:35:26 UTC

svn commit: r662221 - /ofbiz/trunk/framework/common/widget/CommonScreens.xml

Author: adrianc
Date: Sun Jun  1 07:35:26 2008
New Revision: 662221

URL: http://svn.apache.org/viewvc?rev=662221&view=rev
Log:
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">