I am trying to learn how to get data returned from JSOHelper.eval(). I have the following code:
But I get a JavaScript error window saying:
Unexpected error has occurred.Something other than a Java object was returned from JSNI method '@com.smartgwt.client.util.JSOHelper::eval(Ljava/lang/String;)': JS value of type boolean, expected java.lang.Object
I know it's a boolean.... how do I get it back into my smartgwt code to use?
Code:
JavaScriptObject jso = JSOHelper.eval("( window.location.href.indexOf('locale=') > -1)");
Unexpected error has occurred.Something other than a Java object was returned from JSNI method '@com.smartgwt.client.util.JSOHelper::eval(Ljava/lang/String;)': JS value of type boolean, expected java.lang.Object
I know it's a boolean.... how do I get it back into my smartgwt code to use?
Comment