Yes, I know it, but I thought if I'm using the type Long in the JSNI method it would be ok because the docs says:" For values meant to be passed through unchanged to Java code, wrap the value in a Long". On the client side this works, but what do I have to do to send the Long values retrieved from the JSNI methods to the server?
On 18 Dez., 17:48, "olivier FRESSE" <olivier.fre...@gmail.com> wrote: > long is not usable "as is" . JScript doesn't have a matching type... > seehttp://code.google.com/intl/fr/docreader/#p=google-web-toolkit-doc-1-... > > 2008/12/18 Kathy <katrin.wipperm...@googlemail.com> > > > > > Hello, > > > I'm having problems to use long values in GWT 1.5. I'm using a lot of > > JSNI methods, and I need to pass longs into or out of these methods. > > As long as I don't need to change the long values in the JSNI methods > > I pass them with the type Long. But if I call a RPC method with a Long > > value retrieved from a JSNI method I always get an exception > > > "TypeError parts is undefined" > > > when the parameter of the rpc method is of type long and a > > > "com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: > > java.lang.ClassNotFoundException: > > com.google.gwt.core.client.JavaScriptObject" > > > when I'm using Long instead of the primitive type. > > > Can someone tell me what I'm doing wrong? Which type must I use when > > passing long values to rpc method which are retrieved from JSNI > > methods? > > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---