On Sun, Nov 18, 2012 at 11:16 AM, Patrax <[email protected]> wrote:
> public void callFacebookAPI(String url) {
>
>
This is an instance method.
> FB.login(function(response) {
>
>
[FYI, you should probably wrap your callback in $entry(). See
https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsJSNI#calling
]
@com.google.gwt.smartpark.client.map.SmartPark::callFacebookAPI(Ljava/lang/String;Ljava/lang/
> String;)(facebookUrl);
>
>
You're calling the instance method without a receiver object. You either
need to change the instance method into a static method, or add a receiver
object like "foo.@[...](facebookUrl);" See
https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsJSNI#methods-fields
--
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.