Extending native JsTypes from Java with GWT 2.8.0-rc2

2016-09-21 Thread Nándor Előd Fekete
Hi everyone! Are we supposed to be able to extend native (browser) JsTypes from Java? Specifically, having the following declaration (from Elemental2): @JsType(isNative = true, namespace = JsPackage.GLOBAL) public class HTMLDivElement extends HTMLElement {...} and the extending type public cla

Re: Extending native JsTypes from Java with GWT 2.8.0-rc2

2016-09-21 Thread Thomas Broyer
It should be possible, from spec: https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/edit#heading=h.aaedpeo8ehl8 Can you file a bug in the issue tracker? https://github.com/gwtproject/gwt/issues On Wednesday, September 21, 2016 at 9:38:16 AM UTC+2, Nándor Előd Feke

Re: Extending native JsTypes from Java with GWT 2.8.0-rc2

2016-09-21 Thread Daniel Kurka
If you file a bug please include a simple repro case. In general this seems to be working fine (and is used withing google). So there must be something specific about our particular case. On Wed, Sep 21, 2016 at 9:43 AM Thomas Broyer wrote: > It should be possible, from spec: > https://docs.goog

Re: AutoBeanCodexEncode does not encode numbers when zero is the value

2016-09-21 Thread Yann Vo
For what it's worth, more than 3 years later... one workaround to have zero values serialized (along with the key) as you ask for is to use an Integer rather than an int. This is the JavaScript semantic (anything can be undefined or null) and then it behaves as other JSON serializers to omit nul

Re: Vaadin GWT Polymer Elements adds about 5000 new files to the release

2016-09-21 Thread Tony
thank you. I was able to exclude a large number of them via the appengine-web.xml using exclusion filters: thx for the quick reply. On Tuesday, September 20, 2016 at 5:27:14 PM UTC-4, zakaria amine wrote: > > gwt-polymer-elements adds the bower_components for polymer which contains > all

Re: Update conversation by displaying new messages when they are sent

2016-09-21 Thread JonL
Others have suggested websockets, but there are several other options as well. There is google cloud messaging and many other libraries to solve this problem as well as ServerSent Events. http://www.html5rocks.com/en/tutorials/eventsource/basics/ If none of those are options, try to avoid usin

Re: Setting Width of a TextBox inside LayoutPanel

2016-09-21 Thread Chris Odd
My original issue was that for textboxes, the call to pnl.setWidgetLeftWidth(tb, 0, Unit.PCT, 100, Unit.Pct); does not work. Other widgets are fine, but for some reason textbox is different. .LabelledTextBox { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; b

Re: Update conversation by displaying new messages when they are sent

2016-09-21 Thread Thomas Broyer
On Wednesday, September 21, 2016 at 4:43:45 PM UTC+2, JonL wrote: > > Others have suggested websockets, but there are several other options as > well. There is google cloud messaging and many other libraries to solve > this problem as well as ServerSent Events. > > http://www.html5rocks.com/en

Re: Update conversation by displaying new messages when they are sent

2016-09-21 Thread Jonathon Lamon
There are several pollyfills for eventsource though. Just like there are for older browsers and websockets. https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events On Wed, Sep 21, 2016 at 7:48 AM Thomas Broyer wrote: > > > On Wednesday, September 21, 2016 at 4:43:45 PM UTC+2, JonL

Extending native JsTypes from Java with GWT 2.8.0-rc2

2016-09-21 Thread Kirill Prazdnikov
Do you override methods ? -- 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 goog

Re: Problems connecting to Super Dev Mode server with 2.8 / multi-module project

2016-09-21 Thread harshyadav
Hi Drew, Did you find any solution for this? I am facing a similar issue. Thanks! On Friday, August 19, 2016 at 10:16:40 AM UTC-4, Drew Spencer wrote: > > The SDM recompile happens first time, it's just that when I reload the > page I see the "skipped compile because no input files have changed

Re: Update conversation by displaying new messages when they are sent

2016-09-21 Thread Frank
I will repeat myself : I would look into Athmosphere. This is a wrapper around websockets so you don't have to do the bear bones stuff yourself. And they talk about GWT on their Github page : https://github.com/Atmosphere/atmosphere-extensions/wiki/Atmosphere-GWT I used SignalR which is also a w