Re: [gwt-contrib] Re: CodeServer with Bookmarklets not working in GWT 2.7 (2nd request)

2016-09-13 Thread 'Daniel Kurka' via GWT Contributors
This is what recompile on reload is for, you can simply always load:

http://[sdmhost]:[sdmport]/recompile-requester/[module]

On Tue, Sep 13, 2016 at 5:53 PM JonL  wrote:

> I've had to do this when working on a sdm compiled application in a web
> wrapper on ios, instead of a proxy, I wrote a custom nocache.js that
> replaces the one generated by sdm and adds a url parameter to tell it the
> remote server to connect to where the codeserver is running, allowing me to
> debug the application running directly on the ipad correctly.
>
> Here is a gist of a sligtly modified version of the nocache.js replacing
> the module name with "module_name":
>
> https://gist.github.com/jonl-percsolutions-com/403ec9ba1bf50a6abcb0db852b171d0c
>
> So I just run my gwt-compile, replace the nocache.js and then create the
> war for deployment.   The when accessing the url, provide the url paramter "
> remote_server=http://ip:port;.
>
> Not sure if this will be what you need 100% but should work instead of
> setting up a proxy or clobbering the codeserver api.
>
>
> On Monday, September 12, 2016 at 12:24:54 PM UTC-7, Brandon Donnelson
> wrote:
>
> Proxying wasn't an option for developers because of the I.T. security
> protocols. Besides it feels a bit overcomplicated to have to set up a
> channel back to the code server. I think it would be easier to clobber the
> codeserver api with a workaround and setting the hosteName and hand that to
> the developers. I'm contemplating on forking the code server for GWT 2.7
> users to provide a workaround for the hostName through the program
> arguments.
>
> On Sat, Sep 10, 2016 at 1:43 AM Thomas Broyer  wrote:
>
> How about proxying through a local server that would intercept the
> nocache.js and route everything else to your external server? This is
> basically how webpack devserver and browserSync work in the JS land.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit-contributors/13bfb1ba-f2fb-40cf-afda-c9902d016cb3%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> *Brandon Donnelson*
> GXT Support Engineer
>  
> 
> 
> 
> [image: SenchaCon 2016 Aria Resort, Las Vegas, November 7-9]
> 
> *Join me at SenchaCon 2016!*
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit-contributors/274f1c7b-8267-4164-8d11-ab3e64dd9721%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CALLujio-C04RR1v%2BPbf0AA5QcQp8S4ts%3DEbn7SkgT2ENheYc8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Re: CodeServer with Bookmarklets not working in GWT 2.7 (2nd request)

2016-09-13 Thread JonL
I've had to do this when working on a sdm compiled application in a web 
wrapper on ios, instead of a proxy, I wrote a custom nocache.js that 
replaces the one generated by sdm and adds a url parameter to tell it the 
remote server to connect to where the codeserver is running, allowing me to 
debug the application running directly on the ipad correctly.

Here is a gist of a sligtly modified version of the nocache.js replacing 
the module name with "module_name":
https://gist.github.com/jonl-percsolutions-com/403ec9ba1bf50a6abcb0db852b171d0c

So I just run my gwt-compile, replace the nocache.js and then create the 
war for deployment.   The when accessing the url, provide the url paramter "
remote_server=http://ip:port;.

Not sure if this will be what you need 100% but should work instead of 
setting up a proxy or clobbering the codeserver api.

On Monday, September 12, 2016 at 12:24:54 PM UTC-7, Brandon Donnelson wrote:
>
> Proxying wasn't an option for developers because of the I.T. security 
> protocols. Besides it feels a bit overcomplicated to have to set up a 
> channel back to the code server. I think it would be easier to clobber the 
> codeserver api with a workaround and setting the hosteName and hand that to 
> the developers. I'm contemplating on forking the code server for GWT 2.7 
> users to provide a workaround for the hostName through the program 
> arguments.   
>
> On Sat, Sep 10, 2016 at 1:43 AM Thomas Broyer  > wrote:
>
>> How about proxying through a local server that would intercept the 
>> nocache.js and route everything else to your external server? This is 
>> basically how webpack devserver and browserSync work in the JS land.
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "GWT Contributors" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit-contributors+unsubscr...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-web-toolkit-contributors/13bfb1ba-f2fb-40cf-afda-c9902d016cb3%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> *Brandon Donnelson*
> GXT Support Engineer
>   
>  
>  
> 
> [image: SenchaCon 2016 Aria Resort, Las Vegas, November 7-9] 
> 
> *Join me at SenchaCon 2016!*
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/274f1c7b-8267-4164-8d11-ab3e64dd9721%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Strange (BAD?) code generated

2016-09-13 Thread Thomas Broyer

On Tuesday, September 13, 2016 at 5:27:50 PM UTC+2, Kirill Prazdnikov wrote:
>
> This means that the compiler must throw an error:
>
> If a type is not isNative=true
>   and the type is never instantiated
>   and the type is returned form JSNI\JsInterop
>
> right ?
>

No, just like the compiler doesn't generate an error for other cases where 
it's guaranteed you'll have an NPE at runtime, even without jsinterop.

If your GwtNativeUtil.getBoundingClientRect(element) wasn't JSNI and 
returned 'null' (for example, a typo where you write 'if (element != null) 
return null;' instead of 'if (element == null) return null;' and somehow 
the compiler can infer that 'element' won't ever be 'null'; or of course 
the reverse: without the typo and the compiler somehow can infer that 
'element' will always be 'null'), then it'd generate the same code (just 
without the call to getBoundingRect here).

-- 
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: Strange (BAD?) code generated

2016-09-13 Thread Kirill Prazdnikov
This means that the compiler must throw an error:

If a type is not isNative=true
  and the type is never instantiated
  and the type is returned form JSNI\JsInterop

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+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: Strange (BAD?) code generated

2016-09-13 Thread Thomas Broyer

On Tuesday, September 13, 2016 at 4:08:38 PM UTC+2, Kirill Prazdnikov wrote:
>
>
>> See https://github.com/gwtproject/gwt/issues/9330
>> You must be missing an isNative=true on ClientRect 
>>
>
> Ok, but what does it mean when a type has a @JsProperty but it is not 
> "isNative=true" ?
>
> Must each class with JsProperties be "isNative=true" ?
>

See comments on the linked issue: if it's not isNative=true, then from the 
PoV of GWT it's a normal Java type and will be pruned if it's never 
instantiated; unless you -generateJsInteropExports in which case you expose 
its constructor to the JS world (and GWT can no longer tell if it's ever 
instantiated, so it doesn't prune it; if I'm not mistaken).
Because GWT can tell here (you didn't use -generateJsInteropExports, 
right?) that you never instantiate the ClientRect, it prunes it, which 
means that anything that returns it from JS must be returning 'null' or 
'undefined' (remember: you don't instantiate it, and you don't expose a way 
for JS to instantiate it, so it cannot ever be instantiated and it's then 
safe to assume that it can only be null); which leads to this code calling 
null.$_nullMethod(), which is GWT's way of representing 
NullPointerExceptions in JS.

ClientRect here represents/maps an object that comes from the JS world, so 
it should be isNative=true. If you don't use isNative=true, it means it's 
an object from your app that you'll expose for consumption by JS (iff you 
use -generateJsInteropExports; otherwise jsinterop annotations are just 
ignored).

-- 
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: construct image from Serverside to client side in GWT

2016-09-13 Thread Eddy
Hi Ramanan,

Few months ago I had to view different pictures within a popup widget, wich 
are taken from the server side.
Here is a resume about how I made it (but I am not sure the solution is 
very secure) :

imagePopup = new Image();
popup = new PopupPanel();
popup.setWidget(imagePopup);

.

I discard details about the functionnality with selecting a particular row 
into a grid, going from the view side to the presenter side of the MVP 
model used with events, etc), but regarding the following line, the picture 
is automatically retrieved and vie when you reset the url with another picture file, rerefresh of the 
picture occurs.
=> some people could be right by saying that pictures are not secured but 
perhaps it could help you

Regards,

Eddy

Le vendredi 17 juin 2016 12:08:38 UTC+2, Ramanan Nathamuni a écrit :
>
> Hello all,
>
> my requirement is an image getting from server to GWT client. 
>
> from the client side, I send a message through AsyncCallBack method and 
> the server response Serializable byte[] object. when getting this object,  
> I am parsing as String object. but the image could get.
>
> the steps i followed
>
> 1.client side  Asynccallback method is
>
> CommandMessage *msg* = new CommandMessage(itemId, *"get-image-data*");
>
> cmain.ivClient.execute(*msg*, new AsyncCallback() {
>
> @Override
> public void onFailure(Throwable caught) {
> //add(new Label("Problem in Getting Map"));
>
> }
>
> @Override
> public void onSuccess(ResponseMessage result) {  
>   
> here I am getting *result.data* is 
> "data:india/png;base64,parsedString"  
> 
> Image image = new Image(*result.data.toString()*);
>
> canvas.add(image);//
> *but I could not getting Image*  
> }
> });
>
>
>
> 2. parsing the byte[] object from serverside 
>
> @Override
> public cti.gwtdemo.client.rpc.ResponseMessage 
> execute(cti.gwtdemo.client.rpc.CommandMessage commandMessage) throws 
> Exception {
> cti.item_system.CommandMessage cmdMsg = CVT(commandMessage);
> cti.gwtdemo.client.rpc.ResponseMessage rsMsg = 
> CVT(getItemService().execute(cmdMsg));
>
> * byte[] bytes = (byte[]) rsMsg.data;String base64 = 
> com.google.gwt.user.server.Base64Utils.toBase64(bytes); **//here 
> converting process*
> String[] s = rsMsg.args[0].split(" "); 
> s[0] = s[0].replace(".", "/");   *// the string s[0] 
> contains image name with type ie india.png and i replaced as india/png *
> 
> rsMsg.data="data:"+s[0]+";base64,"+base64;
>  * 
> //"data:images/png;base64," + base64;* -> *Actually I 
> stuck here.*  ( As per mentioned in   
> http://gurselkoca.blogspot.in/2010/12/construction-of-gwt-image-from-byte.html
>  
> )
>
>(in rsMsg.data now contains . "data:india/png;base64, 
> parsedString")
>
>  return rsMsg;
> }
>
>  protected cti.item_system.CommandMessage 
> CVT(cti.gwtdemo.client.rpc.CommandMessage 
> cm) {
>
> return new cti.item_system.CommandMessage(cm.itemId, cm.command, 
> cm.args, cm.data);   //Server Side data 
> }
>
> protected cti.gwtdemo.client.rpc.ResponseMessage 
> CVT(cti.item_system.ResponseMessage 
> rm) {
>
> return new cti.gwtdemo.client.rpc.ResponseMessage(rm.command, 
> rm.itemId, rm.result, rm.args, rm.data); //after getting data it set to 
> client side
> }
>
> please Help me, and  what stands for 
>
> *"data:images/png;base64," + base64; *Thanks in Advance
> Ramanan
>
>

-- 
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: Strange (BAD?) code generated

2016-09-13 Thread Kirill Prazdnikov

>
>
> See https://github.com/gwtproject/gwt/issues/9330
> You must be missing an isNative=true on ClientRect 
>

Ok, but what does it mean when a type has a @JsProperty but it is not 
"isNative=true" ?

Must each class with JsProperties be "isNative=true" ?


-- 
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.


[gwt-contrib] Re: Missing JsInterop 1.0.0-SNAPSHOT

2016-09-13 Thread Thomas Broyer
Could it be because version 1.0.0 is already on Central? Should we try 
deploying 1.0.1-SNAPSHOT or 1.1.0-SNAPSHOT instead?

Anyway, the workaround (given that jsinterop annotations haven't changed 
for months) is to force using 1.0.0 instead of 1.0.0-SNAPSHOT.

The following seems to work for Maven:


  

  com.google.gwt
  gwt
  2.8.0-SNAPSHOT
  pom
  import


  com.google.jsinterop
  jsinterop
  1.0.0
  pom
  import

  


…well, except that now it cannot resolve gwt-servlet!
So it might really actually be a Sonatype OSSRH (configuration?) issue.

Also, not sure that even declaring the 
com.google.jsinterop:jsinterop-annotations:1.0.0 and 
com.google.jsinterop:jsinterop-annotations:1.0.0:sources (and possibly 
com.google.jsinterop:jsinterop:1.0.0@pom) as plugin dependencies would work 
with Mojo's Maven Plugin for GWT.

On Monday, September 5, 2016 at 7:01:01 PM UTC+2, Colin Alworth wrote:
>
> Looks like somehow the JsInterop jars are missing from the 
> google-snapshots repo now, making it difficult to use the latest nightlies.
>
> http://build.gwtproject.org/job/gwt/615/console shows creating, signing, 
> and deploying:
> Signing and Deploying ./poms/jsinterop/pom.xml to 
> https://oss.sonatype.org/content/repositories/google-snapshots/
> Uploading: 
> https://oss.sonatype.org/content/repositories/google-snapshots//com/google/jsinterop/jsinterop/1.0.0-SNAPSHOT/jsinterop-1.0.0-20160905.055744-4.pom
> 1/1K
> 1K uploaded  (jsinterop-1.0.0-20160905.055744-4.pom)
> Signing and Deploying 
> /tmp/random-dir-2498515708877027498/gwt-2.8.0-SNAPSHOT/jsinterop-annotations.jar
>  
> to https://oss.sonatype.org/content/repositories/google-snapshots/
> Uploading: 
> https://oss.sonatype.org/content/repositories/google-snapshots//com/google/jsinterop/jsinterop-annotations/1.0.0-SNAPSHOT/jsinterop-annotations-1.0.0-20160905.055746-4.jar
> 3/3K
> 3K uploaded  (jsinterop-annotations-1.0.0-20160905.055746-4.jar)
> Uploading: 
> https://oss.sonatype.org/content/repositories/google-snapshots//com/google/jsinterop/jsinterop-annotations/1.0.0-SNAPSHOT/jsinterop-annotations-1.0.0-20160905.055746-4-sources.jar
> 4/8K
> 8/8K
> 8/8K
> 8K uploaded  (jsinterop-annotations-1.0.0-20160905.055746-4-sources.jar)
> Uploading: 
> https://oss.sonatype.org/content/repositories/google-snapshots//com/google/jsinterop/jsinterop-annotations/1.0.0-SNAPSHOT/jsinterop-annotations-1.0.0-20160905.055746-4-javadoc.jar
> 607/607b
> 607b uploaded  (jsinterop-annotations-1.0.0-20160905.055746-4-javadoc.jar)
>
>
>
> But the jars can't be found in maven 
> https://oss.sonatype.org/content/repositories/google-snapshots/com/google/jsinterop/jsinterop/,
>  
> and the latest bom depends on it 
> https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt/2.8.0-SNAPSHOT/gwt-2.8.0-20160905.055656-339.pom
>
> 
>   com.google.jsinterop
>   jsinterop
>   1.0.0-SNAPSHOT
>   pom
>   import
> 
>
>
>
> Oddly enough, there is a 1.0.0.j7-SNAPSHOT, apparently generated and 
> deployed from http://build.gwtproject.org/job/gwt-java7/, but unless you 
> happen to use GWT 2.8.0.j7-SNAPSHOT, this isn't terribly useful.
>
> Any ideas how this might have disappeared (as well as all old versions), 
> despite apparently being deployed fresh about 12 hrs ago?
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/21491550-2efa-4840-92a5-d0fdcfde4e6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Setting Width of a TextBox inside LayoutPanel

2016-09-13 Thread Eddy
Hello Chris,

I am not an expert about GWT but I always added a panel into a layoutpanel 
before. After that I added my widgets into the panel.
I am telling about SimplePanel for only one widget or FlowPanel for putting 
several widgets into.

For example, I used a DockLayoutPanel (and think it is the same for 
layoutpanel), I set it in Unit.PX made a setSize("100%", "100%").
Then I instanciated a flowPanel, with a setSize("100%", "100%") too, and 
added my widgets into (telling about the view into an MVP model).
I ensured the view implements RequiresResize, ProvidesResize and 
implemented some resizes code on the widgets I want to resize.
The behaviour is that when the user resize the browser, the container 
layoutPanel resize too and the panel take "dynamically" the size of the 
layoutpanel.
=> perhaps you could set the size of your texbox = size panel and see what 
happens.

Excuses me for my english but i am french :-)

Hope it could help

Eddy

Le mercredi 20 juillet 2016 00:16:56 UTC+2, Chris Odd a écrit :
>
> Hello all,
>
> I have a LayoutPanel with one widget added to it (a TextBox).   I want to 
> make the TextBox's width equal to the LayoutPanel's width.
>
> I thought this would work, but it does not (the TextBox is much narrower 
> than the LayoutPanel's width):
>
> LayoutPanel pnl = new LayoutPanel();
> TextBox tb = new TextBox();
> pnl.add(tb);
>
> pnl.setWidgetLeftWidth(tb, 0, Unit.PCT, 100, Unit.Pct);
>
> Any idea why it doesn't work?  Or ideas for a better approach?
>
>
> 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+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: Strange (BAD?) code generated

2016-09-13 Thread Thomas Broyer


On Tuesday, September 13, 2016 at 3:35:46 PM UTC+2, Kirill Prazdnikov wrote:
>
> I was trying to build with the latest master version, but it fails with
>
> Execution default of goal 
> org.codehaus.mojo:gwt-maven-plugin:2.8.0-SNAPSHOT:resources failed: 
> Plugin org.codehaus.mojo:gwt-maven-plugin:2.8.0-SNAPSHOT or one of its 
> dependencies could not be resolved: 
> Could not find artifact 
> com.google.jsinterop:jsinterop-annotations:jar:1.0.0-20160913.055412-1 in 
> snapshots-repo (https://oss.sonatype.org/content/repositories/public/) -> 
> [Help 1]
>
>
Force using jsinterop-annotations 1.0.0 (declare it in your 
dependencyManagement *and* as a plugin dependency) 

-- 
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: Strange (BAD?) code generated

2016-09-13 Thread Thomas Broyer


On Tuesday, September 13, 2016 at 3:30:49 PM UTC+2, Kirill Prazdnikov wrote:
>
> Hi, I have the following code:
>
> public static Vec2i elementSizeToDeviceSize(Element element) {
>>   float devicePixelRatio = devicePixelRatio();
>>   ClientRect rect = GwtNativeUtil.getBoundingClientRect(element);
>>   float x0 = (float) (rect.getLeft() * devicePixelRatio);
>>   float x1 = (float) (rect.getRight() * devicePixelRatio);
>>   float y0 = (float) (rect.getTop() * devicePixelRatio);
>>   float y1 = (float) (rect.getBottom() * devicePixelRatio);
>>
>>   return new Vec2i(Math.round(x1 - x0), Math.round(y1 - y0));
>> }
>>
>>
> GwtNativeUtil.getBoundingClientRect is native JSNI function.
>
>
> It returns 
>
>   public interface ClientRect extends JSObject 
>
> which has 
>
>   @JsProperty double getLeft();
>
>
> And the GWT compiler 2.8-rc2 emits the following code:
>
>
> function hEb(a) {
>> var b, c, d, e, f;
>> b = gEb();
>> a.getBoundingClientRect();
>> c = null.hf() * b;
>> d = null.hf() * b;
>> e = null.hf() * b;
>> f = null.hf() * b;
>> return new Tvb(Oj($wnd.Math.round(d - c)), Oj($wnd.Math.round(f - e)))
>> }
>>
>>
>
>
> This code is not a valid code. Is this a bug ?  
>
> The compiler did not throw an any message. 
>
>
> I`m using -Dgwt.style=PRETTY
>
>
See https://github.com/gwtproject/gwt/issues/9330
You must be missing an isNative=true on ClientRect 

-- 
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: Strange (BAD?) code generated

2016-09-13 Thread Kirill Prazdnikov

>
>
> I`m using -Dgwt.style=PRETTY
>
>
>
Sorry, typo here.

This Bug exists without gwt.style=PRETTY. 

-- 
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: Strange (BAD?) code generated

2016-09-13 Thread Kirill Prazdnikov
I was trying to build with the latest master version, but it fails with

Execution default of goal 
org.codehaus.mojo:gwt-maven-plugin:2.8.0-SNAPSHOT:resources failed: 
Plugin org.codehaus.mojo:gwt-maven-plugin:2.8.0-SNAPSHOT or one of its 
dependencies could not be resolved: 
Could not find artifact 
com.google.jsinterop:jsinterop-annotations:jar:1.0.0-20160913.055412-1 in 
snapshots-repo (https://oss.sonatype.org/content/repositories/public/) -> 
[Help 1]

-- 
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.


Strange (BAD?) code generated

2016-09-13 Thread Kirill Prazdnikov
Hi, I have the following code:

public static Vec2i elementSizeToDeviceSize(Element element) {
>   float devicePixelRatio = devicePixelRatio();
>   ClientRect rect = GwtNativeUtil.getBoundingClientRect(element);
>   float x0 = (float) (rect.getLeft() * devicePixelRatio);
>   float x1 = (float) (rect.getRight() * devicePixelRatio);
>   float y0 = (float) (rect.getTop() * devicePixelRatio);
>   float y1 = (float) (rect.getBottom() * devicePixelRatio);
>
>   return new Vec2i(Math.round(x1 - x0), Math.round(y1 - y0));
> }
>
>
GwtNativeUtil.getBoundingClientRect is native JSNI function.


It returns 

  public interface ClientRect extends JSObject 

which has 

  @JsProperty double getLeft();


And the GWT compiler 2.8-rc2 emits the following code:


function hEb(a) {
> var b, c, d, e, f;
> b = gEb();
> a.getBoundingClientRect();
> c = null.hf() * b;
> d = null.hf() * b;
> e = null.hf() * b;
> f = null.hf() * b;
> return new Tvb(Oj($wnd.Math.round(d - c)), Oj($wnd.Math.round(f - e)))
> }
>
>


This code is not a valid code. Is this a bug ?  

The compiler did not throw an any message. 


I`m using -Dgwt.style=PRETTY






-- 
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: load js problem in IE11

2016-09-13 Thread Eddy
For example, a line like  enforces using IE10 even under an IE11 browser.

Regards, Cordialement,
Eddy

Le lundi 29 août 2016 09:30:06 UTC+2, Frank a écrit :
>
> I am not sure if this has anything to do with this.
> But we have the following in our .hmtl file :  http-equiv="x-ua-compatible" content="IE=10">
>

-- 
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.