Added Groovy support to the FlexibleStringExpander; updated example component to show usage
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762610 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -41,7 +41,7 @@ under the License.
|
||||
tooltip="${uiLabelMap.ExampleDateField9Tooltip}">
|
||||
<!-- tooltip="Same as above, uses the ${'${'bsh:...} notation to call an util method to get the now timestamp}"-->
|
||||
<!-- tooltip="Same as above, uses the \${bsh:...} notation to call an util method to get the now timestamp}"-->
|
||||
<date-time default-value="${bsh:org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/>
|
||||
<date-time default-value="${groovy:org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field10 *** -->
|
||||
@@ -99,7 +99,7 @@ under the License.
|
||||
entry-name="exampleDateField"
|
||||
title="${uiLabelMap.ExampleDateField7Title}"
|
||||
tooltip="${uiLabelMap.ExampleDateField7Tooltip}">
|
||||
<display description="${bsh:org.ofbiz.base.util.UtilDateTime.toDateString(exampleDateField, "MM/dd/yyyy");}"/>
|
||||
<display description="${groovy:org.ofbiz.base.util.UtilDateTime.toDateString(exampleDateField, "MM/dd/yyyy");}"/>
|
||||
</field>
|
||||
<!-- ***************** -->
|
||||
<!-- *** field8 *** -->
|
||||
|
||||
Reference in New Issue
Block a user