Author: jleroux
Date: Sat Apr 11 14:40:50 2009
New Revision: 764206

URL: http://svn.apache.org/viewvc?rev=764206&view=rev
Log:
A modified patch from Guo Weizhan "Change the date function from bsh script to 
date EL in FormWidgetExampleForms.xml" OFBIZ-2257

Modified:
    ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml

Modified: 
ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml?rev=764206&r1=764205&r2=764206&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml 
(original)
+++ ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml Sat 
Apr 11 14:40:50 2009
@@ -18,7 +18,7 @@
 under the License.
 -->
 
-<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
+<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd";>
 
     <form name="DateTimeFieldsExampleForm" type="single" title="">
@@ -39,8 +39,6 @@
         <field name="field9"
                title="${uiLabelMap.ExampleDateField9Title}"
                tooltip="${uiLabelMap.ExampleDateField9Tooltip}">
-            <!-- tooltip="Same as above, uses the ${'${'groovy:...} notation 
to call an util method to get the now timestamp}"-->
-            <!-- tooltip="Same as above, uses the \${groovy:...} notation to 
call an util method to get the now timestamp}"-->
             <date-time 
default-value="${groovy:org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/>
         </field>
         <!-- ***************** -->
@@ -99,7 +97,7 @@
                entry-name="exampleDateField"
                title="${uiLabelMap.ExampleDateField7Title}"
                tooltip="${uiLabelMap.ExampleDateField7Tooltip}">
-            <display 
description="${groovy:org.ofbiz.base.util.UtilDateTime.toDateString(exampleDateField,
 &quot;MM/dd/yyyy&quot;);}"/>
+            <display description="${date:toDateString(exampleDateField, 
&quot;MM/dd/yyyy&quot;);}"/>
         </field>
         <!-- ***************** -->
         <!-- ***   field8  *** -->
@@ -108,7 +106,7 @@
                entry-name="exampleDateField"
                title="${uiLabelMap.ExampleDateField8Title}"
                tooltip="${uiLabelMap.ExampleDateField8Tooltip}">
-            <display 
description="${bsh:org.ofbiz.base.util.UtilDateTime.toDateString(exampleDateField,
 &quot;MMMM,dd,yyyy&quot;);}"/>
+            <display description="${date:toDateString(exampleDateField, 
&quot;MMMM, dd, yyyy&quot;);}"/>
         </field>
     </form>
 


Reply via email to