inline-script evaluation
------------------------
Key: EXTCDI-54
URL: https://issues.apache.org/jira/browse/EXTCDI-54
Project: MyFaces CODI
Issue Type: New Feature
Components: JSE-Scripting
Reporter: Gerhard Petracek
syntax:
@Inject
@ScriptLanguage(JavaScript.class)
private ScriptExecutor scriptExecutor;
//...
Double result = (Double)this.scriptExecutor.eval("10 + 4")
or
Double result = this.scriptExecutor.eval("10 + 4", Double.class)
via el (for server-side script evaluation):
#{scriptExecutor.js['2 * 7']}
or
#{sExec.js['2 * 7']}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.