Author: jleroux
Date: Sat Jan 24 10:56:00 2009
New Revision: 737328
URL:
http://svn.apache.org/viewvc?rev=737328&view=revLog:
I think we have an issue in UEL when it comes to escape UEL expressions in literals.
I tried what is documented in the PDF here
http://docs.ofbiz.org/download/attachments/6430/UEL.pdf, but no way.
<<To generate literal values that include the character sequence "${" or “#{“, the developer can choose to use a composite expression as shown here:
${'${'}exprA}
#{'#{'}exprB}The resulting values would then be the strings ${exprA} and #{exprB}.
Alternatively, the escape characters \$ and \# can be used to escape what would otherwise be treated as an eval-expression. Given the literal-expressions:
\${exprA}
\#{exprB}
The resulting values would again be the strings ${exprA} and #{exprB}.>>
Or maybe I'm missing something ? (Anyway it's a weird case ;o)
Modified:
ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml
Modified: ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml?rev=737328&r1=737327&r2=737328&view=diff==============================================================================
--- ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml (original)
+++ ofbiz/trunk/framework/example/widget/example/FormWidgetExampleForms.xml Sat Jan 24 10:56:00 2009
@@ -38,15 +38,17 @@
<!-- ***************** -->
<field name="field9"
title="Field9: date and time selection field with default value"
- 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()}"/>
+ 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 \${'bsh:...} notation to call an util method to get the now timestamp}"-->
+ <date-time default-value="${bsh:org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/>
</field>
<!-- ***************** -->
<!-- *** field10 *** -->
<!-- ***************** -->
<field name="field10"
title="Field10: date and time selection field with default value"
- tooltip="Same as above, Uses the nowTimestamp variable (always available in the form context) to set the default value to now">
+ tooltip="Same as above, uses the nowTimestamp variable (always available in the form context) to set the default value to now">
<date-time default-value="${nowTimestamp}"/>
</field>
<!-- ***************** -->