ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Smith <aradmo...@gmail.com>
Subject how to pass groovy variables to widget screen?
Date Thu, 07 Feb 2013 00:20:44 GMT
Hi All,
I am reading some of tutorial about widget screen, but it is written with
beanshell.

with beanshell,  if i put a line

*String hello = "world";
context.put("hello", hello);*

in the *helloworld*.*bsh* file.

then I can retrieve it in widget screen by calling it in action tag
*<actions>
<script
location="component://hello/webapp/hello/WEB-INF/actions/hello/helloworld.bsh"/>
</actions>*

and  access it by using *${hello}*,then i will have "*world*".

anyone know how do I do the same thing with *groovy*?
Thank you

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message