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:
@@ -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, "MM/dd/yyyy");}"/>
|
||||
<display description="${date:toDateString(exampleDateField, "MM/dd/yyyy");}"/>
|
||||
</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, "MMMM,dd,yyyy");}"/>
|
||||
<display description="${date:toDateString(exampleDateField, "MMMM, dd, yyyy");}"/>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user