Actually, none of that code is necessary - there is a nowTimestamp object 
already in the rendering context.

-Adrian


--- On Fri, 12/19/08, Jacques Le Roux <[email protected]> wrote:

> From: Jacques Le Roux <[email protected]>
> Subject: UEL error on ".util."
> To: [email protected]
> Date: Friday, December 19, 2008, 12:25 PM
> In FormWidgetExampleForms.xml I got
> 
> 2008-12-19 21:21:05,500 (http-0.0.0.0-28443-5) [           
> UtilXml.java:241:INFO ] XML Read 0.032s:
> file:/D:/workspace/ofbizDev/framework/example/widget/example/FormWidgetExampleForms.xml
> 2008-12-19 21:21:05,625 (http-0.0.0.0-28443-5) [           
> BshUtil.java:85 :ERROR]
> ---- exception report
> ----------------------------------------------------------
> BSH Evaluation error.
> Exception: bsh.ParseException
> Message: In file: inline evaluation of: `` notation to call
> an util method to get the now timestamp;''
> Encountered "call" at line 1, column 14.
> 
> ---- stack trace
> ---------------------------------------------------------------
> In file: inline evaluation of: `` notation to call an util
> method to get the now timestamp;'' Encountered
> "call" at line 1, column 14.
> 
> <date-time default-value="${bsh:
> org.ofbiz.base.util.UtilDateTime.nowTimestamp()}"/>
> on the 2 instances
> 
> I fixed the 1st in introducing date:nowTimestamp() in
> r728133
> 
> I let the other for now (it's easy to fix in all OFBiz
> by replacing the one by the other) for an live example to
> Adrian
> 
> Jacques


      

Reply via email to