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:
Andrew Zeneski
2009-04-07 03:17:31 +00:00
parent 2205720dc2
commit cc9b2baf9d
4 changed files with 76 additions and 12 deletions
@@ -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, &quot;MM/dd/yyyy&quot;);}"/>
<display description="${groovy:org.ofbiz.base.util.UtilDateTime.toDateString(exampleDateField, &quot;MM/dd/yyyy&quot;);}"/>
</field>
<!-- ***************** -->
<!-- *** field8 *** -->