GWT [Error] Rebind result 'com.viktor.MyClassJSO' cannot be a JSO

2016-12-01 Thread Viktor Krejčíř


Hi all,

after upgrading from GWT 2.6. to 2.8 stable version, I've started getting 
this error during compilation.

The MyClassJSO is just plain JSO class (extends JavaScriptObject), so I 
really don't know where the problem is.


*Does anyone know what does this error exactly mean?*

I've managed to change logging level to more verbose one, but no further 
info appears.

Thanks for all answers.

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


Re: About running tests in a project built via tbroyer's maven multi-module archetype

2016-12-01 Thread vitrums
It's also not clear for me why greetingService test classes must've been 
completely excluded from the *modular-webapp* archetype. Archetypes in 
general serve to unify the maximum of core best practices relevant to some 
particular project structure (tests including), don't they?

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


Re: GWT 2.8 generates code 14% bigger than GWT 2.7

2016-12-01 Thread Slava Pankov
Still not working for me.

  
  
  
  

[ERROR] The module must not have multiple fragments when using the Single 
Script Linker.

Probably the problem is that I have many languages (i18n) in my app.
Any other ideas?


On Wednesday, November 30, 2016 at 11:08:13 PM UTC-8, Kirill Prazdnikov 
wrote:
>
> Please try single permutation
>   
>
>
> On Thu, Dec 1, 2016 at 1:50 AM, Slava Pankov  > wrote:
>
>> SSO is not working for my project, I cannot successfully compile with it.
>> Put the following to my gwt.xml, but no luck:
>>
>> 
>> 
>> 
>>
>>
>> On Tuesday, November 29, 2016 at 6:44:37 AM UTC-8, Kirill Prazdnikov 
>> wrote:
>>>
>>> Do you use SSO ? SSO script is smaller then no SSO. Did you run CC on it 
>>> ?
>>>
>>> 29 нояб. 2016 г. 17:29 пользователь "Etienne Basso"  
>>> написал:
>>>
>>> Hi Ignacio,

 This is not only about loading time over the network, but also about 
 script parsing by the web browser. 
 In 98% of the case this is not an issue, but I have a very specific use 
 case were the code is directly embedded on a special device which doesn't 
 even have a real CPU but an ASIC emulating one. This device is really 
 really not powerful and GWT is the only framework providing decent speed.  
 I noticed significant differences in the script parsing delay as js 
 sources 
 are getting bigger.

 In my case 100KB are a huge deal.

 Le samedi 26 novembre 2016 09:56:27 UTC+1, Ignacio Baca Moreno-Torres a 
 écrit :
>
> But IMO if you really care user experience you have other places to 
> improve your page. I thinks updating to the last version is always a good 
> idea, if any security or compatibility blocker problem is detected in 
> your 
> version you will need to update, and having a old version won't help. 
> Also 
> this helps move forward the community and the lib (GWT), because everyone 
> focused in the last version, also focus the issues and improvements in 
> that 
> version.
>
> The small step back eliminating the closure compiler just increase a 
> bit the code size of your app. But 100k?! did you see the trends and the 
> average code size of webs? 
> http://httparchive.org/trends.php?s=All=Nov+15+2014=Nov+1+2016,
>  
> you should note that even google.com uses 500k in 13request to load, 
> and it's ""just"" a text inbox in the center of your window (
> http://httparchive.org/viewsite.php?pageid=70036564).
>
> I might be wrong, but probably trying to embed the app.nocache.js in 
> your index.html will gain some milliseconds, probably just that dummy 
> change will get more ms than the cache-ables 100k you have lose without 
> the 
> closure pass. If your app is quite big, various MBs, you should take care 
> than the first split point load a minimum as possible to show something 
> to 
> the user. But, in your case, less than a 1M, I think that using split 
> point 
> is not a good idea. Your code will get cached, and most of static apps 
> already has more than 500k of JS, so your single page app having a 
> 500k-1M 
> of JS is pretty reasonable.
>
> You can go forward and apply the progressive web concepts (
> https://developers.google.com/web/progressive-web-apps/checklist). 
> Pretty sure you get there without the closure compiler ;). Service 
> workers 
> will allow maximum control to preload other split point or resources, and 
> to absolutely control how your app caches, so you can use previous 
> version, 
> load the next one and in the next page reload the new app version will be 
> used. This is not easy at all, but... some time we focus on the 
> optimization we have no control of (like the closure pass) and we don't 
> apply other we have control of, but that requires our effort.
>
> So,  update to GWT 2.8! it's awesome!, try other solutions to 
> improve page loads and share how you do it!
>
> On Friday, November 25, 2016 at 10:39:44 PM UTC+1, Slava Pankov wrote:
>>
>> @Jens
>>
>> I've tried WITHOUT any success to use closure compiler externally 
>> with GWT 2.8
>> See my question here: 
>> https://groups.google.com/forum/#!searchin/google-web-toolkit/closure$20compiler%7Csort:date/google-web-toolkit/k_kjIv9Klsg/LZAZiUf9BAAJ
>> Still want to find out exact steps to get it working :-(
>>
>>
>> On Friday, November 25, 2016 at 2:43:11 AM UTC-8, Kirill Prazdnikov 
>> wrote:
>>>
>>> Hi Jens, 
>>>
>>> What if we have SSO linker ? 
>>> Then no hacks is needed, right ?
>>> Then just run the Google Closure Compiler on the output.
>>>
>> -- 

 -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "GWT Users" group.
>> To unsubscribe from this topic, visit 

Re: Integrating Google Analytics with GWT (SPA) Application to capture the User Flow

2016-12-01 Thread Jens

>
>
> our gwt application is single page i have lot of tabs and dashboard ,i 
> want a global event which capture all the event with widget name.
> is It possbile in GWT?
>

You can globally listen for event previews using 
Event.addNativePreviewEvent() but that probably won't help you a lot as you 
will only see target elements of the underlying native browser event 
instead of widgets (browser doesn't know anything about widgets). Figuring 
out which widget belongs to any given element isn't really doable. What 
might be possible is to add custom attributes to, e.g. your tab, and once 
you have received a native preview event visit each parent of the target 
element until you find one having your custom attribute. Such an attribute 
could be data-tracking="page:my-page" or similar.

Otherwise you need a general abstraction of pages in your app. For example 
if you use GWT Places you could treat each PlaceChangeEvent (globally fired 
on the event bus) as a page view (using the place token as identification). 
If you only use GWTs History class and somehow generate history tokens on 
your own you can do the same by listening on the History using 
History.addValueChangeHandler(). 

If you don't have such a concepts in your app then you are probably out of 
luck and the only solution is to call the ga() method manually in each 
event handler (tab selections, anything that changes your "pages").

-- J.

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


Re: Integrating Google Analytics with GWT (SPA) Application to capture the User Flow

2016-12-01 Thread Ahamed
Thanks Jen for your prompt reply...most of the points are clear but if you 
see the last point

   - *Since GWT application is single page, how to capture whole flow like 
   how many times the user has clicked on each tab (need global event to 
   capture)*

our gwt application is single page i have lot of tabs and dashboard ,i want 
a global event which capture all the event with widget name.
is It possbile in GWT?

On Thursday, December 1, 2016 at 2:54:28 PM UTC+5:30, Ahamed wrote:
>
>
>
> down votefavorite 
> 
>
> I am integrating my GWT application with Google analytics and even i am 
> able to see the number of active user.But here my requirements are
>
>- How to Capture the User Flow
>- User facing difficulties while crawling into the application
>- tracking ip address
>- Since GWT application is single page, how to capture whole flow like 
>how many times the user has clicked on each tab (need global event to 
>capture)
>
> Note: i saw there are lot of threads which talks about GA How to 
> integrate Google Analytics into GWT using the asynchronous script 
> 
>  but 
> didn't get my answer.
>

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


Re: Integrating Google Analytics with GWT (SPA) Application to capture the User Flow

2016-12-01 Thread Jens
I guess you have to call the ga() functions yourself with the events you 
would like to track in your app.

Read the documentation of Google 
Analytics 
https://developers.google.com/analytics/devguides/collection/analyticsjs/

-- J.

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


Integrating Google Analytics with GWT (SPA) Application to capture the User Flow

2016-12-01 Thread Ahamed


down votefavorite 


I am integrating my GWT application with Google analytics and even i am 
able to see the number of active user.But here my requirements are

   - How to Capture the User Flow
   - User facing difficulties while crawling into the application
   - tracking ip address
   - Since GWT application is single page, how to capture whole flow like 
   how many times the user has clicked on each tab (need global event to 
   capture)

Note: i saw there are lot of threads which talks about GA How to integrate 
Google Analytics into GWT using the asynchronous script 

 but 
didn't get my answer.

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


Why incremental compiler option defaults to OFF?

2016-12-01 Thread Gordan Krešić
When turned ON, -incremental should "*compile faster by reusing data from 
the previous compile*". Why it is not turned on by default? Are there any 
caveats?

Google gives me mostly SDM related use-cases which I understand. But I'm 
wondering if using incremental compilation may speed up regular Gradle 
builds. If it matters, I'm using Putnami Gradle plugin.

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