Browse Source

Update Using RPC To Send Events To The Client

Update the article to make it compile, if using right imports

Addresses : https://github.com/vaadin/framework/issues/10439
tags/8.5.0.alpha1
Anastasia Smirnova 6 years ago
parent
commit
4b9e102a2e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      documentation/articles/UsingRPCToSendEventsToTheClient.asciidoc

+ 2
- 2
documentation/articles/UsingRPCToSendEventsToTheClient.asciidoc View File

.... ....
package com.example.mycomponent.client; package com.example.mycomponent.client;


import com.vaadin.client.communication.ClientRpc;
import com.vaadin.shared.communication.ClientRpc;


public interface MyComponentClientRpc extends ClientRpc { public interface MyComponentClientRpc extends ClientRpc {
public void alert(String message); public void alert(String message);
"Ok, that's enough!"); "Ok, that's enough!");
} }


setText("You have clicked " + clickCount + " times");
// setText("You have clicked " + clickCount + " times");
} }
}; };



Loading…
Cancel
Save