A modified patch from Guo Weizhan "Change the date function from bsh script to date EL in FormWidgetExampleForms.xml" OFBIZ-2257

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764206 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2009-04-11 14:40:50 +00:00
parent 818ee400a2
commit 26bb37b2dc
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
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 @@ under the License.
<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 @@ under the License.
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 @@ under the License.
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>