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) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737328 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -38,15 +38,17 @@ under the License.
|
||||
<!-- ***************** -->
|
||||
<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>
|
||||
<!-- ***************** -->
|
||||
|
||||
Reference in New Issue
Block a user