Small change to groovy: stuff in FlexibleStringExpander to only interpret the expression/script on the initial parse and not each time it is run; tested with the stuff in the example component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763105 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -39,8 +39,8 @@ under the License.
|
||||
<field name="field9"
|
||||
title="${uiLabelMap.ExampleDateField9Title}"
|
||||
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}"-->
|
||||
<!-- 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>
|
||||
<!-- ***************** -->
|
||||
@@ -108,7 +108,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="${bsh:org.ofbiz.base.util.UtilDateTime.toDateString(exampleDateField, "MMMM,dd,yyyy");}"/>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user