summaryrefslogtreecommitdiffstats
path: root/WebContent/statictestfiles/jsextension.js
diff options
context:
space:
mode:
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);
}
}
});