Sorry for the double post! My first post didnt show up. So i thought it was recognised as spam. I'll be deleting it.
Actually i'm using JSNI for eval a simple fomular. I haven't familiar with this feature. But now it works. What is the pure Java solution this problem? In my search i dind't find a native soloution for evaluating Stings-Formulars.
The thing what i have been curious about was, that the development mode throwed an error but still works on client side.
Am Dienstag, 12. Juni 2012 12:26:52 UTC+2 schrieb Jepse:
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;
Am Dienstag, 12. Juni 2012 12:26:52 UTC+2 schrieb Jepse:
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;
Am Dienstag, 12. Juni 2012 12:26:52 UTC+2 schrieb Jepse:
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;
Am Dienstag, 12. Juni 2012 12:26:52 UTC+2 schrieb Jepse:
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;
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/71xPDkVvXdEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment