ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adri...@apache.org
Subject svn commit: r662221 - /ofbiz/trunk/framework/common/widget/CommonScreens.xml
Date Sun, 01 Jun 2008 14:35:26 GMT
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">



Mime
View raw message