Thursday, August 4, 2011

Re: jsni, parameter from java to javascript

Unless I'm misreading what you're trying to accomplish, it sounds as though you just need to assign what you are passing in your method arguments.

public static native void setSharePropertyButton(String nameShare, String linkShare, String pictureShare, String captionShare, String descriptionShare, String messageShare) /*-{ 

$wnd.FB.ui({
method: 'feed', 
name: nameShare, 
link: linkShare
caption: captionShare, 
description: descriptionShare
message: messageShare
});
}-*/;

--
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/-/vgdzJt0h1BQJ.
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