Monday, November 30, 2015

GoogleBot is using the wrong permutation?

Has anybody experiences the following situation?
GoogleBot is using a permutation that doesn't exists (anymore)? :(

Details:
Googlebot (GB) comes by to crawl the site (build with GWT 2.7.0: leuker.nl) and generates some exception on some page, namely leuker.nl/zorgtoeslag/acties), this only occurs when GB accesses the site. The exception looks like:

---

Cannot call method 'xg' of null

        at Unknown.NOb(https://leuker.nl/aangifte/acties) ~[na:na]

        at Unknown.Mrd(https://leuker.nl/aangifte/acties) ~[na:na] 
        .....
----

The deObfuscator in the backend complaints that it's receiving a permutation from the frontend, that doesn't exists, and checking it manually, it really doesn't exists... It had that already a few times when deploying new versions.
So:
1) What permutation is GB using ? I could it be a cashed one (old one) ?
2) I can't solve this issue without deObfuscating (I don't want to put a pretty-version online, it's too big).

Any idea ?
- Ed 

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Is there any GWT equivalent to Class.getDeclaredField?

Basically, I want to cut down on a bunch of boilerplate code (needing to check if a list of boolean fields are true/false across a collection of objects). In normal Java, I can use Class.getDeclaredField and Field.getBoolean to do that, something like:


public static boolean allTrue(Class<? extends Object> cls, List<? extends Object> things, String fieldName) {
 
try {
 
Field field = cls.getDeclaredField(fieldName);
 
boolean val = true;
 
for (Object o : things) {
   val
= val && field.getBoolean(o);
 
}

 
return val;
 
} catch (Exception e) {
 
return false;
 
}
}


I don't see any way to accomplish the same thing in GWT code, at least not in the GWT site. Is this just not an option under GWT?

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: DataGrid with Column freezing option

A colleague of mine implemented this a few years ago (at previous employment) by using two DataGrids (one representing the "frozen" columns). Both grids shared the same data but obviously displayed a different set of columns.

On Friday, November 27, 2015 at 12:25:12 AM UTC-7, karan wrote:
Can anyone suggest me a way to freeze one or two columns in the DataGrid. 
This seems like a very common requirement , but I don't seem to find a proper solution for it, nor am I able to crack this by making changes in DataGrid code.

Any help here would be great.

thanks
Karan

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

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

Jeff, it worked for me too. Thanks.

On Friday, June 14, 2013 at 2:02:26 AM UTC+1, Jeff Guangjian Du wrote:
well well, 4 years later, I came across the same problem.
here's my solution:
open regedit.exe ( really hate Microsoft and their regedit.reg).
change the permission of key: HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft.....Right click the icon, then change the permission to full operation.

On Saturday, June 27, 2009 3:03:20 PM UTC-4, Farinha wrote:
The subject has it all.

Eclipse 3.4.2
GWT Eclipse Plugin
Windows 7

Thanks in advance for the 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

CellTable loses text selection on update.

I have a CellTable with some text cells.

I have a AsyncDataProvider and inside there I have a timer that runs every second.

But when I call updateRowData(0, list) every second it replaces the text in the CellTable.

If you have selected the text with the mouse it removes the text selection. If you move the
mouse while keeping the mouse button pressed it creates an anoying flashing effect on the
selection.

Maybe this is the expected behaviour. But I have seen some other javascript stuff that is not
GWT that is able to update the text in a table without doing anything with the text selection.
The text changes while being inside the text selection. That is what I want.

So is there anything I can do to not have the selection disappear?

This is the html it produces for a cell:
<td class="GF02RMQCA GF02RMQCC GF02RMQCD">
<div tabindex="0" style="outline-style:none;" __gwt_cell="cell-gwt-uid-7515">description http://google.com</div>
</td>

The only work around I can think of is to not allow text selection with CSS to avoid this altogether.

Thanks,
Jay.

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Saturday, November 28, 2015

Re: JSInterop sample / tutorial?

Is the @JsFunction stuff idempotent? (I'm not sure what the correct term to use is.)

The main thing is, does this work?

   @JsFunction Function { ... }

   Function listener = (evt) => { evt.preventDefault(); };

   doc.addEventListener("click", listener);

then later on

   doc.removeEventListener("click", listener);

It looks like it should be fine, but I just want to make sure.

Also, I sometimes had problems with the old JSNI stuff when using optional parameters in JS. I'm not sure why, but sometimes GWT would complain. Does that work ok in JsInterop?

   doc.addEventListener("click", listener);
vs.
   doc.addEventListener("click", listener, false);

I know with GWT Elemental, it would always complain about the first case.

-Ming



On Tuesday, 24 November 2015 09:47:20 UTC-5, Jens wrote:

Any updates about the starting guide of JSInterop?


-- 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Optimizing subjective performance accessing big celllists (kind of double buffering)

OK Jens, thx a lot for your answer.

I just render last 10-50 based on the device "capabilities" (kind a tricky, but an iPhone 4 just shows 15 and an iPhone 6, for instance, shows 50) and then have a "load older" button too... But, even with 50, the final end user impression can be optimized.

OK for mapping both places to the same activity then. Will rearrange code and create helper classes for code maintainability... yes, of course we'll give it a try! ;)

Thx a lot.
Best,
Jordi

On Friday, November 27, 2015 at 2:08:19 PM UTC+1, Jens wrote:
I would say: Don't render all available messages at once. Just render the latest 30 message and if the user wants to see older ones the user has to tap a "load older" button or you just load them when scroll panel reaches the near top.

There is rarely a need to render everything up-front especially for messaging apps where conversations are rarely deleted by users and can become pretty long.

If you absolutely don't want that then you probably need to adjust your current mechanism of switching between group/contact list view and the messages view. You haven't said how you switch views, but I guess introducing a third actor that manage both group/contact and message view/presenters can solve your problem. For example if you use GWT Activity + Places you would map both ConversationsOverviewPlace and MessagesPlace to the same Activity. That Activity then manages your ConversationsOverviewActivity and MessagesActivity internally so you can do your own transition logic.

-- 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Step-by-step debug configurations for GWT application in Spring Tool Suite (STS) IDE

Hi Jens,

Thank you very much for your reply.

For the tomcat remote debugging part, I was already able to do that by setting up configurations similar to the steps mentioned in the Tomcat FAQ link you provided.
In fact, when start/launch tomcat in debug mode and launch the application and click on the login button, it hits the breakpoint I set in the Controller java source codes but the problem is it does not hit the breakpoints I set in the succeeding codes which are GWT codes for building the next page to display on screen after successful login. This is my problem.

The GWT version used in the application is 2.5. Is SuperDevMode the solution to my problem? If yes, can you please provide me a step-by-step guide with example on each step on how to configure it? I've seen a number of links about SuperDevMode but they don't really provide a step-by-step guide particularly one with example on each step.

Thank you so much for your help Jens.

     
 

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Step-by-step debug configurations for GWT application in Spring Tool Suite (STS) IDE

To debug your server side code you need to start Tomcat in debug mode and then attach your IDE as a remote debugger: 

http://wiki.apache.org/tomcat/FAQ/Developing#Debugging

I assume you are using GWT 2.7 and you are using SuperDevMode. To debug your client side GWT code you would use your web browser's dev tools because SuperDevMode compiles your Java code to JavaScript and thus you need a JavaScript debugger. Alternatively there is a plugin for Eclipse called "SDBG" that allows you to attach your IDE to Chrome as a remote debugger. When doing so you can set breakpoints in GWT code in your IDE as the plugin will "convert" it to a javascript breakpoint in the browser.

https://sdbg.github.io

-- 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Step-by-step debug configurations for GWT application in Spring Tool Suite (STS) IDE

Hi,

Good day.

I've just been assigned a complicated Spring application implemented using GWT which I don't have prior knowledge and experience.

I desperately need your help on how to debug the application so I can dissect it.

The setup is this. The IDE used for the GWT application is Spring Tool Suite (STS) IDE because it is a Spring application basically. The application has to be run on a Tomcat instance running outside of the STS IDE. The Tomcat is running either on the same local machine or on a remote one.

What I would like to do is as I access the application via the browser and interacts/navigates with it by clicking buttons, menus, etc, the STS IDE should be in Debug mode and hits breakpoints that I set previously.

After googling for several days now, I have found a lot of tutorials/links/articles but I could not really find one that gives a novice web application developer like a step-by-step guide on how to debug the application given the above scenario.

Please kindly help me with a step-by-step guide with example on each step on how to debug the application given the above scenario/requirements.

Thank you very much in advance for all your 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Friday, November 27, 2015

Re: What is j2cl?

Ok.

So, I have Map<MyCustomObject, Stuff>, how do I map that to goog.structs.Map?

The closure objects do not behave 100% the same as the java objects, and if you expect your code to do the same thing on every platform (very common, reasonable expectation), then you can't pick an emulation library that is functionally different.

For maps with string keys maybe then you could use closure Map, but the emulated java Maps all have optimizations for String that just make them behave like a javascript dictionary.
Or things like Iterators; how are you going to map a java iterator such that it will just work, without having to change any code?  Emulation, maybe?

Sooo, I still don't see any path to actually removing the emulation code.

Unless you can get a perfect 1:1 mapping to java apis, people are going to use a java type, and not get java behavior.  That would be Very Bad (tm).

There are plenty of options for making your own Map or Set type that itself maps to closure and can have slightly different behavior,
and it would be on you to proactively choose this map/list/set type yourself.

I actually don't use java.util collections and prefer my own abstraction which can supply an optimized api for whatever platform you are on (I specialize in cross platform; I maintain a library called xapi);
even though I also maintain a fork of Gwt where I could just mod the java.util classes to "work better for javascript", I would not do such a thing, because whenever I ask for an ArrayList or a LinkedHashSet, I want exactly the behavior those classes claim to expose.

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Optimizing subjective performance accessing big celllists (kind of double buffering)

I would say: Don't render all available messages at once. Just render the latest 30 message and if the user wants to see older ones the user has to tap a "load older" button or you just load them when scroll panel reaches the near top.

There is rarely a need to render everything up-front especially for messaging apps where conversations are rarely deleted by users and can become pretty long.

If you absolutely don't want that then you probably need to adjust your current mechanism of switching between group/contact list view and the messages view. You haven't said how you switch views, but I guess introducing a third actor that manage both group/contact and message view/presenters can solve your problem. For example if you use GWT Activity + Places you would map both ConversationsOverviewPlace and MessagesPlace to the same Activity. That Activity then manages your ConversationsOverviewActivity and MessagesActivity internally so you can do your own transition logic.

-- 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Optimizing subjective performance accessing big celllists (kind of double buffering)

Greetings,

I have a mobile app written in GWT/mgwt/PhoneGap and I'm suffering some sort of subjective performance degradation when accessing big celllists. This app is pretty similar to WhatsApp, and what they do to overcome this rendering issue is pretty simple: you click on the group you want to see, then you stay there until the new page has been rendered completely and then you are submitted instantly to the new page with all the messages (the big celllist). Seems simple, but it's a different approach to what we're used to under a MVP world like ours (at least to the point I know it :)

When doing MVP I click on a cell (groups activity) and then switch to another view where I render the messages of that group. These messages come from a WebSQL backend and take 200-400ms to render, and what is worse: when using old devices (even with XWalk project built-in) the rendering is done "incrementally", meaning the end user feels the celllist building, instead of having an immediate load of all the different cells.

What I am looking for is some sort of double buffering, where the render is done in background and then made visible instantly when it's finished. Of course we've managed to wrap the scrollPanel where the cells get rendered with a visible/invisible div and make the scrollPanel visible when the celllist is already rendered, which goes from 50ms to 500ms depending on the number of cells. 

So, there are 2 scenarios: the one we've already implemented (after the groups->messages transition) and the one which uses WhatsApp (for instance), which does it _before_ the groups->messages transition, which, in my opinion, is more user friendly.

Do you guys know how to achieve this?

If you need more details, code, etcetera, please don't hesitate to ask.

Thx a lot! ;)
Jordi

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Thursday, November 26, 2015

Use dynamic affectation polymer '$=' with in gwt ui binder

Hi,

I would like to know I can use "$=" in uibinder xml file.

example:
<paper-icon-item index$="[[index]]" > in iron-list template.

I have similar issue with polymer css mixin which starts by --

example: 
--paper-spinner-layer-1-color


It produces compilation error.

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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

DataGrid with Column freezing option

Can anyone suggest me a way to freeze one or two columns in the DataGrid. 
This seems like a very common requirement , but I don't seem to find a proper solution for it, nor am I able to crack this by making changes in DataGrid code.

Any help here would be great.

thanks
Karan

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: IntelliJ and 2.8.0-SNAPSHOT

Could be b/c of:
"""
Caused by: java.lang.NoSuchFieldError: JS_RC
"""

Latest 2.8.0-SNAPSHOT uses -generateJsInteropExports

On Thursday, 26 November 2015 12:02:40 UTC-5, P.G.Taboada wrote:
Hi,

IntelliJ fails to start SDM/ run configuration with 2.8.0-SNAPSHOT here. Are there any known tricks/ workarounds?

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:96)
at com.google.gwt.dev.DevMode.ensureCodeServerListener(DevMode.java:660)
at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:879)
at com.google.gwt.dev.DevMode.doStartup(DevMode.java:545)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:983)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:775)
at com.google.gwt.dev.DevMode.main(DevMode.java:426)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.gwt.dev.shell.SuperDevListener.runCodeServer(SuperDevListener.java:113)
at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:92)
... 11 more
Unable to start Code server
Caused by: java.lang.NoSuchFieldError: JS_RC
at com.google.gwt.dev.codeserver.Options.<init>(Options.java:91)
at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:49)
... 17 more

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: IntelliJ and 2.8.0-SNAPSHOT

Works ok for me. You might have some classpath problem. codeserver.Options belong to gwt-codeserver and OptionsJsIntropMode.JS_RC belong to gwt-dev, so maybe IntelliJ is using the last codeserver and the not-so-last gwt-dev.

I had some problems with intelliJ gwt dependency configuration. Sometimes get confused with the snapshots and point to a specific time-stamped version and do not update again. You can see which version is used in the classpath or in the .iml files.

Other problem I see sometimes is that intelliJ stop using maven as a gwt lib provider, this can be confirmed in the <project>.iml file, you should see something like.

<component name="FacetManager">
<facet type="gwt" name="GWT">
<configuration>
<setting name="gwtSdkUrl" value="file://$MAVEN_REPOSITORY$/com/google/gwt/gwt-dev/2.8.0-SNAPSHOT" />
<setting name="gwtSdkType" value="maven" />
</configuration>
</facet>
</component>

I hope this helps.

On Thursday, November 26, 2015 at 6:02:40 PM UTC+1, P.G.Taboada wrote:
Hi,

IntelliJ fails to start SDM/ run configuration with 2.8.0-SNAPSHOT here. Are there any known tricks/ workarounds?

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:96)
at com.google.gwt.dev.DevMode.ensureCodeServerListener(DevMode.java:660)
at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:879)
at com.google.gwt.dev.DevMode.doStartup(DevMode.java:545)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:983)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:775)
at com.google.gwt.dev.DevMode.main(DevMode.java:426)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.gwt.dev.shell.SuperDevListener.runCodeServer(SuperDevListener.java:113)
at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:92)
... 11 more
Unable to start Code server
Caused by: java.lang.NoSuchFieldError: JS_RC
at com.google.gwt.dev.codeserver.Options.<init>(Options.java:91)
at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:49)
... 17 more

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

IntelliJ and 2.8.0-SNAPSHOT

Hi,

IntelliJ fails to start SDM/ run configuration with 2.8.0-SNAPSHOT here. Are there any known tricks/ workarounds?

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:96)
at com.google.gwt.dev.DevMode.ensureCodeServerListener(DevMode.java:660)
at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:879)
at com.google.gwt.dev.DevMode.doStartup(DevMode.java:545)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:983)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:775)
at com.google.gwt.dev.DevMode.main(DevMode.java:426)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.gwt.dev.shell.SuperDevListener.runCodeServer(SuperDevListener.java:113)
at com.google.gwt.dev.shell.SuperDevListener.start(SuperDevListener.java:92)
... 11 more
Unable to start Code server
Caused by: java.lang.NoSuchFieldError: JS_RC
at com.google.gwt.dev.codeserver.Options.<init>(Options.java:91)
at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:49)
... 17 more

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Wednesday, November 25, 2015

Re: GWT3: code splitting

I think the goal was to implement all of those kind of optimizations using the javascript closure compiler.. so dead code elimination and shrinking and code-splitting would all be done by the closure compiler.

I'd guess the GWT code would remain similar, and the output javascript would use closure modules or something to handle the splitting?

On Tuesday, November 24, 2015 at 3:26:13 PM UTC+2, salk31 wrote:
My understanding is that you can pass in parameters (for each permutation) that the compiler/linker can see as constants so optimise away.

I think this is getting less focus in the belief that browsers are getting less quirky and that a mono-culture of GWT is not the way to go so it needs to play nicely with other JS frameworks?

Maybe this makes sense for some GWT users but I think for us, doing a big business app that happens to be a webapp, it will be more of a pain.

On Saturday, November 21, 2015 at 2:27:53 PM UTC, Mars wrote:
when GWT 3 is more targeted to js libs/GUIs, then does it mean, that we will lose all benefits, like code-splitting, different permutations for languages/browsers, etc.?

i.e. as I understand it, even a Polymer component must include all the bloated css/js-quirks for different browsers, right?

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: JSInterop sample / tutorial?

You can see this projects:
  https://github.com/workingflows/gwt-jscore (branch): NewJsInterop have support for new annotations. 

  

El martes, 27 de enero de 2015, 18:30:55 (UTC-3), marian lux escribió:
Is there a working JSInterop sample (e.g. project on github) online or an article how to get started? It is part of the current gwt 2.7 release but I could not find a working project or article. It would be nice if the gwtproject.org site will contain any tutorial / article too.

E.g. I found some google group entries about JSInterop and this project:
https://github.com/csrinaldi/samples-of-gwt/tree/master/gwt-playground
But the maven does not work any more and the google group entries don't describe a how-to.

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Tuesday, November 24, 2015

Re: GWT 2.8-Snapshot and Guava

Nice! You are welcome :-)

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: GWT 2.8-Snapshot and Guava

Hey Lars,

I seem to be having some trouble understanding what I need to do.

So to get guava to work with 2.8-SNAPSHOT, area you suggesting I leave the gradle dependency at 18 in my build file and remove the guava-gwt from it. Then, replace this file in the guava-gwt-18.jar locally and then add that to the project?

I've not patched something on the fly before.

Thanks and I really appreciate your help,

E

On Tue, Nov 24, 2015 at 3:54 PM, Lars <lars.gemeinhardt@gmail.com> wrote:
If you would give the guava shapshot a try then I guess this should be the right j2objc-annotations jar http://search.maven.org/#search%7Cga%7C1%7Cj2objc-annotations

--
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/6e3o42ejPT4/unsubscribe.
To unsubscribe from this group and all its topics, 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 http://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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: GWT 2.8-Snapshot and Guava

If you would give the guava shapshot a try then I guess this should be the right j2objc-annotations jar http://search.maven.org/#search%7Cga%7C1%7Cj2objc-annotations

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: GWT 2.8-Snapshot and Guava

I patched an old guava version (17, but I guess 18 should work too) with the createFrom patch https://github.com/google/guava/commit/9e56ef17c335319d21f1f2c454176c9d32687a59 to support gwt 2.7 and 2.8, because the next version of guava (19) does not support gwt 2.8 and is bundled with j2obj.
Btw. I am using Java7 (and not Java8)!

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: GWT 2.8-Snapshot and Guava

Just to clarify, the createFrom method problem did not show up, but the inability to get @Weak from j2objc did, even if I added it manually to the project.

Thanks,

E

On Tuesday, November 24, 2015 at 3:32:11 PM UTC-5, Evan Ruff wrote:
Hey Lars,

Thanks for the note. When I moved to the SNAPSHOT of guava, the error I was getting actually had to do with the j2objc annotations, as it couldn't find it in the source path.

Is there a specific JAR version out of the snapshot directory that you have working? I assume I'll need to add j2objc manually. If so, which version of j2objc are you using.

I could've sworn I've tried every combination but cannot get it to line up.

Thanks,

E

On Tuesday, November 24, 2015 at 3:27:07 PM UTC-5, Lars wrote:
See https://groups.google.com/forum/m/#!topic/google-web-toolkit-contributors/VbokswmVz9w

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: GWT 2.8-Snapshot and Guava

Hey Lars,

Thanks for the note. When I moved to the SNAPSHOT of guava, the error I was getting actually had to do with the j2objc annotations, as it couldn't find it in the source path.

Is there a specific JAR version out of the snapshot directory that you have working? I assume I'll need to add j2objc manually. If so, which version of j2objc are you using.

I could've sworn I've tried every combination but cannot get it to line up.

Thanks,

E

On Tuesday, November 24, 2015 at 3:27:07 PM UTC-5, Lars wrote:
See https://groups.google.com/forum/m/#!topic/google-web-toolkit-contributors/VbokswmVz9w

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

GWT 2.8-Snapshot and Guava

See https://groups.google.com/forum/m/#!topic/google-web-toolkit-contributors/VbokswmVz9w

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

GWT 2.8-Snapshot and Guava

Hey guys,

Could someone tell me how to get GWT 2.8 working with Guava? I'm using Gradle.

I've tried a dozen combinations between 2.8 snapshot, Guava 19 snapstot, j2objc 0.1 and 0.9.8 and I cannot get anything to run. 

I'm getting a little frustrated. Does anyone have a working configuration of this?

Thanks,

E

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: JsInterop Maven fail

I hate to ask to create more work for you guys, but do you think we could snap an RC1?

This is mainly because I suck at the build tools and need something with training wheels.

Thanks!

E

On Tue, Nov 24, 2015 at 7:02 AM, Lyubomyr Shaydariv <lyubomyr.shaydariv@gmail.com> wrote:
Build #310 passes, so it works now. Thank you!

--
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/Ty78TNg58iA/unsubscribe.
To unsubscribe from this group and all its topics, 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 http://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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: JSInterop sample / tutorial?

Thank you very much Jens

On Tue, Nov 24, 2015 at 10:48 PM Jens <jens.nehlmeier@gmail.com> wrote:

Any updates about the starting guide of JSInterop?


-- J. 

--
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/SLNo6XKfNS4/unsubscribe.
To unsubscribe from this group and all its topics, 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 http://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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: JSInterop sample / tutorial?


Any updates about the starting guide of JSInterop?

Everything you need to know for GWT 2.8 JsInterop: https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/edit

-- 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: JSInterop sample / tutorial?

Any updates about the starting guide of JSInterop?

On Wednesday, January 28, 2015 at 5:30:55 AM UTC+8, marian lux wrote:
Is there a working JSInterop sample (e.g. project on github) online or an article how to get started? It is part of the current gwt 2.7 release but I could not find a working project or article. It would be nice if the gwtproject.org site will contain any tutorial / article too.

E.g. I found some google group entries about JSInterop and this project:
https://github.com/csrinaldi/samples-of-gwt/tree/master/gwt-playground
But the maven does not work any more and the google group entries don't describe a how-to.

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: GWT3: code splitting

My understanding is that you can pass in parameters (for each permutation) that the compiler/linker can see as constants so optimise away.

I think this is getting less focus in the belief that browsers are getting less quirky and that a mono-culture of GWT is not the way to go so it needs to play nicely with other JS frameworks?

Maybe this makes sense for some GWT users but I think for us, doing a big business app that happens to be a webapp, it will be more of a pain.

On Saturday, November 21, 2015 at 2:27:53 PM UTC, Mars wrote:
when GWT 3 is more targeted to js libs/GUIs, then does it mean, that we will lose all benefits, like code-splitting, different permutations for languages/browsers, etc.?

i.e. as I understand it, even a Polymer component must include all the bloated css/js-quirks for different browsers, right?

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: JsInterop Maven fail

Build #310 passes, so it works now. Thank you!

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: GWT app shows wrong on iPad/Safari?

Hi Magnus,

I'm not sure how to make the viewport meta tag conditional on the client side so that it's only picked up by iOS Safari web browsers.

However, if you can generate your main HTML page dynamically on the server side, I guess that you can detect the type of user agent (i.e. web browser) and in case of iOS Safari add the viewport meta tag to your main HTML page.

Maybe someone else can suggest a better solution for your problem?

/Stefan


Den torsdag 19 november 2015 kl. 04:37:17 UTC+1 skrev Magnus:
Hi Stefan,

my app always worked until a user of IOS 9.1 said that the app is extremely zoomed. Then I asked here and applied the viewport meta tag for the first time. The IOS user said, it was ok now. But now the app is displayed wrong on Android.

The app adapts its GUI to the width of the screen. However, on a smartphone the screen may be so small that the app shrinks so much that you cannot use it anymore. In other words, there is a minimum width and if this does not fit onto the screen, there must be horizontal scrollbars.

Without IOS everything was ok. Can't we apply a viewport meta tag for IOS devices only and leave the others alone?

Thanks
Magnus

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: JsInterop Maven fail

Good news: we reverted the offending change and Manolo ran the CI build so it should be fixed shortly (if not already). Don't forget to force snapshot updates (mvn -U).

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Monday, November 23, 2015

com.google.jsinterop not in google-snapshots?

See https://groups.google.com/forum/#!topic/google-web-toolkit/Ty78TNg58iA

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

com.google.jsinterop not in google-snapshots?

I'm getting
"Could not find artifact com.google.jsinterop:jsinterop:pom:1.0.0-SNAPSHOT in google-snapshots (https://oss.sonatype.org/content/repositories/google-snapshots)"
in one of my Maven builds. Could someone publish that jar to google-snapshots?

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.