Hi there and hello to this group! (First Post)
First i have to say gwt changed my programmer-life ;) Thanks for that!
My Question:
I'm using SctriptEngineManager in gwt shared package on client side to evaluate String based Conditions (4>2?) or formulas. Every time GWT executes the code, i receive an error in the development console... It says:
12:13:13.012 [ERROR] [contacts] Line 253: No source code is available for type javax.script.ScriptEngineManager; did you forget to inherit a required module?
For some other modules it simply doesn't work because the code is not applicable for converting into javascript. So far all i need to know - fine.
But ScriptEngineManager throws the same error but works... Not that i don't appreciate this behaviour. But i still want to know why it throws this error?
Can anybody point me the reason? Or a better way to evaluate String based conditions or formulars?
My Code:
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName("js");
Object result = engine.eval("4>3");
Boolean boolResult = (Boolean)result;
Hi there and hello to this group! (First Post)
First i have to say gwt changed my programmer-life ;) Thanks for that!
My Question:
I'm using SctriptEngineManager in gwt shared package on client side to evaluate String based Conditions (4>2?) or formulas. Every time GWT executes the code, i receive an error in the development console... It says:
12:13:13.012 [ERROR] [contacts] Line 253: No source code is available for type javax.script.ScriptEngineManager; did you forget to inherit a required module?
For some other modules it simply doesn't work because the code is not applicable for converting into javascript. So far all i need to know - fine.
But ScriptEngineManager throws the same error but works... Not that i don't appreciate this behaviour. But i still want to know why it throws this error?
Can anybody point me the reason? Or a better way to evaluate String based conditions or formulars?
My Code:
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName("js");
Object result = engine.eval("4>3");
Boolean boolResult = (Boolean)result;
Hi there and hello to this group! (First Post)
First i have to say gwt changed my programmer-life ;) Thanks for that!
My Question:
I'm using SctriptEngineManager in gwt shared package on client side to evaluate String based Conditions (4>2?) or formulas. Every time GWT executes the code, i receive an error in the development console... It says:
12:13:13.012 [ERROR] [contacts] Line 253: No source code is available for type javax.script.ScriptEngineManager; did you forget to inherit a required module?
For some other modules it simply doesn't work because the code is not applicable for converting into javascript. So far all i need to know - fine.
But ScriptEngineManager throws the same error but works... Not that i don't appreciate this behaviour. But i still want to know why it throws this error?
Can anybody point me the reason? Or a better way to evaluate String based conditions or formulars?
My Code:
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName("js");
Object result = engine.eval("4>3");
Boolean boolResult = (Boolean)result;
Hi there and hello to this group! (First Post)
First i have to say gwt changed my programmer-life ;) Thanks for that!
My Question:
I'm using SctriptEngineManager in gwt shared package on client side to evaluate String based Conditions (4>2?) or formulas. Every time GWT executes the code, i receive an error in the development console... It says:
12:13:13.012 [ERROR] [contacts] Line 253: No source code is available for type javax.script.ScriptEngineManager; did you forget to inherit a required module?
For some other modules it simply doesn't work because the code is not applicable for converting into javascript. So far all i need to know - fine.
But ScriptEngineManager throws the same error but works... Not that i don't appreciate this behaviour. But i still want to know why it throws this error?
Can anybody point me the reason? Or a better way to evaluate String based conditions or formulars?
My Code:
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName("js");
Object result = engine.eval("4>3");
Boolean boolResult = (Boolean)result;