How to copy text to Clipboard in GWT

2009-10-12 Thread
I can't find the method to copy text to Clipboard in GWT, Is the GWT not support this method? if it can't work in GWT, how can it do in javascript I know how to work in IE, but i don't know how to make javascript work in chrome? how to use the javascript object Clipboard in chrome? thank

how to mix text and javascript with native method?

2009-09-29 Thread
*this method can get a String: a href=abc/a* private native String getHtml()/*-{ return [ 'a href='abc/a' ].join(); }-*/; *this native method can invoke JavaMethod MsgAlert();* private native void alert()/*-{ @com.package.Test::MsgAlert()(); }-*/; public static void MsgAlert(){

How to throw RuntimeException with GWT to client

2009-09-24 Thread
I have 2 questions.1. In GWT API ,it say after 1.5, we can create Exception implement Serializable than GWT RPC can throw Exception to Client. but when I try, Only when my Exception extends SerializableException ,itcan be throw to Client. Why? 2. How can throw RuntimeException to Client. As

Re: Cookies not available in Hosted Mode

2009-09-10 Thread
you mean session? at you project :war/WEB-INF/appengine-web.xml add this: sessions-enabledtrue/sessions-enabled 2009/9/10 Anca ai...@computervoice.ro Hi, When I run my GWT application in Hosted Mode, I'm unable to retrieve cookies that I previously set. I also compiled the application