You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org> on 2010/09/16 13:40:32 UTC

[jira] Created: (EXTCDI-54) inline-script evaluation

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.


[jira] Resolved: (EXTCDI-54) inline-script evaluation

Posted by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org>.
     [ 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.