Re: downloading file from servlet

2016-03-21 Thread Velusamy Velu
Thanks for this discussion, I'm able to resolve one of the issues I was 
running in to.  Now I have '*A*' solution if not the most perfect one. 

The use I have is - 

   1. User creates a drawing on HTML5 canvas.
   2. Drawing is converted to SVG on the browser.
   3. User wants to save the drawing as SVG file.
   4. However, I'm not sure a way exists the to save the SVG directly from 
   the browser.
   5. So the string representing SVG is sent to the server.
   6. Server creates a name for the SVG.
   7. And sends the SVG back to the browser.
   8. The browser instantly saves the file with the name assigned by the 
   browser.

That's really good, but I'm sure there has to be a way to save the SVG 
created by the JS code without making a round trip to server.  Has any one 
have the know how?

Thanks
Velu

On Tuesday, October 19, 2010 at 11:49:12 PM UTC-4, mike b wrote:
>
> I have read all the other posts about downloading Excel files and how 
> to do it w/ an IFRAME, with RequestBuilder, and Window.open(). 
> However, none of them actually work.  Luckily, I have a working 
> servlet which executes and returns successfully with javascript. 
> However, we'd like to do it all in GWT.  The error message from IE is 
> below.  The Window.open() DOES work with FF, but not with IE. 
> Unfortunately, we must deploy to IE, no options there. 
>
> Situation: 
> GWT 2.0.4  mvp4g 1.2.0 
> Need to download a file to open in Excel.  At this point, its actually 
> a text file, but the MIME type is setup for Excel. 
>
> The servlet has been tested w/ straight java script using 
> "document.body.appendChild(iframe);".  This works like a champ in IE 
> and FF. 
>
> However, when I do "Window.open(url, "_self",null);" in GWT, IE can't 
> download the file.  It throws an error saying... 
>
> " 
> Internet Exploroer cannot download MyFile from localhost 
>
> IE was not able to open this Internet site.  The requests site is 
> either unavailable or cannot be found.  Please try again later. 
> " 
>
> In GWT, I have also tried just using a Frame, adding it to a Panel, 
> and then calling myFrame.setUrl("myUrl"); 
>
> This also successfully gets to the servlet, but fails w/ the above 
> error message while trying to "open" the file. 
>
> It seems as if GWT is telling the browser to cancel the download when 
> it pops up. 
>
> Any suggestions?  Any guesses? 
>
> Thanks, 
> mikeb

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuperDevMode

2016-03-21 Thread Jim Douglas
Hmm, that sounded like there might be a hint in there somewhere. :-)

> You could also create a launch configuration for the SuperDevMode code 
server directly because DevMode -noserver is the same as starting the main 
class CodeServer. 

What does that mean in Eclipse, Jens?  This is what I have for the DevMode 
"Program Arguments":

-noserver -superDevMode -startupUrl http://localhost:/apps/default -war 
"${workspace_loc:/BBj/war}" -remoteUI 
"${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO -codeServerPort 
9997 -bindAddress 0.0.0.0 com.basis.bbj.web.gwt.EnglishOnly

On Monday, March 21, 2016 at 3:10:23 PM UTC-7, Jens wrote:
>
> With old/classic DevMode -noserver there is no jetty started at all so it 
> did not matter if you have a jetty-all-9.2.10.jar on classpath or not. 
> However with GWT 2.8 when executing DevMode -noserver the SuperDevMode 
> CodeServer will be started which uses its own embedded jetty 
> server/library. So now you have two jetty libraries on class path with 
> different versions and thats why you get the above error: a class file from 
> a wrong jetty version has been loaded.
>
> So yes, without that extra jetty library on your classpath would have just 
> worked ;-) 
>
> You can fix your issue by removing any server side library from your 
> DevMode launch configuration. You could also create a launch configuration 
> for the SuperDevMode code server directly because DevMode -noserver is 
> the same as starting the main class CodeServer. The parameters used to 
> launch CodeServer are in your first post (Runing CodeServer with 
> parameters:).
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuperDevMode

2016-03-21 Thread Jens
With old/classic DevMode -noserver there is no jetty started at all so it 
did not matter if you have a jetty-all-9.2.10.jar on classpath or not. 
However with GWT 2.8 when executing DevMode -noserver the SuperDevMode 
CodeServer will be started which uses its own embedded jetty 
server/library. So now you have two jetty libraries on class path with 
different versions and thats why you get the above error: a class file from 
a wrong jetty version has been loaded.

So yes, without that extra jetty library on your classpath would have just 
worked ;-) 

You can fix your issue by removing any server side library from your 
DevMode launch configuration. You could also create a launch configuration 
for the SuperDevMode code server directly because DevMode -noserver is the 
same as starting the main class CodeServer. The parameters used to launch 
CodeServer are in your first post (Runing CodeServer with parameters:).

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuperDevMode

2016-03-21 Thread Jim Douglas
I have no idea what you just said, Juan.

On Monday, March 21, 2016 at 2:36:16 PM UTC-7, Juan Pablo Gardella wrote:
>
> I think you are actually using an embedded jetty by using cfx.
> On Mon, 21 Mar 2016 at 15:34 Jim Douglas > 
> wrote:
>
>> What about it?
>>
>>
>> On Monday, March 21, 2016 at 2:29:30 PM UTC-7, Juan Pablo Gardella wrote:
>>
>>> What about /jetty-all-9.2.10.jar?
>>>
>>> On Mon, 21 Mar 2016 at 15:19 Jim Douglas  wrote:
>>>
>> Since DevMode dropped dead, I've just written it off and worked directly 
 in JavaScript, adding debug logging as necessary to isolate problems.  
 It's 
 not optimal, but it's workable.  I'm looking at SuperDevMode with GWT 2.8 
 now, and I'm struggling.  The documentation (
 http://www.gwtproject.org/articles/superdevmode.html) suggests 
 (possibly overly optimistically?) that it just works; is that 
 theoretically 
 true, or is it omitting crucial details?

 We do not use the builtin Jetty server; is SuperDevMode somehow bound 
 to that older version of Jetty?  When I try to start it here, it dies 
 immediately with this error:

 Launching: 
 '/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/bin/java'
  
 '-Xmx1536m' '-Dbasis.BBjHome=/Users/jimdouglas/basis-dev/' 
 '-Djava.util.logging.config.file=/Users/jimdouglas/workspace/BBj/logging.properties'
  
 '-Dfile.encoding=UTF-8' '-classpath' 
 '/Users/jimdouglas/basis-dev/apps/aon/help/addonhelp.jar:/Users/jimdouglas/basis-dev/barista/sys/help/baristahelp.jar:/Users/jimdouglas/workspace/BBj/src:/Users/jimdouglas/workspace/BBj/.apt_generated:/Users/jimdouglas/workspace/ParserServiceAPI/src:/Users/jimdouglas/workspace/BBj/war/WEB-INF/classes:/Users/jimdouglas/workspace/BBj/jars/org.apache.jasper.glassfish-2.2.2.v201112011158.jar:/Users/jimdouglas/workspace/BBj/jars/org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar:/Users/jimdouglas/workspace/BBj/jars/activation-1.1.jar:/Users/jimdouglas/workspace/BBj/jars/AppleJavaExtensions.jar:/Users/jimdouglas/workspace/BBj/jars/asm-all-5.0.3.jar:/Users/jimdouglas/workspace/BBj/jars/aws-java-sdk-1.10.18.jar:/Users/jimdouglas/workspace/BBj/jars/axis.jar:/Users/jimdouglas/workspace/BBj/jars/axis2-adb-1.6.2.jar:/Users/jimdouglas/workspace/BBj/jars/axis2-kernel-1.6.2.jar:/Users/jimdouglas/workspace/BBj/jars/bcel.jar:/Users/jimdouglas/workspace/BBj/jars/bcprov-jdk16-146.jar:/Users/jimdouglas/workspace/BBj/jars/charsetprovider.jar:/Users/jimdouglas/workspace/BBj/jars/comm.jar:/Users/jimdouglas/workspace/BBj/jars/commons-cli-1.2.jar:/Users/jimdouglas/workspace/BBj/jars/commons-fileupload-1.3.1.jar:/Users/jimdouglas/workspace/BBj/jars/commons-io-1.4.jar:/Users/jimdouglas/workspace/BBj/jars/config-1.3.0.jar:/Users/jimdouglas/workspace/BBj/jars/flexlm.jar:/Users/jimdouglas/workspace/BBj/jars/flexlmutil.jar:/Users/jimdouglas/workspace/BBj/jars/FontChooser-7.3.jar:/Users/jimdouglas/workspace/BBj/jars/gson-2.3.1.jar:/Users/jimdouglas/workspace/BBj/jars/guava-16.0.1.jar:/Users/jimdouglas/workspace/BBj/jars/hamcrest-core-1.3.jar:/Users/jimdouglas/workspace/BBj/jars/HelpAll.jar:/Users/jimdouglas/workspace/BBj/jars/InterFaxClient.jar:/Users/jimdouglas/workspace/BBj/jars/iText-2.1.7.jar:/Users/jimdouglas/workspace/BBj/jars/ihhelper-0.0.1.jar:/Users/jimdouglas/workspace/BBj/jars/jas.jar:/Users/jimdouglas/workspace/BBj/jars/jasperreports-javaflow-6.0.4.jar:/Users/jimdouglas/workspace/BBj/jars/jasmin.jar:/Users/jimdouglas/workspace/BBj/jars/java_cup.jar:/Users/jimdouglas/workspace/BBj/jars/jaxrpc-api.jar:/Users/jimdouglas/workspace/BBj/jars/jaxrpc-ri.jar:/Users/jimdouglas/workspace/BBj/jars/jcommon-1.0.23.jar:/Users/jimdouglas/workspace/BBj/jars/JDBCPooling-internal.jar:/Users/jimdouglas/workspace/BBj/jars/joda-time-2.8.2.jar:/Users/jimdouglas/workspace/BBj/jars/servlet-api-3.1.jar:/Users/jimdouglas/workspace/BBj/jars/jflex.jar:/Users/jimdouglas/workspace/BBj/jars/jfreechart-1.0.19.jar:/Users/jimdouglas/workspace/BBj/jars/junit-4.11.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-analyzers-common-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-core-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-queryparser-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-backward-codecs-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/mail-1.4.jar:/Users/jimdouglas/workspace/BBj/jars/NetBeans.jar:/Users/jimdouglas/workspace/BBj/jars/outline.jar:/Users/jimdouglas/workspace/BBj/jars/PDFRenderer-0.9.1.jar:/Users/jimdouglas/workspace/BBj/jars/rfaxCOMM.jar:/Users/jimdouglas/workspace/BBj/jars/rfaxRXTX.jar:/Users/jimdouglas/workspace/BBj/jars/RXTXcomm.jar:/Users/jimdouglas/workspace/BBj/jars/skinlf.jar:/Users/jimdouglas/workspace/BBj/jars/ssce.jar:/Users/jimdouglas/workspace/BBj/jars/swingx-1.0.jar:/Users/jimdouglas/workspace/BBj/jars/TimingFramework.jar:/Users/jimdouglas/workspace/BBj/jars/unboundid-ldapsdk-se-2.3.6.jar:/Users/jimdouglas/workspace/BBj/jars/jetty-all-9.2.10.jar:/Library/Java/JavaVir

Re: SuperDevMode

2016-03-21 Thread Juan Pablo Gardella
I think you are actually using an embedded jetty by using cfx.
On Mon, 21 Mar 2016 at 15:34 Jim Douglas  wrote:

> What about it?
>
>
> On Monday, March 21, 2016 at 2:29:30 PM UTC-7, Juan Pablo Gardella wrote:
>
>> What about /jetty-all-9.2.10.jar?
>>
>> On Mon, 21 Mar 2016 at 15:19 Jim Douglas  wrote:
>>
> Since DevMode dropped dead, I've just written it off and worked directly
>>> in JavaScript, adding debug logging as necessary to isolate problems.  It's
>>> not optimal, but it's workable.  I'm looking at SuperDevMode with GWT 2.8
>>> now, and I'm struggling.  The documentation (
>>> http://www.gwtproject.org/articles/superdevmode.html) suggests
>>> (possibly overly optimistically?) that it just works; is that theoretically
>>> true, or is it omitting crucial details?
>>>
>>> We do not use the builtin Jetty server; is SuperDevMode somehow bound to
>>> that older version of Jetty?  When I try to start it here, it dies
>>> immediately with this error:
>>>
>>> Launching:
>>> '/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/bin/java'
>>> '-Xmx1536m' '-Dbasis.BBjHome=/Users/jimdouglas/basis-dev/'
>>> '-Djava.util.logging.config.file=/Users/jimdouglas/workspace/BBj/logging.properties'
>>> '-Dfile.encoding=UTF-8' '-classpath'
>>> '/Users/jimdouglas/basis-dev/apps/aon/help/addonhelp.jar:/Users/jimdouglas/basis-dev/barista/sys/help/baristahelp.jar:/Users/jimdouglas/workspace/BBj/src:/Users/jimdouglas/workspace/BBj/.apt_generated:/Users/jimdouglas/workspace/ParserServiceAPI/src:/Users/jimdouglas/workspace/BBj/war/WEB-INF/classes:/Users/jimdouglas/workspace/BBj/jars/org.apache.jasper.glassfish-2.2.2.v201112011158.jar:/Users/jimdouglas/workspace/BBj/jars/org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar:/Users/jimdouglas/workspace/BBj/jars/activation-1.1.jar:/Users/jimdouglas/workspace/BBj/jars/AppleJavaExtensions.jar:/Users/jimdouglas/workspace/BBj/jars/asm-all-5.0.3.jar:/Users/jimdouglas/workspace/BBj/jars/aws-java-sdk-1.10.18.jar:/Users/jimdouglas/workspace/BBj/jars/axis.jar:/Users/jimdouglas/workspace/BBj/jars/axis2-adb-1.6.2.jar:/Users/jimdouglas/workspace/BBj/jars/axis2-kernel-1.6.2.jar:/Users/jimdouglas/workspace/BBj/jars/bcel.jar:/Users/jimdouglas/workspace/BBj/jars/bcprov-jdk16-146.jar:/Users/jimdouglas/workspace/BBj/jars/charsetprovider.jar:/Users/jimdouglas/workspace/BBj/jars/comm.jar:/Users/jimdouglas/workspace/BBj/jars/commons-cli-1.2.jar:/Users/jimdouglas/workspace/BBj/jars/commons-fileupload-1.3.1.jar:/Users/jimdouglas/workspace/BBj/jars/commons-io-1.4.jar:/Users/jimdouglas/workspace/BBj/jars/config-1.3.0.jar:/Users/jimdouglas/workspace/BBj/jars/flexlm.jar:/Users/jimdouglas/workspace/BBj/jars/flexlmutil.jar:/Users/jimdouglas/workspace/BBj/jars/FontChooser-7.3.jar:/Users/jimdouglas/workspace/BBj/jars/gson-2.3.1.jar:/Users/jimdouglas/workspace/BBj/jars/guava-16.0.1.jar:/Users/jimdouglas/workspace/BBj/jars/hamcrest-core-1.3.jar:/Users/jimdouglas/workspace/BBj/jars/HelpAll.jar:/Users/jimdouglas/workspace/BBj/jars/InterFaxClient.jar:/Users/jimdouglas/workspace/BBj/jars/iText-2.1.7.jar:/Users/jimdouglas/workspace/BBj/jars/ihhelper-0.0.1.jar:/Users/jimdouglas/workspace/BBj/jars/jas.jar:/Users/jimdouglas/workspace/BBj/jars/jasperreports-javaflow-6.0.4.jar:/Users/jimdouglas/workspace/BBj/jars/jasmin.jar:/Users/jimdouglas/workspace/BBj/jars/java_cup.jar:/Users/jimdouglas/workspace/BBj/jars/jaxrpc-api.jar:/Users/jimdouglas/workspace/BBj/jars/jaxrpc-ri.jar:/Users/jimdouglas/workspace/BBj/jars/jcommon-1.0.23.jar:/Users/jimdouglas/workspace/BBj/jars/JDBCPooling-internal.jar:/Users/jimdouglas/workspace/BBj/jars/joda-time-2.8.2.jar:/Users/jimdouglas/workspace/BBj/jars/servlet-api-3.1.jar:/Users/jimdouglas/workspace/BBj/jars/jflex.jar:/Users/jimdouglas/workspace/BBj/jars/jfreechart-1.0.19.jar:/Users/jimdouglas/workspace/BBj/jars/junit-4.11.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-analyzers-common-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-core-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-queryparser-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-backward-codecs-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/mail-1.4.jar:/Users/jimdouglas/workspace/BBj/jars/NetBeans.jar:/Users/jimdouglas/workspace/BBj/jars/outline.jar:/Users/jimdouglas/workspace/BBj/jars/PDFRenderer-0.9.1.jar:/Users/jimdouglas/workspace/BBj/jars/rfaxCOMM.jar:/Users/jimdouglas/workspace/BBj/jars/rfaxRXTX.jar:/Users/jimdouglas/workspace/BBj/jars/RXTXcomm.jar:/Users/jimdouglas/workspace/BBj/jars/skinlf.jar:/Users/jimdouglas/workspace/BBj/jars/ssce.jar:/Users/jimdouglas/workspace/BBj/jars/swingx-1.0.jar:/Users/jimdouglas/workspace/BBj/jars/TimingFramework.jar:/Users/jimdouglas/workspace/BBj/jars/unboundid-ldapsdk-se-2.3.6.jar:/Users/jimdouglas/workspace/BBj/jars/jetty-all-9.2.10.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74

Re: SuperDevMode

2016-03-21 Thread Jim Douglas
What about it?

On Monday, March 21, 2016 at 2:29:30 PM UTC-7, Juan Pablo Gardella wrote:
>
> What about /jetty-all-9.2.10.jar?
>
> On Mon, 21 Mar 2016 at 15:19 Jim Douglas > 
> wrote:
>
>> Since DevMode dropped dead, I've just written it off and worked directly 
>> in JavaScript, adding debug logging as necessary to isolate problems.  It's 
>> not optimal, but it's workable.  I'm looking at SuperDevMode with GWT 2.8 
>> now, and I'm struggling.  The documentation (
>> http://www.gwtproject.org/articles/superdevmode.html) suggests (possibly 
>> overly optimistically?) that it just works; is that theoretically true, or 
>> is it omitting crucial details?
>>
>> We do not use the builtin Jetty server; is SuperDevMode somehow bound to 
>> that older version of Jetty?  When I try to start it here, it dies 
>> immediately with this error:
>>
>> Launching: 
>> '/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/bin/java'
>>  
>> '-Xmx1536m' '-Dbasis.BBjHome=/Users/jimdouglas/basis-dev/' 
>> '-Djava.util.logging.config.file=/Users/jimdouglas/workspace/BBj/logging.properties'
>>  
>> '-Dfile.encoding=UTF-8' '-classpath' 
>> '/Users/jimdouglas/basis-dev/apps/aon/help/addonhelp.jar:/Users/jimdouglas/basis-dev/barista/sys/help/baristahelp.jar:/Users/jimdouglas/workspace/BBj/src:/Users/jimdouglas/workspace/BBj/.apt_generated:/Users/jimdouglas/workspace/ParserServiceAPI/src:/Users/jimdouglas/workspace/BBj/war/WEB-INF/classes:/Users/jimdouglas/workspace/BBj/jars/org.apache.jasper.glassfish-2.2.2.v201112011158.jar:/Users/jimdouglas/workspace/BBj/jars/org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar:/Users/jimdouglas/workspace/BBj/jars/activation-1.1.jar:/Users/jimdouglas/workspace/BBj/jars/AppleJavaExtensions.jar:/Users/jimdouglas/workspace/BBj/jars/asm-all-5.0.3.jar:/Users/jimdouglas/workspace/BBj/jars/aws-java-sdk-1.10.18.jar:/Users/jimdouglas/workspace/BBj/jars/axis.jar:/Users/jimdouglas/workspace/BBj/jars/axis2-adb-1.6.2.jar:/Users/jimdouglas/workspace/BBj/jars/axis2-kernel-1.6.2.jar:/Users/jimdouglas/workspace/BBj/jars/bcel.jar:/Users/jimdouglas/workspace/BBj/jars/bcprov-jdk16-146.jar:/Users/jimdouglas/workspace/BBj/jars/charsetprovider.jar:/Users/jimdouglas/workspace/BBj/jars/comm.jar:/Users/jimdouglas/workspace/BBj/jars/commons-cli-1.2.jar:/Users/jimdouglas/workspace/BBj/jars/commons-fileupload-1.3.1.jar:/Users/jimdouglas/workspace/BBj/jars/commons-io-1.4.jar:/Users/jimdouglas/workspace/BBj/jars/config-1.3.0.jar:/Users/jimdouglas/workspace/BBj/jars/flexlm.jar:/Users/jimdouglas/workspace/BBj/jars/flexlmutil.jar:/Users/jimdouglas/workspace/BBj/jars/FontChooser-7.3.jar:/Users/jimdouglas/workspace/BBj/jars/gson-2.3.1.jar:/Users/jimdouglas/workspace/BBj/jars/guava-16.0.1.jar:/Users/jimdouglas/workspace/BBj/jars/hamcrest-core-1.3.jar:/Users/jimdouglas/workspace/BBj/jars/HelpAll.jar:/Users/jimdouglas/workspace/BBj/jars/InterFaxClient.jar:/Users/jimdouglas/workspace/BBj/jars/iText-2.1.7.jar:/Users/jimdouglas/workspace/BBj/jars/ihhelper-0.0.1.jar:/Users/jimdouglas/workspace/BBj/jars/jas.jar:/Users/jimdouglas/workspace/BBj/jars/jasperreports-javaflow-6.0.4.jar:/Users/jimdouglas/workspace/BBj/jars/jasmin.jar:/Users/jimdouglas/workspace/BBj/jars/java_cup.jar:/Users/jimdouglas/workspace/BBj/jars/jaxrpc-api.jar:/Users/jimdouglas/workspace/BBj/jars/jaxrpc-ri.jar:/Users/jimdouglas/workspace/BBj/jars/jcommon-1.0.23.jar:/Users/jimdouglas/workspace/BBj/jars/JDBCPooling-internal.jar:/Users/jimdouglas/workspace/BBj/jars/joda-time-2.8.2.jar:/Users/jimdouglas/workspace/BBj/jars/servlet-api-3.1.jar:/Users/jimdouglas/workspace/BBj/jars/jflex.jar:/Users/jimdouglas/workspace/BBj/jars/jfreechart-1.0.19.jar:/Users/jimdouglas/workspace/BBj/jars/junit-4.11.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-analyzers-common-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-core-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-queryparser-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-backward-codecs-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/mail-1.4.jar:/Users/jimdouglas/workspace/BBj/jars/NetBeans.jar:/Users/jimdouglas/workspace/BBj/jars/outline.jar:/Users/jimdouglas/workspace/BBj/jars/PDFRenderer-0.9.1.jar:/Users/jimdouglas/workspace/BBj/jars/rfaxCOMM.jar:/Users/jimdouglas/workspace/BBj/jars/rfaxRXTX.jar:/Users/jimdouglas/workspace/BBj/jars/RXTXcomm.jar:/Users/jimdouglas/workspace/BBj/jars/skinlf.jar:/Users/jimdouglas/workspace/BBj/jars/ssce.jar:/Users/jimdouglas/workspace/BBj/jars/swingx-1.0.jar:/Users/jimdouglas/workspace/BBj/jars/TimingFramework.jar:/Users/jimdouglas/workspace/BBj/jars/unboundid-ldapsdk-se-2.3.6.jar:/Users/jimdouglas/workspace/BBj/jars/jetty-all-9.2.10.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/lib/tools.jar:/Users/jimdouglas/Documents/Eclipse/gwt-2.8.0-beta1/gwt-user.jar:/Users/jimdouglas/

Re: SuperDevMode

2016-03-21 Thread Juan Pablo Gardella
What about /jetty-all-9.2.10.jar?

On Mon, 21 Mar 2016 at 15:19 Jim Douglas  wrote:

> Since DevMode dropped dead, I've just written it off and worked directly
> in JavaScript, adding debug logging as necessary to isolate problems.  It's
> not optimal, but it's workable.  I'm looking at SuperDevMode with GWT 2.8
> now, and I'm struggling.  The documentation (
> http://www.gwtproject.org/articles/superdevmode.html) suggests (possibly
> overly optimistically?) that it just works; is that theoretically true, or
> is it omitting crucial details?
>
> We do not use the builtin Jetty server; is SuperDevMode somehow bound to
> that older version of Jetty?  When I try to start it here, it dies
> immediately with this error:
>
> Launching:
> '/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/bin/java'
> '-Xmx1536m' '-Dbasis.BBjHome=/Users/jimdouglas/basis-dev/'
> '-Djava.util.logging.config.file=/Users/jimdouglas/workspace/BBj/logging.properties'
> '-Dfile.encoding=UTF-8' '-classpath'
> '/Users/jimdouglas/basis-dev/apps/aon/help/addonhelp.jar:/Users/jimdouglas/basis-dev/barista/sys/help/baristahelp.jar:/Users/jimdouglas/workspace/BBj/src:/Users/jimdouglas/workspace/BBj/.apt_generated:/Users/jimdouglas/workspace/ParserServiceAPI/src:/Users/jimdouglas/workspace/BBj/war/WEB-INF/classes:/Users/jimdouglas/workspace/BBj/jars/org.apache.jasper.glassfish-2.2.2.v201112011158.jar:/Users/jimdouglas/workspace/BBj/jars/org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar:/Users/jimdouglas/workspace/BBj/jars/activation-1.1.jar:/Users/jimdouglas/workspace/BBj/jars/AppleJavaExtensions.jar:/Users/jimdouglas/workspace/BBj/jars/asm-all-5.0.3.jar:/Users/jimdouglas/workspace/BBj/jars/aws-java-sdk-1.10.18.jar:/Users/jimdouglas/workspace/BBj/jars/axis.jar:/Users/jimdouglas/workspace/BBj/jars/axis2-adb-1.6.2.jar:/Users/jimdouglas/workspace/BBj/jars/axis2-kernel-1.6.2.jar:/Users/jimdouglas/workspace/BBj/jars/bcel.jar:/Users/jimdouglas/workspace/BBj/jars/bcprov-jdk16-146.jar:/Users/jimdouglas/workspace/BBj/jars/charsetprovider.jar:/Users/jimdouglas/workspace/BBj/jars/comm.jar:/Users/jimdouglas/workspace/BBj/jars/commons-cli-1.2.jar:/Users/jimdouglas/workspace/BBj/jars/commons-fileupload-1.3.1.jar:/Users/jimdouglas/workspace/BBj/jars/commons-io-1.4.jar:/Users/jimdouglas/workspace/BBj/jars/config-1.3.0.jar:/Users/jimdouglas/workspace/BBj/jars/flexlm.jar:/Users/jimdouglas/workspace/BBj/jars/flexlmutil.jar:/Users/jimdouglas/workspace/BBj/jars/FontChooser-7.3.jar:/Users/jimdouglas/workspace/BBj/jars/gson-2.3.1.jar:/Users/jimdouglas/workspace/BBj/jars/guava-16.0.1.jar:/Users/jimdouglas/workspace/BBj/jars/hamcrest-core-1.3.jar:/Users/jimdouglas/workspace/BBj/jars/HelpAll.jar:/Users/jimdouglas/workspace/BBj/jars/InterFaxClient.jar:/Users/jimdouglas/workspace/BBj/jars/iText-2.1.7.jar:/Users/jimdouglas/workspace/BBj/jars/ihhelper-0.0.1.jar:/Users/jimdouglas/workspace/BBj/jars/jas.jar:/Users/jimdouglas/workspace/BBj/jars/jasperreports-javaflow-6.0.4.jar:/Users/jimdouglas/workspace/BBj/jars/jasmin.jar:/Users/jimdouglas/workspace/BBj/jars/java_cup.jar:/Users/jimdouglas/workspace/BBj/jars/jaxrpc-api.jar:/Users/jimdouglas/workspace/BBj/jars/jaxrpc-ri.jar:/Users/jimdouglas/workspace/BBj/jars/jcommon-1.0.23.jar:/Users/jimdouglas/workspace/BBj/jars/JDBCPooling-internal.jar:/Users/jimdouglas/workspace/BBj/jars/joda-time-2.8.2.jar:/Users/jimdouglas/workspace/BBj/jars/servlet-api-3.1.jar:/Users/jimdouglas/workspace/BBj/jars/jflex.jar:/Users/jimdouglas/workspace/BBj/jars/jfreechart-1.0.19.jar:/Users/jimdouglas/workspace/BBj/jars/junit-4.11.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-analyzers-common-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-core-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-queryparser-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-backward-codecs-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/mail-1.4.jar:/Users/jimdouglas/workspace/BBj/jars/NetBeans.jar:/Users/jimdouglas/workspace/BBj/jars/outline.jar:/Users/jimdouglas/workspace/BBj/jars/PDFRenderer-0.9.1.jar:/Users/jimdouglas/workspace/BBj/jars/rfaxCOMM.jar:/Users/jimdouglas/workspace/BBj/jars/rfaxRXTX.jar:/Users/jimdouglas/workspace/BBj/jars/RXTXcomm.jar:/Users/jimdouglas/workspace/BBj/jars/skinlf.jar:/Users/jimdouglas/workspace/BBj/jars/ssce.jar:/Users/jimdouglas/workspace/BBj/jars/swingx-1.0.jar:/Users/jimdouglas/workspace/BBj/jars/TimingFramework.jar:/Users/jimdouglas/workspace/BBj/jars/unboundid-ldapsdk-se-2.3.6.jar:/Users/jimdouglas/workspace/BBj/jars/jetty-all-9.2.10.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/lib/tools.jar:/Users/jimdouglas/Documents/Eclipse/gwt-2.8.0-beta1/gwt-user.jar:/Users/jimdouglas/Documents/Eclipse/gwt-2.8.0-beta1/gwt-codeserver.jar:/Users/jimdouglas/Documents/Eclipse/gwt-2.8.0-beta1/gwt-dev.jar:/Users/jimdouglas/Docum

SuperDevMode

2016-03-21 Thread Jim Douglas
Since DevMode dropped dead, I've just written it off and worked directly in 
JavaScript, adding debug logging as necessary to isolate problems.  It's 
not optimal, but it's workable.  I'm looking at SuperDevMode with GWT 2.8 
now, and I'm struggling.  The documentation 
(http://www.gwtproject.org/articles/superdevmode.html) suggests (possibly 
overly optimistically?) that it just works; is that theoretically true, or 
is it omitting crucial details?

We do not use the builtin Jetty server; is SuperDevMode somehow bound to 
that older version of Jetty?  When I try to start it here, it dies 
immediately with this error:

Launching: 
'/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/bin/java' 
'-Xmx1536m' '-Dbasis.BBjHome=/Users/jimdouglas/basis-dev/' 
'-Djava.util.logging.config.file=/Users/jimdouglas/workspace/BBj/logging.properties'
 
'-Dfile.encoding=UTF-8' '-classpath' 
'/Users/jimdouglas/basis-dev/apps/aon/help/addonhelp.jar:/Users/jimdouglas/basis-dev/barista/sys/help/baristahelp.jar:/Users/jimdouglas/workspace/BBj/src:/Users/jimdouglas/workspace/BBj/.apt_generated:/Users/jimdouglas/workspace/ParserServiceAPI/src:/Users/jimdouglas/workspace/BBj/war/WEB-INF/classes:/Users/jimdouglas/workspace/BBj/jars/org.apache.jasper.glassfish-2.2.2.v201112011158.jar:/Users/jimdouglas/workspace/BBj/jars/org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar:/Users/jimdouglas/workspace/BBj/jars/activation-1.1.jar:/Users/jimdouglas/workspace/BBj/jars/AppleJavaExtensions.jar:/Users/jimdouglas/workspace/BBj/jars/asm-all-5.0.3.jar:/Users/jimdouglas/workspace/BBj/jars/aws-java-sdk-1.10.18.jar:/Users/jimdouglas/workspace/BBj/jars/axis.jar:/Users/jimdouglas/workspace/BBj/jars/axis2-adb-1.6.2.jar:/Users/jimdouglas/workspace/BBj/jars/axis2-kernel-1.6.2.jar:/Users/jimdouglas/workspace/BBj/jars/bcel.jar:/Users/jimdouglas/workspace/BBj/jars/bcprov-jdk16-146.jar:/Users/jimdouglas/workspace/BBj/jars/charsetprovider.jar:/Users/jimdouglas/workspace/BBj/jars/comm.jar:/Users/jimdouglas/workspace/BBj/jars/commons-cli-1.2.jar:/Users/jimdouglas/workspace/BBj/jars/commons-fileupload-1.3.1.jar:/Users/jimdouglas/workspace/BBj/jars/commons-io-1.4.jar:/Users/jimdouglas/workspace/BBj/jars/config-1.3.0.jar:/Users/jimdouglas/workspace/BBj/jars/flexlm.jar:/Users/jimdouglas/workspace/BBj/jars/flexlmutil.jar:/Users/jimdouglas/workspace/BBj/jars/FontChooser-7.3.jar:/Users/jimdouglas/workspace/BBj/jars/gson-2.3.1.jar:/Users/jimdouglas/workspace/BBj/jars/guava-16.0.1.jar:/Users/jimdouglas/workspace/BBj/jars/hamcrest-core-1.3.jar:/Users/jimdouglas/workspace/BBj/jars/HelpAll.jar:/Users/jimdouglas/workspace/BBj/jars/InterFaxClient.jar:/Users/jimdouglas/workspace/BBj/jars/iText-2.1.7.jar:/Users/jimdouglas/workspace/BBj/jars/ihhelper-0.0.1.jar:/Users/jimdouglas/workspace/BBj/jars/jas.jar:/Users/jimdouglas/workspace/BBj/jars/jasperreports-javaflow-6.0.4.jar:/Users/jimdouglas/workspace/BBj/jars/jasmin.jar:/Users/jimdouglas/workspace/BBj/jars/java_cup.jar:/Users/jimdouglas/workspace/BBj/jars/jaxrpc-api.jar:/Users/jimdouglas/workspace/BBj/jars/jaxrpc-ri.jar:/Users/jimdouglas/workspace/BBj/jars/jcommon-1.0.23.jar:/Users/jimdouglas/workspace/BBj/jars/JDBCPooling-internal.jar:/Users/jimdouglas/workspace/BBj/jars/joda-time-2.8.2.jar:/Users/jimdouglas/workspace/BBj/jars/servlet-api-3.1.jar:/Users/jimdouglas/workspace/BBj/jars/jflex.jar:/Users/jimdouglas/workspace/BBj/jars/jfreechart-1.0.19.jar:/Users/jimdouglas/workspace/BBj/jars/junit-4.11.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-analyzers-common-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-core-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-queryparser-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/lucene-backward-codecs-5.0.0.jar:/Users/jimdouglas/workspace/BBj/jars/mail-1.4.jar:/Users/jimdouglas/workspace/BBj/jars/NetBeans.jar:/Users/jimdouglas/workspace/BBj/jars/outline.jar:/Users/jimdouglas/workspace/BBj/jars/PDFRenderer-0.9.1.jar:/Users/jimdouglas/workspace/BBj/jars/rfaxCOMM.jar:/Users/jimdouglas/workspace/BBj/jars/rfaxRXTX.jar:/Users/jimdouglas/workspace/BBj/jars/RXTXcomm.jar:/Users/jimdouglas/workspace/BBj/jars/skinlf.jar:/Users/jimdouglas/workspace/BBj/jars/ssce.jar:/Users/jimdouglas/workspace/BBj/jars/swingx-1.0.jar:/Users/jimdouglas/workspace/BBj/jars/TimingFramework.jar:/Users/jimdouglas/workspace/BBj/jars/unboundid-ldapsdk-se-2.3.6.jar:/Users/jimdouglas/workspace/BBj/jars/jetty-all-9.2.10.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home/lib/tools.jar:/Users/jimdouglas/Documents/Eclipse/gwt-2.8.0-beta1/gwt-user.jar:/Users/jimdouglas/Documents/Eclipse/gwt-2.8.0-beta1/gwt-codeserver.jar:/Users/jimdouglas/Documents/Eclipse/gwt-2.8.0-beta1/gwt-dev.jar:/Users/jimdouglas/Documents/Eclipse/gwt-2.8.0-beta1/validation-api-1.0.0.GA-sources.jar:/Users/jimdouglas/Documents/Eclipse/gwt-2

Re: JsInterop and Sencha Ext js framework

2016-03-21 Thread Brandon Donnelson
Thomas has a point. I am biased, because work for Sencha. :)

This is my opinion. ExtJs has some nice Api docs, but they're written in 
javascript of course. And when using a external javascript library, I think 
hugging it as closely as possible helps tremendously. And the first reason 
I mean when I say, "hug it closely as possible" means the docs will easily 
guide the way. The second reason is, javascript has dynamic types and this 
both affects the return and function parameters. I'm all about getting the 
job done in the shortest path with iterative development in mind. I think 
this may be true for me on most libraries. I've found after building the 
Google maps api wrapper in JSNI, that it added a complexity and labor of 
maintenance that I would have rather concentrated on developing business 
logic to get the job done. That said, there are many ways to do things and 
this is just one of them. 

I found it quite simple to through together the object literals which leads 
to the creation of the javascript objects in the ExtJs world. I didn't 
follow the Java format in creation on this example in the gist. I kept it 
simple using Object for the types. Once i figured out Object literal 
creation, in the case ExtJs wants object literals instead of an Object, it 
was a snap to throw together a wrapper of just what I needed. 

https://gist.github.com/branflake2267/5ea05b1cf0c956953026 - Example of 
generically wrapping some javascript. 

Anyway, I'm digging JsInterops flexibility in writing Javascript. 


On Monday, March 21, 2016 at 1:08:46 AM UTC-7, ateletin wrote:
>
> I just want to let you know that my "Person" example which is written 
> using 
> ExtJs works ok with JsInterop. 
> It seems that the problem was the ExtJs library that I used.. something 
> was 
> broken in it. I've changed the library and now I get the expected results. 
>
> Thank you all for your time. 
>
>
>
> -- 
> View this message in context: 
> http://google-web-toolkit.2317884.n4.nabble.com/JsInterop-and-Sencha-Ext-js-framework-tp15385p15429.html
>  
> Sent from the Google Web Toolkit mailing list archive at Nabble.com. 
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT-Material vs Polymer

2016-03-21 Thread Evan Ruff
Hey guys,

Thank you so much for the comments. You've sold me on GWT-Material. I'm
going to start playing with it more seriously.

Thanks!

E

On Wed, Mar 16, 2016 at 7:39 AM, Stefan Falk 
wrote:

> Hi Evan!
>
> I am using GWT Material Design for my current project. To be hones: I
> can't really compare anything because I went straight for it. I was looking
> at other stuff like SmartGWT but let's not talk about that.
>
> What I can tell, like Gilberto already mentioned, is that building on the
> "old" Widget GWT classes is not a disadvantage. It's the exact opposite in
> fact. You're very flexible and you can mix GWTMD with GWT vanilla elements.
> No headache there. No unnecessary dependencies and should you ever decide
> to switch or to mix with another library you'll very thankful for that.
>
> What I can also tell is that the two guys Gilberto and Kevin (I think that
> should be his name XD) are very active and incredible fast when it comes to
> adding new widgets. Also, the code is quite contribution friendly imho. I
> contributed some lines myself very recently.
>
> Using GWTMD for a few months now I have to say that I have no complaints
> so far. There were/are some minor issues at the moment but they are all
> related to the currently developed version v1.5.0. But so far it was also
> no pain for me to work on the bleeding edge.
>
> I am sorry that my comment is a little one-sided but to summarize: GWTMD
> is awesome and the default style it comes shipped is already a very good
> base to start for an awesome design imho!
>
> BR; Stefan
>
>
> On Tuesday, 15 March 2016 18:06:22 UTC+1, Evan Ruff wrote:
>>
>> Hey guys,
>>
>> I was wondering if you could chime in about some of the new libraries
>> being used. I'm interested in creating a new modern application and I have
>> experimented with GWT-Material, Polymer Elements and GWT-Elemento with CSS3
>> (GSS).
>>
>> I like the syntax of GWT-Elemento and that it tracks very closely to the
>> DOM. I would say that's the best and worst parts of it, in that nothing is
>> really pre-built and I'm doing a lot of UI work myself.
>>
>> I used Polymer Elements from Vaadin and they seem to work well, but are
>> pretty cumbersome. They feel slow to load on mobile devices and I have some
>> issues sometimes with them not loading when an application is new. I
>> believe this is using the new Web Components stuff which is cool and is the
>> future, but how important is it RIGHT NOW if I want to build a modern,
>> responsive, quick app?
>>
>> GWT-Material seems great, but I know it's based on the old Widget GWT
>> classes which have fallen a bit out of favor. How has that effected
>> people's experience with the library? I imagine it makes it harder to style
>> the elements and such (with all the inner/outer containers, etc)? Will the
>> library be left behind in GWT 3.0 if Widget support is removed, or do the
>> authors have a plan to migrate?
>>
>> I do feel like GWT-material lets me get off the ground and be more
>> productive.
>>
>> Just trying to understand what the best options are for a greenfield
>> application,
>>
>> Thanks!
>>
>> E
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/ElDM-yTCf5M/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Can anyone help me to copy the text to clipboard in a simple way and which works on all browsers

2016-03-21 Thread Ed
Hi,

Try this:

 final HTML CopyIcon = new HTML("Copy");
CopyIcon.setStyleName("gwt-HTMLGreen");
CopyIcon.setTitle("Drag and Drop");

CopyIcon.getElement().setDraggable(Element.DRAGGABLE_TRUE);

CopyIcon.addDomHandler(new
DragStartHandler() {

@Override
public void
onDragStart(DragStartEvent event) {

event.setData("text/plain",
YOURDATATOCOPY);


event.getDataTransfer().setDragImage(CopyIcon.getElement(), 10, 10);

}

}, DragStartEvent.getType());

Hope this helps

Ed


On Mon, Mar 21, 2016 at 8:10 AM, Dhinakar Reddy Pothireddi <
dhinakarred...@gmail.com> wrote:

> Can anyone help me to copy the text to clipboard in a simple way and which
> works on all browsers especially on Safari, Chrome and IE and with out the
> need of flash or any other apps. Thanks in advance
>
> public static native void
> copyFrom(com.google.gwt.user.client.Element element) /*-{
>   $wnd.window.clipboardData.setData('text', element.innerText);
> }-*/;
> public static native void pasteTo(com.google.gwt.user.client.Element
> element) /*-{
>   $wnd.window.clipboardData.getData(element);
> }-*/;
> This code only works on IE and returns an exception on Chrome.
>
> I need to process this event on a button click.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Can anyone help me to copy the text to clipboard in a simple way and which works on all browsers

2016-03-21 Thread Dhinakar Reddy Pothireddi
Can anyone help me to copy the text to clipboard in a simple way and which 
works on all browsers especially on Safari, Chrome and IE and with out the 
need of flash or any other apps. Thanks in advance

public static native void 
copyFrom(com.google.gwt.user.client.Element element) /*-{
  $wnd.window.clipboardData.setData('text', element.innerText);
}-*/;
public static native void pasteTo(com.google.gwt.user.client.Element 
element) /*-{
  $wnd.window.clipboardData.getData(element);
}-*/; 
This code only works on IE and returns an exception on Chrome.

I need to process this event on a button click.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JsInterop and Sencha Ext js framework

2016-03-21 Thread ateletin
I just want to let you know that my "Person" example which is written using
ExtJs works ok with JsInterop.
It seems that the problem was the ExtJs library that I used.. something was
broken in it. I've changed the library and now I get the expected results.

Thank you all for your time.



--
View this message in context: 
http://google-web-toolkit.2317884.n4.nabble.com/JsInterop-and-Sencha-Ext-js-framework-tp15385p15429.html
Sent from the Google Web Toolkit mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.