Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy to clipboard with GWT?

Tags:

clipboard

gwt

Couldn't find anything on this with a Google Search.

Does anyone know how to copy some text to the clipboard through GWT Java code? I'd like to avoid the raw javascript injection solution.

Any help or pointers appreciated.

like image 295
JohnIdol Avatar asked Aug 22 '09 21:08

JohnIdol


1 Answers

I have used ZeroClipboard with GWT (as suggested by Alexander) but it was not straightforward.

See http://blog.dandoy.org/2011/09/using-zeroclipboard-with-gwt.html

like image 52
Cedric Avatar answered Oct 06 '22 19:10

Cedric