Bertrand Delacretaz wrote:
Hi Carsten,
On Wed, Mar 5, 2008 at 3:23 PM, Carsten Ziegeler <[EMAIL PROTECTED]> wrote:
...If you think of scripting parts of your application it might be
useful to group several methods into one script (for instance a
javascript script) and execute exactly one method out of this script....
Sounds interesting, but can you give an example of how that would be used?
Sure :)
For instance if you want to script server side form validation or script
some rule processing for business logic or script a workflow step etc.
I think to support this we just need some minor changes:
a) the eval method of the SlingScript needs a return value (Object)
b) We need a convention to pass the method name and the method
parameters to the script engine
c) Check for the new info mentioned in b) and if available don't execute
the whole script, but just the single method.
Carsten
--
Carsten Ziegeler
[EMAIL PROTECTED]