[
https://issues.apache.org/jira/browse/EXTCDI-54?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gerhard Petracek resolved EXTCDI-54.
------------------------------------
Fix Version/s: 1.0.0-SNAPSHOT
Resolution: Fixed
> 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
> Fix For: 1.0.0-SNAPSHOT
>
>
> 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.