Thursday, March 31, 2016

Re: Are there any currently developed GWT Widget Libraries?

Good news! Sencha has just released the GPL version of GXT 4:
https://plus.google.com/+DavidMichaelChandler/posts/EozRLMpjvTy

On Wednesday, January 20, 2016 at 1:55:58 PM UTC-7, Alain wrote:
Notes there is no GPL version of GXT 4

On 20 January 2016 at 21:24, Andy Stevko <andy....@gmail.com> wrote:
FWIW, Sencha GXT has an open source edition

You cannot include Sencha Ext JS or Sencha GXT in a closed source distribution under this license.

On Wed, Jan 20, 2016 at 9:23 AM, Thomas Broyer <t.br...@gmail.com> wrote:


On Wednesday, January 20, 2016 at 5:59:30 PM UTC+1, N Troncoso wrote:
 I started using GWT Polymer for my Web App a few weeks ago. I had to get over some difficult hurdles, but I think it's really paying off. The UI is sleek and responsive and just overall works very well. 

It's more or less the same as GWT Material from what I can tell (they are both designed around Google's Material spec). GWT Polymer is really just a wrapper, though, for their javascript library, so it requires jsInterop.

Well, the real difference is that GWT Polymer uses Web Components, whereas GWT Material uses "plain old HTML" elements (and as a result should probably work on more browsers than GWT Polymer; though now that Microsoft killed all old IEs it might not be a problem anymore) 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
-- A. Stevko
===========
"If everything seems under control, you're just not going fast enough." M. Andretti




--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--

Alain Ekambi

Co-Founder

Ahomé Innovation Technologies

http://www.ahome-it.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+unsubscribe@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-2.8.0-SNAPSHOT SuperDevMode in Jetbrains IDEA - Exception in GWT ResourceAccumulatorManager after saving file


can I found somewhere a documentation how the CodeServer works?

Only source code ;)

 
What exactly happens during the startup? Will be the source code compiled again using the eclipse compiler?
Does this compiler compiles in parallel like IDEA?

 When you see "Loading java files in <modulename>" it will load and parse all Java files visible to GWT using JDT. This is done to speed up compilation later. For our app it takes roughly 1 min if SDM caches have been cleaned before. If CodeServer has been launched once and we then only restart it without cleaning caches, it takes about 10-20 seconds to start. This is on OS X, 16 GB RAM (with enough RAM assigned to CodeServer JVM) and SSD.

So as you rarely clear caches, SDM should generally start faster than in GWT 2.7, except the very first time.

-- 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+unsubscribe@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-2.8.0-SNAPSHOT SuperDevMode in Jetbrains IDEA - Exception in GWT ResourceAccumulatorManager after saving file

Hi Thomas,

can I found somewhere a documentation how the CodeServer works?
What exactly happens during the startup? Will be the source code compiled again using the eclipse compiler?
Does this compiler compiles in parallel like IDEA?

THX for the help!
Rocco  

Am Donnerstag, 31. März 2016 15:47:06 UTC+2 schrieb Thomas Broyer:


On Thursday, March 31, 2016 at 3:34:56 PM UTC+2, Rocco De Angelis wrote:
First THX Jens and Thomas,

I would expect that the CodeServer should handle this correctly, so I will open an bug for the GWT project.
Or is that a IDEA bug because the file is not hidden?

I don't think it's a problem of the file being hidden or not: it has disappeared before GWT could tell.
 
Maybe you have also an idea why the first start of the CodeServer takes so long?

Xmx? size of the classpath? Number (and size) of source files? Anti-virus slowing down disk I/O?

--
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+unsubscribe@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-2.8.0-SNAPSHOT SuperDevMode in Jetbrains IDEA - Exception in GWT ResourceAccumulatorManager after saving file



On Thursday, March 31, 2016 at 3:34:56 PM UTC+2, Rocco De Angelis wrote:
First THX Jens and Thomas,

I would expect that the CodeServer should handle this correctly, so I will open an bug for the GWT project.
Or is that a IDEA bug because the file is not hidden?

I don't think it's a problem of the file being hidden or not: it has disappeared before GWT could tell.
 
Maybe you have also an idea why the first start of the CodeServer takes so long?

Xmx? size of the classpath? Number (and size) of source files? Anti-virus slowing down disk I/O?

--
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+unsubscribe@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-2.8.0-SNAPSHOT SuperDevMode in Jetbrains IDEA - Exception in GWT ResourceAccumulatorManager after saving file

First THX Jens and Thomas,

I would expect that the CodeServer should handle this correctly, so I will open an bug for the GWT project.
Or is that a IDEA bug because the file is not hidden?

Maybe you have also an idea why the first start of the CodeServer takes so long?

BR
Rocco
 

Am Donnerstag, 31. März 2016 15:22:05 UTC+2 schrieb Jens:
*___jb_old___ files are temporary files created by IntelliJ when safe write is enabled (Settings -> Appearance & Behavior -> System Settings -> Use "safe write").

Looks like the file has been deleted by IntelliJ between the time GWT has detected it was created (using Java watch service) and calling Files.isHidden(). Please open a bug for it.

To workaround it you can disable the above setting in IntelliJ which should prevent creating temp files on saving or you disable the file watching in GWT by adding -Dgwt.watchFileChanges=false to your run configuration.

-- 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+unsubscribe@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-2.8.0-SNAPSHOT SuperDevMode in Jetbrains IDEA - Exception in GWT ResourceAccumulatorManager after saving file

Oh BTW, as a workaround, you should be able to disable filewatch by passing the gwt.watchFileChanges system property with value false: -Dgwt.watchFileChanges=false

On Thursday, March 31, 2016 at 3:19:13 PM UTC+2, Thomas Broyer wrote:


On Thursday, March 31, 2016 at 3:00:40 PM UTC+2, Rocco De Angelis wrote:
Hi All,

I have tested again the current state of the SuperDevMode in Jetbrains IDEA (Version: 2016.1)
The SuperDevMode seems to work in general but it takes very long until the CodeServer is started (1:30min).
But this is not maybe biggest problem. After the SuperDevMode/CodeServer is started each time when I
change and save a file in IDEA an exception occurs in the CodeServer:
    

java.nio.file.NoSuchFileException: U:\ALL\dev\tc\_trunk\apps\aris\aris\common\server-remote-api\src\main\java\com\aris\modeling\common\serverremoteapi\cscommon\corearisdesigner\om\impl\ADesignerObjOcc.java___jb_old___


Any idea where that __jb_old__ suffix comes from? (jb == JetBrains?)

Anyway, this looks like a race condition: the file being created, GWT being notified, but the file having been deleted already when it looks at it.
I suppose GWT could have special handling for NoSuchFileExceptions.
Would you mind opening an issue?

--
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+unsubscribe@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-2.8.0-SNAPSHOT SuperDevMode in Jetbrains IDEA - Exception in GWT ResourceAccumulatorManager after saving file

*___jb_old___ files are temporary files created by IntelliJ when safe write is enabled (Settings -> Appearance & Behavior -> System Settings -> Use "safe write").

Looks like the file has been deleted by IntelliJ between the time GWT has detected it was created (using Java watch service) and calling Files.isHidden(). Please open a bug for it.

To workaround it you can disable the above setting in IntelliJ which should prevent creating temp files on saving or you disable the file watching in GWT by adding -Dgwt.watchFileChanges=false to your run configuration.

-- 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+unsubscribe@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-2.8.0-SNAPSHOT SuperDevMode in Jetbrains IDEA - Exception in GWT ResourceAccumulatorManager after saving file



On Thursday, March 31, 2016 at 3:00:40 PM UTC+2, Rocco De Angelis wrote:
Hi All,

I have tested again the current state of the SuperDevMode in Jetbrains IDEA (Version: 2016.1)
The SuperDevMode seems to work in general but it takes very long until the CodeServer is started (1:30min).
But this is not maybe biggest problem. After the SuperDevMode/CodeServer is started each time when I
change and save a file in IDEA an exception occurs in the CodeServer:
    

java.nio.file.NoSuchFileException: U:\ALL\dev\tc\_trunk\apps\aris\aris\common\server-remote-api\src\main\java\com\aris\modeling\common\serverremoteapi\cscommon\corearisdesigner\om\impl\ADesignerObjOcc.java___jb_old___


Any idea where that __jb_old__ suffix comes from? (jb == JetBrains?)

Anyway, this looks like a race condition: the file being created, GWT being notified, but the file having been deleted already when it looks at it.
I suppose GWT could have special handling for NoSuchFileExceptions.
Would you mind opening an issue?

--
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+unsubscribe@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.

GWT-2.8.0-SNAPSHOT SuperDevMode in Jetbrains IDEA - Exception in GWT ResourceAccumulatorManager after saving file

Hi All,

I have tested again the current state of the SuperDevMode in Jetbrains IDEA (Version: 2016.1)
The SuperDevMode seems to work in general but it takes very long until the CodeServer is started (1:30min).
But this is not maybe biggest problem. After the SuperDevMode/CodeServer is started each time when I
change and save a file in IDEA an exception occurs in the CodeServer:
    

java.nio.file.NoSuchFileException: U:\ALL\dev\tc\_trunk\apps\aris\aris\common\server-remote-api\src\main\java\com\aris\modeling\common\serverremoteapi\cscommon\corearisdesigner\om\impl\ADesignerObjOcc.java___jb_old___

            at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)

            at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)

            at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)

            at sun.nio.fs.WindowsFileSystemProvider.isHidden(WindowsFileSystemProvider.java:466)

            at java.nio.file.Files.isHidden(Files.java:1483)

            at com.google.gwt.dev.resource.impl.ResourceAccumulator.onNewPath(ResourceAccumulator.java:138)

            at com.google.gwt.dev.resource.impl.ResourceAccumulator.refresh(ResourceAccumulator.java:127)

            at com.google.gwt.dev.resource.impl.ResourceAccumulator.refreshResources(ResourceAccumulator.java:65)

            at com.google.gwt.dev.resource.impl.ResourceAccumulatorManager.refreshResources(ResourceAccumulatorManager.java:128)

            at com.google.gwt.dev.resource.impl.ResourceAccumulatorManager$1.run(ResourceAccumulatorManager.java:91)


After this exception recompiling the modle doesn't work anymore. So I have to restart the CodeServer which takes again 1:30min.

This exception will not always be thrown. Somebody an idea what is the problem?


BR

Rocco 

--
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+unsubscribe@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: Missing class names in superdevmode

Do you know which class is responsible for naming the translated JavaScript-classes? All I could find right now were the namer for fields and methodnames. I guess that this is the part one would have to look into in order to understand, why the class names are shown as they do.

--
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+unsubscribe@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.

Wednesday, March 30, 2016

Re: GWT 2.8 next release

Unfortunately no, no java.time.

--
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+unsubscribe@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 2.8 next release

On Thursday, March 31, 2016 at 12:09:34 AM UTC+2, Thomas Broyer wrote:
We're a bit late wrt our plan for RC1, but we're currently adding emulation for many Java 8 APIs (new methods in collections, java.util.function, spliterators, and soon streams). Stay tuned.

That does sound good.  On a related note, is some degree of java.time support expected for 2.8 as well? 

--
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+unsubscribe@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 2.8 next release

Thanks for sharing.  It will be worth the wait.

Ed

On Wed, Mar 30, 2016 at 6:09 PM, Thomas Broyer <t.broyer@gmail.com> wrote:
We're a bit late wrt our plan for RC1, but we're currently adding emulation for many Java 8 APIs (new methods in collections, java.util.function, spliterators, and soon streams). Stay tuned.

--
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+unsubscribe@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+unsubscribe@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.

GWT 2.8 next release

We're a bit late wrt our plan for RC1, but we're currently adding emulation for many Java 8 APIs (new methods in collections, java.util.function, spliterators, and soon streams). Stay tuned.

--
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+unsubscribe@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.

GWT 2.8 next release

When shall we expect a new release of 2.8 .. may be beta2 ? Its been more then 3 months since beta1 .

--
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+unsubscribe@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.

Getting ClassCastException after GWT upgrade

Below is the sample method i am writing to get selected items and using the values in view calss

public List<TestClass> getSelectedElements(){
       List<TestClass> _items = new ArrayList<TestClass>();
       if(isShowSelectedControl ){
              ListGridRecord[] items = selectedItems.getRecords();
              if(items!= null)
              for (ListGridRecord item : items) {
                     TestClass _item = new TestClass();
                     _item.setParentId(item.getAttribute("pId"));
                     _item.setParents((ArrayList<MyClass>)item.getAttributeAsObject("parent"));
                     _items.add(_item);
              }
       }
       return _items;
}

while executing " _item.setParents((ArrayList<MyClass>)item.getAttributeAsObject("parent"));"
line its giving a java.lang.ClassCastException: com.google.gwt.core.client.JavaScriptObject$ cannot be cast to com.proj.shared.MyClass

item.getAttributeAsObject will return a java Object which will have the values of type com.google.gwt.core.client.JavaScriptObject

is there any way i can get the values as an ArrayList<MyClass> or cast it into ArrayList<MyClass>??

As far as i remember it was working with GWT-2.4.0 & smartgwt-3.0 and it was not giving any casting exception
with upgrade of GWT-2.6.1 and smartgwt-4.1 this problem occurred and its giving casting exception.

Please help

--
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+unsubscribe@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

I'm using an implementation based on http://zeroclipboard.org/ [1]. ZeroClipboard is used by GitHub and should work on all modern browsers. My implementation is built using JsInterop and provides a subset of ZeroClipboard's API. It should be pretty easy to add more methods if you need them. 

Here's a sample how to use it:

Element button = Browser.getDocument().createButtonElement();
Clipboard clipboard = new Clipboard(button);
clipboard
.onCopy(event -> event.client.setText("This text gets copied to the clipboard"));


[1] https://github.com/hal/hal.next/blob/develop/ballroom/src/main/java/org/jboss/hal/ballroom/Clipboard.java

Am Mittwoch, 30. März 2016 12:00:21 UTC+2 schrieb Vassilis Virvilis:
That was indeed very insightful and helpful. Thanks for sharing and congrats to the lucid guys for the guide.

On Wed, Mar 30, 2016 at 2:50 AM, JonL <jo...@percsolutions.com> wrote:
This might be helpful:

https://www.lucidchart.com/techblog/2014/12/02/definitive-guide-copying-pasting-javascript/


On Monday, March 28, 2016 at 12:06:42 PM UTC-7, Dhinakar Reddy Pothireddi wrote:
Sorry Ed, I didn't work and even this is not what I need. I want to access the clipboard in the Chrome with some appropriate JSNI. The code I posted previously works for IE but fails on Chrome. Thanks.

On Monday, March 21, 2016 at 7:48:50 PM UTC+5:30, Ed wrote:
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 <dhinaka...@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+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@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+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis

--
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+unsubscribe@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

That was indeed very insightful and helpful. Thanks for sharing and congrats to the lucid guys for the guide.

On Wed, Mar 30, 2016 at 2:50 AM, JonL <jonl@percsolutions.com> wrote:
This might be helpful:

https://www.lucidchart.com/techblog/2014/12/02/definitive-guide-copying-pasting-javascript/


On Monday, March 28, 2016 at 12:06:42 PM UTC-7, Dhinakar Reddy Pothireddi wrote:
Sorry Ed, I didn't work and even this is not what I need. I want to access the clipboard in the Chrome with some appropriate JSNI. The code I posted previously works for IE but fails on Chrome. Thanks.

On Monday, March 21, 2016 at 7:48:50 PM UTC+5:30, Ed wrote:
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 <dhinaka...@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+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@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+unsubscribe@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.



--
Vassilis Virvilis

--
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+unsubscribe@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



On Tuesday, March 29, 2016 at 8:54:56 PM UTC+2, Jim Douglas wrote:
Whoops, I did have one more specific question.  I followed Brandon's video to debug with Chrome, and it worked great:


Is there a video, or notes, describing how to debug GWT SuperDevMode in Firefox?

SDBG only talks the Chrome Remote Debugging protocol, so it can't directly connect to Firefox. It might be possible to use https://github.com/RemoteDebug/remotedebug-firefox-adapter though (no idea how you use it, all I know is that it exists).
Or you simply use the Firefox dev tools for debugging, instead of Eclipse. 

--
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+unsubscribe@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: How can I set the parent of an Element?

Hello,

As I understand your MentionPanel is the contenteditable (DIV) you are inserting DOM-nodes into. And your code crashes in "MentionPanel.this.removeFromParent()"? That is probably because you are never inserting the MentionPanel in the widget hierarchy as a child of another widget. Therefore the parent is null.

Since your MentioningTextArea is a ComplexPanel you should be able to insert you newly created MentionPanel as a child in enterSuggestMode().

I'm wondering about your use case since all the content you are inserting is invisible since the MentionPanel and it's element is nowhere attached to the dom (or is it?).

Hope this helps.

Regards,
Klemens

--
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+unsubscribe@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.

Tuesday, March 29, 2016

Re: Missing class names in superdevmode

Yeah I tried to modify that parameter within the CodeServer. Sadly I wasn't able to get it to work.

From the mentioned commit all I found was that it only affects the naming of the field (JSIncrementalNamer on/off). But I couldn't find any evidence of the "class name"  that is shown right to the field name.

--
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+unsubscribe@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

This might be helpful:

https://www.lucidchart.com/techblog/2014/12/02/definitive-guide-copying-pasting-javascript/

On Monday, March 28, 2016 at 12:06:42 PM UTC-7, Dhinakar Reddy Pothireddi wrote:
Sorry Ed, I didn't work and even this is not what I need. I want to access the clipboard in the Chrome with some appropriate JSNI. The code I posted previously works for IE but fails on Chrome. Thanks.

On Monday, March 21, 2016 at 7:48:50 PM UTC+5:30, Ed wrote:
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 <dhinaka...@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+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@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+unsubscribe@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: GXT 2.3.1 Cannot read property 'style' of null on google chrome version 49

Looks to me, based on the stacktrace, that you have a race condition.  Based on the trace, it appears that you are updating an object after receiving data from the server.  There are many things that can affect and effect this timing.  Many GXT elements, especially older GXT versions, have properties that can not be modified until the element is attached the first time.  So if the data comes back before the elements are attached and you attempt to update the widgets, this kind of thing can happen.  That is the best I can say without looking at the code in question.


On Tuesday, March 29, 2016 at 2:42:16 AM UTC-7, akshatha shetty wrote:
We keep getting this issue in chrome 49 when we access pages with grid and hidden columns.And the same issue is not reproducible in Firefox.
Please let me know if any one else face this issue
stack trace for reference 


SEVERE: Uncaught exceptioncom.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'booleanValue_2_g$' of undefined
at Unknown.wrap_4_g$(Exceptions.java:36)
at Unknown.onSuccess_1651_g$(SharesPage.java:211)
at Unknown.onSuccess_1650_g$(SharesPage.java:205)
at Unknown.onSuccess_1546_g$(CifsConfigCModeOperations.java:686)
at Unknown.onSuccess_1547_g$(CifsConfigCModeOperations.java:674)
at Unknown.onOriginServerRequestSuccess_1_g$(NaZapiServer.java:272)
at Unknown.onSuccess_181_g$(NaHttpServer.java:49)
at Unknown.onSuccess_4_g$(OriginServerRequest.java:354)
at Unknown.passResponse_2_g$(AbstractAuthenticator.java:277)
at Unknown.handleResponse_0_g$(AbstractAuthenticator.java:367)
at Unknown.intercept_2_g$(AbstractAuthenticator.java:262)
at Unknown.onResponseReceived_2_g$(OriginServerRequest.java:264)
at Unknown.fireOnResponseReceived_0_g$(Request.java:250)
at Unknown.onReadyStateChange_0_g$(RequestBuilder.java:412)
at Unknown.anonymous(XMLHttpRequest.java:329)
at Unknown.apply_0_g$(Impl.java:247)
at Unknown.entry0_0_g$(Impl.java:300)
at Unknown.anonymous(Impl.java:72)
error_2_g$ @ ConsoleLogHandler.java:69
ConsoleLogHandler.java:77 Mon Mar 28 11:09:41 GMT+530 2016 
INFO: Shares Page - Hidden
ConsoleLogHandler.java:77 Mon Mar 28 11:09:41 GMT+530 2016 
INFO: API request start : qtree-list-iter
XMLHttpRequest.java:343 Refused to set unsafe header "Content-Length"$setRequestHeader_0_g$ @ XMLHttpRequest.java:343
ConsoleLogHandler.java:77 Mon Mar 28 11:09:41 GMT+530 2016 
INFO: API response received : qtree-list-iter
SuperDevModeLogger.java:71 Error in loading page : 
SuperDevModeLogger.java:75 com.google.web.bindery.event.shared.UmbrellaException: Exception caught: Exception caught: (TypeError) : Cannot read property 'getHeight_33_g$' of null
  at fillInStackTrace_0_g$
  at Throwable_3_g$
  at Exception_4_g$
  at RuntimeException_3_g$
  at UmbrellaException_3_g$
  at doFire_0_g$
  at fireEvent_12_g$
  at fireEvent_17_g$
  at goTo_0_g$
  at processPlace_2_g$
  at processPlace_1_g$
  at navigateToPlace_0_g$
  at onSelect_6_g$
  at dispatch_322_g$
  at dispatch_321_g$
  at dispatch_0_g$
  at dispatchEvent_2_g$
  at doFire_0_g$
  at fireEvent_12_g$
  at fireEvent_11_g$
  at fireEvent_28_g$
  at onClick_187_g$
  at onBrowserEvent_34_g$
  at onBrowserEvent_26_g$
  at onBrowserEvent_27_g$
  at onBrowserEvent_28_g$
  at dispatchEventImpl_0_g$
  at dispatchEvent_4_g$
  at dispatchEvent_6_g$
  at apply_0_g$
  at entry0_0_g$
  at anonymous
Caused by: com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) : Cannot read property 'getHeight_33_g$' of null
  at fillInStackTrace_0_g$
  at Throwable_3_g$
  at Exception_4_g$
  at RuntimeException_3_g$
  at UmbrellaException_3_g$
  at UmbrellaException_5_g$
  at onPlaceChange_0_g$
  at dispatch_80_g$
  at dispatch_79_g$
  at dispatch_0_g$
  at dispatchEvent_2_g$
  at doFire_0_g$
  at fireEvent_12_g$
  at fireEvent_17_g$
  at goTo_0_g$
  at processPlace_2_g$
  at processPlace_1_g$
  at navigateToPlace_0_g$
  at onSelect_6_g$
  at dispatch_322_g$
  at dispatch_321_g$
  at dispatch_0_g$
  at dispatchEvent_2_g$
  at doFire_0_g$
  at fireEvent_12_g$
  at fireEvent_11_g$
  at fireEvent_28_g$
  at onClick_187_g$
  at onBrowserEvent_34_g$
  at onBrowserEvent_26_g$
  at onBrowserEvent_27_g$
  at onBrowserEvent_28_g$
  at dispatchEventImpl_0_g$
  at dispatchEvent_4_g$
  at dispatchEvent_6_g$
  at apply_0_g$
  at entry0_0_g$
  at anonymous
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'getHeight_33_g$' of null
  at wrap_4_g$
  at adjustHeights_0_g$
  at onAttach_16_g$
  at onAttach_28_g$
  at doAttachNative_0_g$
  at doAttach_1_g$
  at doAttach_2_g$
  at doAttachChildren_24_g$
  at onAttach_0_g$
  at onAttach_1_g$
  at doAttachNative_0_g$
  at doAttach_1_g$
  at attachChildren_0_g$
  at doAttachChildren_2_g$
  at doAttachChildren_3_g$
  at onAttach_0_g$
  at onAttach_1_g$
  at onAttach_3_g$
  at doAttachNative_0_g$
  at doAttach_1_g$
  at attachChildren_0_g$
  at doAttachChildren_2_g$
  at onAttach_0_g$
  at onAttach_1_g$
  at onAttach_3_g$
  at doAttachNative_0_g$
  at doAttach_1_g$
  at attachChildren_0_g$
  at doAttachChildren_2_g$
  at onAttach_0_g$
  at onAttach_1_g$
  at onAttach_3_g$
  at doAttachNative_0_g$
  at doAttach_1_g$
  at attachChildren_0_g$
  at doAttachChildren_2_g$
  at doAttachChildren_12_g$
  at onAttach_0_g$
  at onAttach_1_g$
  at onAttach_3_g$
  at onAttach_8_g$
  at doAttachNative_0_g$
  at doAttach_1_g$
  at attachChildren_0_g$
  at doAttachChildren_2_g$
  at doAttachChildren_3_g$
  at onAttach_0_g$
  at onAttach_1_g$
  at onAttach_3_g$
  at doAttachNative_0_g$
  at doAttach_1_g$
  at attachChildren_0_g$
  at onLayoutExcecuted_0_g$
  at handleEvent_55_g$
  at handleEvent_54_g$
  at callListener_0_g$
  at fireEvent_2_g$
  at layout_5_g$
  at doLayout_2_g$
  at layout_2_g$
  at layout_4_g$
  at doLayout_2_g$
  at layout_2_g$
  at layout_4_g$
  at layout_1_g$
  at layout_3_g$
  at showPage_3_g$
  at showPage_5_g$
  at addPageToWorkAreaPanel_1_g$
  at updateWorkAreaPanel_2_g$
  at navigateToPage_0_g$
  at start_12_g$
  at tryStart_0_g$
  at onPlaceChange_0_g$
  at dispatch_80_g$
  at dispatch_79_g$
  at dispatch_0_g$
  at dispatchEvent_2_g$
  at doFire_0_g$
  at fireEvent_12_g$
  at fireEvent_17_g$
  at goTo_0_g$
  at processPlace_2_g$
  at processPlace_1_g$
  at navigateToPlace_0_g$
  at onSelect_6_g$
  at dispatch_322_g$
  at dispatch_321_g$
  at dispatch_0_g$
  at dispatchEvent_2_g$
  at doFire_0_g$
  at fireEvent_12_g$
  at fireEvent_11_g$
  at fireEvent_28_g$
  at onClick_187_g$
  at onBrowserEvent_34_g$
  at onBrowserEvent_26_g$
  at onBrowserEvent_27_g$
  at onBrowserEvent_28_g$
  at dispatchEventImpl_0_g$
  at dispatchEvent_4_g$
  at dispatchEvent_6_g$
  at apply_0_g$
  at entry0_0_g$
  at anonymous
error_1_g$ @ SuperDevModeLogger.java:75
SuperDevModeLogger.java:71 Error in loading page : 
SuperDevModeLogger.java:75 com.google.web.bindery.event.shared.UmbrellaException: Exception caught: Exception caught: (TypeError) : Cannot read property 'style' of null
  at fillInStackTrace_0_g$
  at Throwable_3_g$
  at Exception_4_g$
  at RuntimeException_3_g$
  at UmbrellaException_3_g$
  at doFire_0_g$
  at fireEvent_12_g$
  at fireEvent_17_g$
  at goTo_0_g$
  at processPlace_2_g$
  at processPlace_1_g$
  at navigateToPlace_0_g$
  at onSelect_7_g$
  at dispatch_322_g$
  at dispatch_321_g$
  at dispatch_0_g$
  at dispatchEvent_2_g$
  at doFire_0_g$
  at fireEvent_12_g$
  at fireEvent_11_g$
  at fireEvent_28_g$
  at onClick_187_g$
  at onBrowserEvent_34_g$
  at onBrowserEvent_26_g$
  at onBrowserEvent_27_g$
  at onBrowserEvent_28_g$
  at dispatchEventImpl_0_g$
  at dispatchEvent_4_g$
  at dispatchEvent_6_g$
  at apply_0_g$
  at entry0_0_g$
  at anonymous
Caused by: com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) : Cannot read property 'style' of null
  at fillInStackTrace_0_g$
  at Throwable_3_g$
  at Exception_4_g$
  at RuntimeException_3_g$
  at UmbrellaException_3_g$
  at UmbrellaException_5_g$
  at onPlaceChange_0_g$
  at dispatch_80_g$
  at dispatch_79_g$
  at dispatch_0_g$
  at dispatchEvent_2_g$
  at doFire_0_g$
  at fireEvent_12_g$
  at fireEvent_17_g$
  at goTo_0_g$
  at processPlace_2_g$
  at processPlace_1_g$
  at navigateToPlace_0_g$
  at onSelect_7_g$
  at dispatch_322_g$
  at dispatch_321_g$
  at dispatch_0_g$
  at dispatchEvent_2_g$
  at doFire_0_g$
  at fireEvent_12_g$
  at fireEvent_11_g$
  at fireEvent_28_g$
  at onClick_187_g$
  at onBrowserEvent_34_g$
  at onBrowserEvent_26_g$
  at onBrowserEvent_27_g$
  at onBrowserEvent_28_g$
  at dispatchEventImpl_0_g$
  at dispatchEvent_4_g$
  at dispatchEvent_6_g$
  at apply_0_g$
  at entry0_0_g$
  at anonymous
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'style' of null
  at wrap_4_g$
  at $getStyle_0_g$
  at adjustCellWidth_0_g$
  at adjustColumnWidths_0_g$
  at updateAllColumnWidths_1_g$
  at updateAllColumnWidths_0_g$
  at updateAllColumnWidths_2_g$
  at fitColumns_5_g$
  at layout_8_g$
  at layout_7_g$
  at calculateVBar_1_g$
  at refresh_4_g$
  at refresh_8_g$
  at refresh_16_g$
  at refresh_24_g$
  at onClear_1_g$
  at storeClear_2_g$
  at handleEvent_40_g$
  at handleEvent_39_g$
  at callListener_0_g$
  at fireEvent_2_g$
  at removeAll_5_g$
  at updateRows_0_g$
  at updateRows_1_g$
  at updateRows_2_g$
  at resize_4_g$
  at layout_8_g$
  at layout_7_g$
  at calculateVBar_1_g$
  at onResize_21_g$
  at setSize_6_g$
  at setSize_12_g$
  at setItemSize_0_g$
  at onLayout_1_g$
  at layout_5_g$
  at handleEvent_72_g$
  at run_10_g$
  at delay_1_g$
  at onResize_10_g$
  at handleEvent_71_g$
  at handleEvent_70_g$
  at callListener_0_g$
  at fireEvent_2_g$
  at fireEvent_8_g$
  at setSize_6_g$
  at applyLayout_0_g$
  at onLayout_3_g$
  at layout_5_g$
  at handleEvent_72_g$
  at run_10_g$
  at delay_1_g$
  at onResize_10_g$
  at handleEvent_71_g$
  at handleEvent_70_g$
  at callListener_0_g$
  at fireEvent_2_g$
  at fireEvent_8_g$
  at setSize_6_g$
  at applyLayout_0_g$
  at onLayout_3_g$
  at layout_5_g$
  at handleEvent_72_g$
  at run_10_g$
  at delay_1_g$
  at onResize_10_g$
  at handleEvent_71_g$
  at handleEvent_70_g$
  at callListener_0_g$
  at fireEvent_2_g$
  at fireEvent_8_g$
  at setSize_6_g$
  at setSize_12_g$
  at setItemSize_0_g$
  at onLayout_1_g$
  at layout_5_g$
  at handleEvent_72_g$
  at run_10_g$
  at delay_1_g$
  at onResize_10_g$
  at handleEvent_71_g$
  at handleEvent_70_g$
  at callListener_0_g$
  at fireEvent_2_g$
  at fireEvent_8_g$
  at setSize_6_g$
  at setSize_12_g$
  at setItemSize_0_g$
  at onLayout_1_g$
  at layout_5_g$
  at handleEvent_72_g$
  at run_10_g$
  at delay_1_g$
  at onResize_10_g$
  at handleEvent_71_g$
  at handleEvent_70_g$
  at callListener_0_g$
  at fireEvent_2_g$
  at fireEvent_8_g$
  at setSize_6_g$
  at setSize_12_g$
  at setItemSize_0_g$
  at onLayout_1_g$
  at layout_5_g$
  at handleEvent_72_g$
  at run_10_g$
  at delay_1_g$
  at onResize_10_g$
  at handleEvent_71_g$
  at handleEvent_70_g$
  at callListener_0_g$
  at fireEvent_2_g$
  at fireEvent_8_g$
  at setSize_6_g$
  at applyLayout_0_g$
  at onLayout_3_g$
  at layout_5_g$
  at doLayout_2_g$
  at layout_2_g$
  at layout_4_g$
  at layout_1_g$
  at layout_3_g$
  at addSettingPanel_0_g$
  at showSVMSettingsPanel_0_g$
  at navigateToPage_0_g$
  at start_12_g$
  at tryStart_0_g$
  at onPlaceChange_0_g$
  at dispatch_80_g$
  at dispatch_79_g$
  at dispatch_0_g$
  at dispatchEvent_2_g$
  at doFire_0_g$
  at fireEvent_12_g$
  at fireEvent_17_g$
  at goTo_0_g$
  at processPlace_2_g$
  at processPlace_1_g$
  at navigateToPlace_0_g$
  at onSelect_7_g$
  at dispatch_322_g$
  at dispatch_321_g$
  at dispatch_0_g$
  at dispatchEvent_2_g$
  at doFire_0_g$
  at fireEvent_12_g$
  at fireEvent_11_g$
  at fireEvent_28_g$
  at onClick_187_g$
  at onBrowserEvent_34_g$
  at onBrowserEvent_26_g$
  at onBrowserEvent_27_g$
  at onBrowserEvent_28_g$
  at dispatchEventImpl_0_g$
  at dispatchEvent_4_g$
  at dispatchEvent_6_g$
  at apply_0_g$
  at entry0_0_g$
  at anonymous

--
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+unsubscribe@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

Whoops, I did have one more specific question.  I followed Brandon's video to debug with Chrome, and it worked great:


Is there a video, or notes, describing how to debug GWT SuperDevMode in Firefox?

On Tuesday, March 29, 2016 at 11:35:01 AM UTC-7, Jim Douglas wrote:
Thanks again for the pointers, Thomas.  There's probably a cleaner approach, but I was able to get SuperDevMode to load by editing the SuperDevMode web app classpath to force gwt-dev.jar to the front of the list, to hide the jetty-all-9.2.10.jar from my default classpath.

Debugging is the final piece of the puzzle; it looks like http://sdbg.github.io/ is required for source-level debugging of GWT client code in Eclipse.  I just installed that and ran some quick tests, and it looks like it's all working.  Is that everything you need to debug with SuperDevMode in Eclipse?

On Tuesday, March 22, 2016 at 3:02:03 AM UTC-7, Thomas Broyer wrote:


On Monday, March 21, 2016 at 11:21:21 PM UTC+1, Jim Douglas wrote:
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:8888/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

Main class: com.google.gwt.dev.codeserver.CodeServer
Program arguments (taken right from your first post, just replaced launcherDir's value with variable):
-noprecompile -port 9876 -sourceLevel 1.8 -bindAddress 0.0.0.0 -launcherDir "${workspace_loc:/BBj/war}" -logLevel INFO -style OBFUSCATED com.basis.bbj.web.gwt.EnglishOnly

You'd lose the "open in browser" shortcut (from DevMode's -startupUrl) but should otherwise work just as well.

(note: applies to both 2.7 and 2.8)

--
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+unsubscribe@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

Thanks again for the pointers, Thomas.  There's probably a cleaner approach, but I was able to get SuperDevMode to load by editing the SuperDevMode web app classpath to force gwt-dev.jar to the front of the list, to hide the jetty-all-9.2.10.jar from my default classpath.

Debugging is the final piece of the puzzle; it looks like http://sdbg.github.io/ is required for source-level debugging of GWT client code in Eclipse.  I just installed that and ran some quick tests, and it looks like it's all working.  Is that everything you need to debug with SuperDevMode in Eclipse?

On Tuesday, March 22, 2016 at 3:02:03 AM UTC-7, Thomas Broyer wrote:


On Monday, March 21, 2016 at 11:21:21 PM UTC+1, Jim Douglas wrote:
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:8888/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

Main class: com.google.gwt.dev.codeserver.CodeServer
Program arguments (taken right from your first post, just replaced launcherDir's value with variable):
-noprecompile -port 9876 -sourceLevel 1.8 -bindAddress 0.0.0.0 -launcherDir "${workspace_loc:/BBj/war}" -logLevel INFO -style OBFUSCATED com.basis.bbj.web.gwt.EnglishOnly

You'd lose the "open in browser" shortcut (from DevMode's -startupUrl) but should otherwise work just as well.

(note: applies to both 2.7 and 2.8)

--
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+unsubscribe@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 can not run on Tomcat

Hi,

            Change facet for webdinamic. Choice run tomcat and change class directory to webContent/WEB-INF/classes.

Natan.

Em 29/03/2016 09:23, fenyoapa escreveu:
I'm running gwt under tomcat in MyEclipse. Maybe you did not set the "output folder":

 
--
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+unsubscribe@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: Missing class names in superdevmode

Hm I see. You probably have done DevMode -style, right? However in GWT 2.8 that DevMode class launches a different class called CodeServer which you can also start yourself. This CodeServer class has a -style parameter that you can use to modify the output. The corresponding commit to make that work is https://github.com/gwtproject/gwt/commit/c2561844af530783a01f95ec56faad8b54d47639 and you can see that its included in 2.8-beta1.

-- 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+unsubscribe@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: how Dynamically load a GWT Java class

What's your use case?  Why would you let a user upload code that may potentially break your application?  Have you assessed the security risk?

On Tuesday, March 29, 2016 at 7:52:25 AM UTC-4, junaidp wrote:

What I am trying to do is giving user option to upload a GWT composite

As user upload a java class (which is some layout with GWT widgets) , Our application will displays that layout.

lets says its LoginPageView.java class .

Now what i do is , After uploading I place the class in some Client package, so the class is now com.test.client.LoginPageView.java

Now to open this class and show the layout , I have to do

    LoginPageView loginView = new LoginPageView();        RootPanel().get().add(loginView );  

and it will display the uploaded layout.

But I dont know the name of the class as it was added at run time , so the loading of the class will be at run time, But how will that be possible at CLIENT side.

Is there any way .

thanks

--
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+unsubscribe@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.