Re: References to Class method works incorrectly

2017-01-27 Thread foal
Issue in GWT project https://github.com/gwtproject/gwt/issues/9483 Stas On Saturday, January 28, 2017 at 8:32:48 AM UTC+1, foal wrote: > > Hi, > > I have in code the following lines (few of `Panel` classes implements > `TagAware` interface): > > ```Java > private final Map

References to Class method works incorrectly

2017-01-27 Thread foal
Hi, I have in code the following lines (few of `Panel` classes implements `TagAware` interface): ```Java private final Map panels; //... panels .values() .stream() .filter(TagAware.class::isInstance) .map(TagAware.class::cast) .forEach(t ->

Re: Drag and Drop in GWT

2017-01-27 Thread avsgi
Hi. I'm very interested in this approach, but I don't know how to do this. Could you point me to some example application? Regards. El 27/01/2017 11:51, salk31 escribió: > > I'd suggest at least looking into using "native" drag and drop support. I > imagine it is much

Re: How to simulate a click for a GWT button using fireEvent

2017-01-27 Thread Privat
Hello Nantanael, You have provided GWT Java code. You might have misunderstood. I wish to fire the event in *JavaScript*, on the front-end. (The compiled code) I have no access to the GWT code. I simply want to manipulate the front end (The compiled code) What I am asking requires knowledge

[gwt-contrib] Re: GWTCon 2015 keynote question

2017-01-27 Thread James Nelson
Hi Predrag; There is not currently an online demo of the framework just yet, but the prototype application being built with it is designed to make explaining complex ideas and processes as simple and as concise as possible, and it will certainly contain tutorials on how the custom elements are

Re: How to simulate a click for a GWT button using fireEvent

2017-01-27 Thread natan clara
I have use this. this.getComo().addKeyPressHandler(new KeyPressHandler() {     @Override     public void onKeyPress(KeyPressEvent event) {     int teclado = event.getNativeEvent().getKeyCode();     if ((teclado

Re: Drag and Drop in GWT

2017-01-27 Thread Ignacio Baca Moreno-Torres
If you are going to use native drag and drop you might what some stream composition lib XD, rxjava makes event plumbing a bit easier, clean and powerful, and rxgwt has various tools to start using rxjava with gwt, see this example using elemental touch events

[gwt-contrib] Re: GWTCon 2015 keynote question

2017-01-27 Thread Predrag Remark
It's interesting how people think differently about the question: "How software development should look like" :-) >From the couple of the last posts we can see that: One person think that James framework is too weird to have any value in it, other one respects his hard work and wants to learn

[gwt-contrib] Re: org.eclipse.jetty.apache.jsp.JuliLog not a subtype

2017-01-27 Thread canan
Hey I am experiencing the same issue these days and cannot figure it out. Could you please tell the solution out here? On Wednesday, January 25, 2017 at 5:52:34 PM UTC+3, Bogdan Petridean wrote: > > Fixed it! > > On Tuesday, January 24, 2017 at 10:43:09 AM UTC+1, Bogdan Petridean wrote: >> >>

Re: GWT 2.7: access public static final field in JSNI results as undefined in SuperDevMode

2017-01-27 Thread Norbert Bartels
Okay, so I use your suggestion with the private native method. We only use the JSNI in some cases where we have to use it. In a bridge to a JavaScript lib for example. Switching to GWT 2.8 is not possible atm, because I run into some problems and these need to be investigated a first. Thx a

Re: Drag and Drop in GWT

2017-01-27 Thread salk31
I'd suggest at least looking into using "native" drag and drop support. I imagine it is much lighter and it supports dragging between windows etc... I think gwt-dnd was created before this was available. On Monday, January 23, 2017 at 4:54:29 PM UTC, Ani wrote: > > HI > I am working on a

Re: GWT 2.7: access public static final field in JSNI results as undefined in SuperDevMode

2017-01-27 Thread Thomas Broyer
I would say it's a bug (have you tried in 2.8, maybe it's fixed?). I'd also say one should try to keep JSNI as small as possible; your method could be rewritten as: public static void doSomethingWithMarker() { nativeDoSomethingWithMarker(SPECIAL_MARKER); } private static native void

GWT 2.7: access public static final field in JSNI results as undefined in SuperDevMode

2017-01-27 Thread Norbert Bartels
Hi all, during development I ran into a problem and I had to dig a bit deeper to find the root cause. Perhaps someone can explain why this happens. I use GWT 2.7. And I have a class with some constants. For example something like this: public class MyConstants { public static final

[gwt-contrib] Re: GWTCon 2015 keynote question

2017-01-27 Thread Thomas Broyer
On Thursday, January 26, 2017 at 7:33:06 PM UTC+1, Jens wrote: > > Wow that looks too weird for me to see any value in it :D > +1 I tend to remove as much "magic" as possible from my projects, even if that means writing 2 lines of code instead of 1, trying to have the code be as explicit as

Re: GWT/Maven: No source code is available for type junit.framework.Test; did you forget to inherit a required module?

2017-01-27 Thread Thomas Broyer
On Friday, January 27, 2017 at 4:07:16 AM UTC+1, Magnus wrote: > > Hello Thomas, > > I solved the actual problem by removing the Maven generated AppTest.java > from the src/test/ path. > However, my further plans are concerned by what you mentioned below: > > GWT doesn't care about folders, it

[gwt-contrib] Re: GWTCon 2015 keynote question

2017-01-27 Thread Predrag Remark
@James, do you have any working example (link to some site where application is hosted or youtube video of locally running application) of your framework that you can share with us ? Can you create something like this http://petclinic.cloudapp.net/ with your framework and then to demonstrate

Re: WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

2017-01-27 Thread CM Mullis
I know how stupid this will sound, but how do I create a key? What is it? I am not very good with Java code On Friday, June 13, 2014 at 1:24:14 AM UTC-5, Honza Rames wrote: > > One more thing to note. On 64-bit systems you need to create a key >

How to simulate a click for a GWT button using fireEvent

2017-01-27 Thread Privat
I am trying to simulate a mouse click event on GWT (Google Web Toolkit) Application in *<=IE8* (using fireEvent, not dispatchEvent) A sample custom button can be found here: http://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCustomButton (The toggle button is easiest to see if