summaryrefslogtreecommitdiffstats
path: root/WebContent/statictestfiles/jsextension.js
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-06-14 22:57:28 +0300
committerLeif Åstrand <leif@vaadin.com>2012-06-14 22:57:28 +0300
commit51ce4a2535146a3b8861bd02f655c18d9a397522 (patch)
tree2c4421863c5255b1595111c6e968b0a84f1c9f4b /WebContent/statictestfiles/jsextension.js
parent72c0f66e2aa588acbb517e6d9b482c7a75faf9f1 (diff)
downloadvaadin-framework-51ce4a2535146a3b8861bd02f655c18d9a397522.tar.gz
vaadin-framework-51ce4a2535146a3b8861bd02f655c18d9a397522.zip
Implement js rpc proxy objects and wildcard rpc support (#8888)
Diffstat (limited to 'WebContent/statictestfiles/jsextension.js')
-rw-r--r--WebContent/statictestfiles/jsextension.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/WebContent/statictestfiles/jsextension.js b/WebContent/statictestfiles/jsextension.js
index d824218560..1a46300e45 100644
--- a/WebContent/statictestfiles/jsextension.js
+++ b/WebContent/statictestfiles/jsextension.js
@@ -1,13 +1,16 @@
window.com_vaadin_tests_extensions_SimpleJavaScriptExtensionTest_SimpleJavascriptExtension = function() {
var self = this;
var state = this.getState();
- var greetBack = this.getRpcProxyFunction('com.vaadin.tests.extensions.SimpleJavaScriptExtensionTest$SimpleJavaScriptExtensionServerRpc', 'greet');
+
+ //var rpc = this.getRpcProxy("com.vaadin.tests.extensions.SimpleJavaScriptExtensionTest.SimpleJavaScriptExtensionServerRpc");
+ var rpc = this.getRpcProxy();
- this.registerRpc("com.vaadin.tests.extensions.SimpleJavaScriptExtensionTest.SimpleJavaScriptExtensionClientRpc", {
+// this.registerRpc("com.vaadin.tests.extensions.SimpleJavaScriptExtensionTest.SimpleJavaScriptExtensionClientRpc", {
+ this.registerRpc({
'greet': function(greeting) {
var response = window.prompt(state.prefix + greeting);
if (response !== null) {
- greetBack(response);
+ rpc.greet(response);
}
}
});