hi all,
i am using GWT and JSON.
my question is regarding the native functions;
i am receiving the JSON string OK my problem starts with the return
value of the native functions,
from some reason it can only be a String,
something like:
public final native String getId() /*-{ return this.id; }-*/;
in if writing the native function like
public final native int getId() /*-{ return this.id; }-*/;
i am getting
com.google.gwt.dev.shell.HostedModeException: Something other than an
int was returned from JSNI method
'@com.fishabook.ui.client.server.JsUserDetails::getRank()': JS value
of type string, expected int
event thought that on the data base the field is defined as INT.
please advise
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---