Hello,
How can I call a GWT RPC method from an external JavaScript?
For example,
<script>
function getUserInfo(username) {
return $$$$_the_GWT_RPC_METHOD_HERE_$$$(username);
}
</script>
......
in the GWT EntryPoint :
public static String[] getUserInfo(String uid) {
SERVICES.getUserInfo(uid, new AsyncCallback<String[]>() {
public void onFailure(Throwable caught) {
;
}
public void onSuccess(String[] result) {
// how can return the (String[] result) ...........??????
}
});
// how can return the (String[] result) ...........??????
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---