Re: app not reload from android chrome

2021-01-11 Thread Peter Donald
There's a library that manages this for you at
https://github.com/realityforge/gwt-cache-filter which will set the caching
parameters as required.

On Mon, Jan 11, 2021 at 9:35 PM pierre...@gmail.com 
wrote:

> Hi,
> I have a gwt app developed with gwt-material but I assume it's not
> relevant for this problem.
> The app is served by Tomcat.
> Everything is fine with PC/iphone/iPad but with android after deploying a
> new app, the old one is still showned. The nocache mecanism doesnot work in
> android chrome.
> Removing the cache works, but I cannot asks that to my users.
>
> Any hint how can I force the browser  to reload the app from server for
> theses mobiles ?
> Thanks in advance
> Pierre
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit/cf24a086-3c9e-4488-9ab8-200402a38b4bn%40googlegroups.com
> 
> .
>


-- 
Cheers,

Peter Donald

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/CACiKNc4bZXnCsF8mU-FRzrQxcWh0aAWcDBmuJQyDXzbJMAd%2BvA%40mail.gmail.com.


Re: GWT built in History and HTML5 pushstate

2021-01-11 Thread Thomas Broyer
Are you using Places?
Have a look at https://gist.github.com/tbroyer/1883821
Otherwise (using plain com.google.gwt.user.client.History), you'd have to 
migrate your code to use something else, possibly based on 
elemental2-dom: 
https://javadoc.io/doc/com.google.elemental2/elemental2-dom/latest/elemental2/dom/History.html,
 
or domino-history as already suggested by Ahmad.

On Monday, January 11, 2021 at 1:17:25 PM UTC+1 Martin Nguyen wrote:

> Hi,
>
> We are using the GWT built in History which leads to the hashtag tokens. 
> This is leading to a problem when we are trying to redirect in a Microsoft 
> teams app.
>
> Is there a way for us to try removing that hashtag sign in the urls, are 
> there any up-to date libraries or implementation to go from History -> 
> HTML5 pushstate?
>
> Best regards
> Martin 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/300d1139-bd38-4212-bafa-ee961f26e6e1n%40googlegroups.com.


Re: CodeServer looks for (not required?) source

2021-01-11 Thread Gordan Krešić

On 10. 01. 2021. 15:53, Gordan Krešić wrote:

When using SDM's Code Server, I get following error during initial load:

 [ERROR] Could not find org.apache.commons.lang3.LocaleUtils in types 
compiled from source. Is the source glob too strict?


That's it, no further reference which class depends on LocaleUtils. Is there 
a way to increase log verbosity of code server?


To summarize: one of my classes did reference LocaleUtils, but not directly. 
It had static member field of type OffendingClass that internally had 
methods which use LocaleUtils.


That field was not accessed in client code, co compiler, after it pruned AST 
didn't stumbled upon it, as I suspected. SDM skips such optimizations and 
did found OffendingClass in AST, but for some reason didn't report class name.


Decreasing log level od CodeServer didn't report offending class either, but 
gave me some clues where to look for.


TIL:

1. When CodeServer doesn't report offending class, look at static members 
and static class initializers.


2. GWT Gradle landscape is in poor condition.

-gkresic.

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/6ccd627b-d9ea-d5f2-e411-f8ee2df02eb8%40steatoda.com.


Re: CodeServer looks for (not required?) source

2021-01-11 Thread Gordan Krešić

On 11. 01. 2021. 17:00, Jens wrote:


A parameter option (like ALL in -logLevel ALL) is also an argument on its 
own, so you need to split your argument string into two as needed.


Yep, thanks.

-gkresic.

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/eee98c5f-8784-6b53-cf67-2ebae4c2febd%40steatoda.com.


Re: app not reload from android chrome

2021-01-11 Thread pierre...@gmail.com
Thanks, I guess so. Will try ...

Le lundi 11 janvier 2021 à 17:58:42 UTC+1, lofid...@gmail.com a écrit :

> Can this Blog Post help you?
>
>
> https://seewah.blogspot.com/2009/02/gwt-tips-2-nocachejs-getting-cached-in.html
>
> pierre...@gmail.com schrieb am Montag, 11. Januar 2021 um 11:34:58 UTC+1:
>
>> Hi,
>> I have a gwt app developed with gwt-material but I assume it's not 
>> relevant for this problem.
>> The app is served by Tomcat.
>> Everything is fine with PC/iphone/iPad but with android after deploying a 
>> new app, the old one is still showned. The nocache mecanism doesnot work in 
>> android chrome.
>> Removing the cache works, but I cannot asks that to my users.
>>
>> Any hint how can I force the browser  to reload the app from server for 
>> theses mobiles ?
>> Thanks in advance
>> Pierre
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/826432d6-212f-4210-b570-88b6eab5f0a3n%40googlegroups.com.


Re: app not reload from android chrome

2021-01-11 Thread lofid...@gmail.com
Can this Blog Post help you?

https://seewah.blogspot.com/2009/02/gwt-tips-2-nocachejs-getting-cached-in.html

pierre...@gmail.com schrieb am Montag, 11. Januar 2021 um 11:34:58 UTC+1:

> Hi,
> I have a gwt app developed with gwt-material but I assume it's not 
> relevant for this problem.
> The app is served by Tomcat.
> Everything is fine with PC/iphone/iPad but with android after deploying a 
> new app, the old one is still showned. The nocache mecanism doesnot work in 
> android chrome.
> Removing the cache works, but I cannot asks that to my users.
>
> Any hint how can I force the browser  to reload the app from server for 
> theses mobiles ?
> Thanks in advance
> Pierre

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/3a24dac6-eaab-4cf8-887a-35fb32fe8909n%40googlegroups.com.


Re: CodeServer looks for (not required?) source

2021-01-11 Thread Jens


> Unreletaed to this, but Thomas one more question if I may: can you see a 
> problem with folloging Gradle task: 
>
> task gwtCodeServerManual(type: JavaExec) { 
> main = 'com.google.gwt.dev.codeserver.CodeServer' 
> classpath += files(sourceSets.main.compileClasspath, 
> sourceSets.main.runtimeClasspath) 
> args += '-logLevel ALL' 
> args += '-bindAddress 0.0.0.0' 
> args += '-port 9877' 
> args += '-launcherDir war' 
> args += '-XmethodNameDisplayMode FULL' 
> args += 'com.steatoda.mole.gwt.Desk' 
> } 
>
> From --debug output it seems that it passes parameters properly, but 
> somehow CodeServer complains (here it complains with "Unknown argument: 
> -logLevel ALL", but it will complain on ANY parameter, whichever I define 
> first): 
>

A parameter option (like ALL in -logLevel ALL) is also an argument on its 
own, so you need to split your argument string into two as needed.

Personally I define arguments the following way:

args = [
  '-sourceLevel', '11',
  '-strict',
  '-workDir', gwtCodeServerWorkDir,
  '-launcherDir', gwtCodeServerWarDir,
  '-failOnError',
  '-bindAddress', '0.0.0.0',
  '-port', port,
  '-style', 'PRETTY',
  '-XmethodNameDisplayMode', 'ABBREVIATED'
]


-- 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/5e7e3d02-8e81-4268-ac03-82cade22fad4n%40googlegroups.com.


Re: GWT built in History and HTML5 pushstate

2021-01-11 Thread Vegegoku
I would suggest that you take a look at domino-history 


On Monday, January 11, 2021 at 2:17:25 PM UTC+2 Martin Nguyen wrote:

> Hi,
>
> We are using the GWT built in History which leads to the hashtag tokens. 
> This is leading to a problem when we are trying to redirect in a Microsoft 
> teams app.
>
> Is there a way for us to try removing that hashtag sign in the urls, are 
> there any up-to date libraries or implementation to go from History -> 
> HTML5 pushstate?
>
> Best regards
> Martin 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/a1a916a3-9a7c-4f24-a529-94ed933b2e54n%40googlegroups.com.


GWT built in History and HTML5 pushstate

2021-01-11 Thread Martin Nguyen
Hi,

We are using the GWT built in History which leads to the hashtag tokens. 
This is leading to a problem when we are trying to redirect in a Microsoft 
teams app.

Is there a way for us to try removing that hashtag sign in the urls, are 
there any up-to date libraries or implementation to go from History -> 
HTML5 pushstate?

Best regards
Martin 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/db237f2e-8c39-4c8f-94f6-2097e912ac88n%40googlegroups.com.


Re: CodeServer looks for (not required?) source

2021-01-11 Thread Gordan Krešić

On 11. 01. 2021. 09:42, Thomas Broyer wrote:

On Sunday, January 10, 2021 at 10:29:06 PM UTC+1 Gordan Krešić wrote:

On 10. 01. 2021. 21:58, lofid...@gmail.com wrote:
 > Actually you have following options for the transpiler with Maven
plugin.
 > Maybe it is the same with the Gradle?
 >
 > -logLevel
 > INFO

This changes log level for compiled code, not code server's output.

No, it's the GWT compiler/codeserver/etc. log level.
Adjusting runtime's log level is done through a gwt.logging.logLevel 
 or -property.


Oops, my mistake. Gradle plugin I'm using has property named "logLevel" but 
it look like it uses it only for configuring client level logging.


When I run CodeServer by hand and pass -logLevel it does give more detailed 
output and indeed points me to right direction.


Thanks Thomas nad Lofi.

Unreletaed to this, but Thomas one more question if I may: can you see a 
problem with folloging Gradle task:


task gwtCodeServerManual(type: JavaExec) {
main = 'com.google.gwt.dev.codeserver.CodeServer'
	classpath += files(sourceSets.main.compileClasspath, 
sourceSets.main.runtimeClasspath)

args += '-logLevel ALL'
args += '-bindAddress 0.0.0.0'
args += '-port 9877'
args += '-launcherDir war'
args += '-XmethodNameDisplayMode FULL'
args += 'com.steatoda.mole.gwt.Desk'
}

From --debug output it seems that it passes parameters properly, but 
somehow CodeServer complains (here it complains with "Unknown argument: 
-logLevel ALL", but it will complain on ANY parameter, whichever I define 
first):


11:30:43.721 [INFO] [org.gradle.process.internal.DefaultExecHandle] Starting 
process 'command '/usr/local/jdk1.8.0_251/bin/java''. Working directory: 
/home/gkresic/Sources/mole Command: /usr/local/jdk1.8.0_251/bin/java 
-Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant 
-cp  com.google.gwt.dev.codeserver.CodeServer -logLevel ALL 
-bindAddress 0.0.0.0 -port 9877 -launcherDir war -XmethodNameDisplayMode 
FULL com.steatoda.mole.gwt.Desk

[...]
11:30:43.722 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] 
Changing state to: STARTING
11:30:43.722 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting 
until process started: command '/usr/local/jdk1.8.0_251/bin/java'.
11:30:43.723 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] 
Changing state to: STARTED
11:30:43.723 [INFO] [org.gradle.process.internal.DefaultExecHandle] 
Successfully started process 'command '/usr/local/jdk1.8.0_251/bin/java''
11:30:43.723 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting 
until streams are handled...

11:30:44.045 [ERROR] [system.err] Unknown argument: -logLevel ALL
11:30:44.048 [ERROR] [system.err] Google Web Toolkit 2.9.0
11:30:44.049 [ERROR] [system.err] CodeServer [-[no]allowMissingSrc] 
[-[no]compileTest] [-compileTestRecompiles count] [-[no]failOnError] 
[-[no]precompile] [-port port] [-src dir] [-workDir dir] [-launcherDir] 
[-bindAddress host-name-or-address] [-style (DETAILED|OBFUSCATED|PRETTY)] 
[-setProperty name=value,value...] [-[no]incremental] [-sourceLevel [auto, 
1.8, 1.9, 1.10, 1.11]] [-logLevel (ERROR|WARN|INFO|TRACE|DEBUG|SPAM|ALL)] 
[-[no]generateJsInteropExports] 
[-includeJsInteropExports/excludeJsInteropExports regex] 
[-XmethodNameDisplayMode (NONE|ONLY_METHOD_NAME|ABBREVIATED|FULL)] 
[-X[no]closureFormattedOutput] [module]

11:30:44.083 [ERROR] [system.err]
11:30:44.083 [ERROR] [system.err] where
11:30:44.085 [ERROR] [system.err]   -[no]allowMissingSrc 
  Allows -src flags to reference missing directories. (defaults to OFF)
11:30:44.089 [ERROR] [system.err]   -[no]compileTest 
  Exits after compiling the modules. The exit code will be 0 if the 
compile succeeded. (defaults to OFF)
11:30:44.089 [ERROR] [system.err]   -compileTestRecompiles 
  The number of times to recompile (after the first one) during a 
compile test.

[...] more of CodeServer's help


If I copy/paste that same cmdline to plain bash script, it works.

Gradle 4.8.

-gkresic.

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/38d58050-429a-6b6c-acc3-2ecfae53d0eb%40steatoda.com.


app not reload from android chrome

2021-01-11 Thread pierre...@gmail.com
Hi,
I have a gwt app developed with gwt-material but I assume it's not relevant 
for this problem.
The app is served by Tomcat.
Everything is fine with PC/iphone/iPad but with android after deploying a 
new app, the old one is still showned. The nocache mecanism doesnot work in 
android chrome.
Removing the cache works, but I cannot asks that to my users.

Any hint how can I force the browser  to reload the app from server for 
theses mobiles ?
Thanks in advance
Pierre

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/cf24a086-3c9e-4488-9ab8-200402a38b4bn%40googlegroups.com.


Re: CodeServer looks for (not required?) source

2021-01-11 Thread Thomas Broyer


On Sunday, January 10, 2021 at 10:29:06 PM UTC+1 Gordan Krešić wrote:

> On 10. 01. 2021. 21:58, lofid...@gmail.com wrote: 
> > Actually you have following options for the transpiler with Maven 
> plugin. 
> > Maybe it is the same with the Gradle? 
> > 
> > -logLevel 
> > INFO 
>
> This changes log level for compiled code, not code server's output.


No, it's the GWT compiler/codeserver/etc. log level.
Adjusting runtime's log level is done through a gwt.logging.logLevel 
 or -property.
 

> Out of 
> despair I even tried changing this to ALL, but, of course, it didn't help.
>

Did it change the overall output? If not, then you didn't actually set it 
to ALL.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/ef6aa0fc-97d8-46b3-b9bd-7b8ec703a81dn%40googlegroups.com.


Re: CodeServer looks for (not required?) source

2021-01-11 Thread Thomas Broyer
Fwiw, there are  and