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" 
> message.
>
> I think I have a similar problem to this: 
> http://stackoverflow.com/questions/27433642/gwt-superdevmode-fails-to-see-changes
>  
> but if I remove src/main/java from the resources I get errors that my 
> BootstrapperImpl.java can't be found: 
>
> [ERROR] The type 
> 'com.utilitiessavings.usavappv7.client.gin.BootstrapperImpl' was not found, 
> either the class name is wrong or there are compile errors in your code.
>
> That's essentially my EntryPoint, so looks like no sources are found at 
> all.
>
> On Thursday, 18 August 2016 20:41:15 UTC+1, Jens wrote:
>>
>> SDM generates a special module.nocache.js file which contains the 
>> "recompile on reload" feature. You have to make sure that you have deployed 
>> that generated file. If you start the DevMode class the file is placed into 
>> the directory your DevMode -war parameter is pointing to. If you start 
>> CodeServer you have to use the -launcherDir parameter (DevMode delegates 
>> -war to -launcherDir). Make sure its pointing to the directory you deploy.
>>
>> -- 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: [gwt-contrib] SNAPSHOT of 21 Sept breaks my build (invalid namespace

2016-09-21 Thread 'Roberto Lublinerman' via GWT Contributors
The error suggests a class path issue. The same patch that introduced
 in native string relaxed the checking for namespaces in the
compiler to allow this situation (
https://gwt-review.googlesource.com/#/c/16881/).

On Wed, Sep 21, 2016 at 2:46 AM, stuckagain  wrote:

> It looks like some changes to JSInterop are breaking my build
>
> Compiling module com.swift.common.paging.PagingTest.JUnit
>Ignored 1 unit with compilation errors in first pass.
> Compile with -strict or with -logLevel set to TRACE or DEBUG to see all
> errors.
>Errors in com/google/gwt/emul/java/lang/String.java
>   [ERROR] Line 165: 'String.NativeFunction 
> String.getFromCharCodeFunction()'
> has invalid namespace ''.
>   [ERROR] Line 757: 'String.NativeString' has invalid namespace
> ''.
>
> Additionally, how can I enable strict mode for GWTTestCases when using
> tbroyer's maven plugin ?
>
> --
> 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/5e035a47-ff94-
> 4bfa-869e-fee8fb1dd0fc%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/CAC7T7gmZYsv%3DEknBAVUvsS_Dv_TKYex9dHD39G%2B3-tKT6Qf0wg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 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: 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 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/tutorials/eventsource/basics/
>>
>
> Unfortunately, and surprisingly, EventSource isn't supported in Microsoft
> browsers, contrary to WebSocket!
> http://caniuse.com/eventsource vs. http://caniuse.com/websockets
>
> If none of those are options, try to avoid using a regular timer.  More
>> timers, more problems.  If you must use a timer like object, I would
>> suggest using gwt Scheduler instead.
>>
>
> Most importantly, schedule the task again from the RPC callback, do not
> schedule a repeating task (in other words, in JS terms, use setTimeout, do
> not use setInterval)
>
>
>> On Tuesday, September 20, 2016 at 2:38:11 AM UTC-7, Olar Andrei wrote:
>>>
>>> Hello,
>>>
>>> In my GWT application I have a messaging system integrated within. When
>>> a specific conversation gets opened, a query runs and selects all messages
>>> available for this conversation. From the same view you can reply to that
>>> conversation. When replying, the other user has to click a small refresh
>>> button (located on top, which agian gets all mesages from the DB running
>>> the same query from above) in order for the last message to appear.
>>>
>>> My question: How can I make that refresh automatically, so you don't
>>> have to click on the button in order to refresh the conversation. Like in
>>> FB, Messenger, etc, where you don't refresh the conversation and the
>>> messages keep coming without you having to do anything.
>>>
>>> Thanks in advance.
>>>
>> --
> 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/zsyG1NKf2p8/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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.
>
-- 
Jonathon Lamon
Chief Software Engineer
Perceptronics Solutions Inc.
Tel  703-485-2922
Cell 269-205-4649
www.percsolutions.com

-- 
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: 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/tutorials/eventsource/basics/
>

Unfortunately, and surprisingly, EventSource isn't supported in Microsoft 
browsers, contrary to WebSocket!
http://caniuse.com/eventsource vs. http://caniuse.com/websockets

If none of those are options, try to avoid using a regular timer.  More 
> timers, more problems.  If you must use a timer like object, I would 
> suggest using gwt Scheduler instead.
>

Most importantly, schedule the task again from the RPC callback, do not 
schedule a repeating task (in other words, in JS terms, use setTimeout, do 
not use setInterval)
 

> On Tuesday, September 20, 2016 at 2:38:11 AM UTC-7, Olar Andrei wrote:
>>
>> Hello,
>>
>> In my GWT application I have a messaging system integrated within. When a 
>> specific conversation gets opened, a query runs and selects all messages 
>> available for this conversation. From the same view you can reply to that 
>> conversation. When replying, the other user has to click a small refresh 
>> button (located on top, which agian gets all mesages from the DB running 
>> the same query from above) in order for the last message to appear.
>>
>> My question: How can I make that refresh automatically, so you don't have 
>> to click on the button in order to refresh the conversation. Like in FB, 
>> Messenger, etc, where you don't refresh the conversation and the messages 
>> keep coming without you having to do anything.
>>
>> Thanks in advance.
>>
>

-- 
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: 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 using a regular timer.  More 
timers, more problems.  If you must use a timer like object, I would 
suggest using gwt Scheduler instead.

On Tuesday, September 20, 2016 at 2:38:11 AM UTC-7, Olar Andrei wrote:
>
> Hello,
>
> In my GWT application I have a messaging system integrated within. When a 
> specific conversation gets opened, a query runs and selects all messages 
> available for this conversation. From the same view you can reply to that 
> conversation. When replying, the other user has to click a small refresh 
> button (located on top, which agian gets all mesages from the DB running 
> the same query from above) in order for the last message to appear.
>
> My question: How can I make that refresh automatically, so you don't have 
> to click on the button in order to refresh the conversation. Like in FB, 
> Messenger, etc, where you don't refresh the conversation and the messages 
> keep coming without you having to do anything.
>
> Thanks in advance.
>

-- 
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: 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;   
box-sizing: border-box;
width:100%;
height:100%; 
}


> On Sep 13, 2016, at 9:52 AM, Eddy  wrote:
> 
> 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.

The issue is not that the panels are incorrectly sized, but that the TextBox 
inside the panel does not expand to take up 100% of its container width, even 
though I call

pnl.setWidgetLeftWidth(tb, 0, Unit.PCT, 100, Unit.Pct);


Other non-textbox widgets seem to behave just fine.   Not sure what is 
different about TextBox. 

I did get it to behave the way I wanted using the following workaround… not 
fully programmatic, had to use CSS:

tb.setStylePrimaryName("LabelledTextBox");

and then putting this in the CSS:

.LabelledTextBox {
-webkit-box-sizing: border-box; 
-moz-box-sizing: border-box;   
box-sizing: border-box;
width:100%;
height:100%; 
}


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

-- 
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-contrib] Re: SNAPSHOT of 21 Sept breaks my build (invalid namespace

2016-09-21 Thread David
I'm using maven and I only have a dependency on 2.8.0-SNAPSHOT.
I have forced an update of the snapshots in an eclipse refresh and now it
seems to work.
I guess it was a local maven/nexus issue ?

I hope -strict becomes the default, why would you want to ignore errors ?
In most cases it is hiding some issue that will surface later.

On Wed, 21 Sep 2016 at 14:44, Thomas Broyer  wrote:

>
>
> On Wednesday, September 21, 2016 at 11:46:25 AM UTC+2, stuckagain wrote:
>>
>> It looks like some changes to JSInterop are breaking my build
>>
>> Compiling module com.swift.common.paging.PagingTest.JUnit
>>Ignored 1 unit with compilation errors in first pass.
>> Compile with -strict or with -logLevel set to TRACE or DEBUG to see all
>> errors.
>>Errors in com/google/gwt/emul/java/lang/String.java
>>   [ERROR] Line 165: 'String.NativeFunction
>> String.getFromCharCodeFunction()' has invalid namespace ''.
>>   [ERROR] Line 757: 'String.NativeString' has invalid namespace
>> ''.
>>
>
> Make (extra)sure you have the latest gwt-dev as well.
>
>
>> Additionally, how can I enable strict mode for GWTTestCases when using
>> tbroyer's maven plugin ?
>>
>
> This actually is not possible, and a limitation of GWT itself (JUnitShell
> doesn't support -strict or -failOnError).
>
> --
> 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/e3ffcc03-8b4b-4cc1-b9eb-936d0232dde3%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/CABrJHW2MpAJerjJkf1e9Ny-j2LuzrnNiz8QLWnjH%3DYbiibytKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 the polymer elements to your module. It is added automatically because 
> it is in the public folder in the package com.vaadin.polymer. One solution 
> I can think of is to rebuild the library and exclude it from the jar. Check 
> out this: 
> https://github.com/vaadin/gwt-api-generator/blob/master/gulpfile.js, you 
> get rid of the bower taks. Then, you can use a tool like vulcanize which 
> allows to import only the polymer elements that you need in one file: 
> https://www.polymer-project.org/1.0/docs/tools/optimize-for-production 
>
>
>
> Le mardi 20 septembre 2016 19:31:33 UTC+2, Tony a écrit :
>>
>>
>> Anybody knows of a way to reduce the number of files? I'm asking because 
>> I'm deploying to appengine which has a limit of 1 files per version, 
>> per release and with several GWT modules and locales I'm already going over 
>> the limit. 
>>
>> Thank you
>> Tony
>>
>

-- 
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: SNAPSHOT of 21 Sept breaks my build (invalid namespace

2016-09-21 Thread Thomas Broyer


On Wednesday, September 21, 2016 at 11:46:25 AM UTC+2, stuckagain wrote:
>
> It looks like some changes to JSInterop are breaking my build
>
> Compiling module com.swift.common.paging.PagingTest.JUnit
>Ignored 1 unit with compilation errors in first pass.
> Compile with -strict or with -logLevel set to TRACE or DEBUG to see all 
> errors.
>Errors in com/google/gwt/emul/java/lang/String.java
>   [ERROR] Line 165: 'String.NativeFunction 
> String.getFromCharCodeFunction()' has invalid namespace ''.
>   [ERROR] Line 757: 'String.NativeString' has invalid namespace 
> ''.
>

Make (extra)sure you have the latest gwt-dev as well.
 

> Additionally, how can I enable strict mode for GWTTestCases when using 
> tbroyer's maven plugin ?
>

This actually is not possible, and a limitation of GWT itself (JUnitShell 
doesn't support -strict or -failOnError). 

-- 
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/e3ffcc03-8b4b-4cc1-b9eb-936d0232dde3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 null value but not zero 
values.

Hope this helps if anybody ever reads this...

Le vendredi 19 juillet 2013 23:56:24 UTC+2, Pedro Lamarão a écrit :
>
>
>
> Em sexta-feira, 19 de julho de 2013 16h33min26s UTC-3, AJ escreveu:
>>
>> The AutoBean page 
>>  states
>> Goals
>>
>>- Decrease boilerplate in model-rich applications
>>- Support easy encoding of AutoBeans to JSON structures
>>- Provide support code for common operations on data-model objects
>>- *Usable in non-GWT (e.g. server) code*
>>
>> Of course, that could mean usable in non-GWT Java code, but it doesn't 
>> say that :)
>>
>
>
> It is usable, as intended.
> It is just not "decodable by unawares JSON parser" as you initially 
> expected.
> A Java machine is not needed to decode this representation.
> You just need to decode it according with its protocol.
>
> --
>  P. 
>

-- 
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] SNAPSHOT of 21 Sept breaks my build (invalid namespace

2016-09-21 Thread stuckagain
It looks like some changes to JSInterop are breaking my build

Compiling module com.swift.common.paging.PagingTest.JUnit
   Ignored 1 unit with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
   Errors in com/google/gwt/emul/java/lang/String.java
  [ERROR] Line 165: 'String.NativeFunction 
String.getFromCharCodeFunction()' has invalid namespace ''.
  [ERROR] Line 757: 'String.NativeString' has invalid namespace ''.

Additionally, how can I enable strict mode for GWTTestCases when using 
tbroyer's maven plugin ?

-- 
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/5e035a47-ff94-4bfa-869e-fee8fb1dd0fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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.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 Fekete
> wrote:
>
> 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 class DummyElement extends HTMLDivElement {...}
>
> I'm getting TypeError: Illegal invocation from the compiled js code when
> it tries to define the class (com.google.gwt.lang.Runtime.copyObjectProperties
> (Runtime.java:104)), while copying native properties from the extends js
> type's prototype. The property in this case is 'align' but it happens on
> other browser native properties too.
>
> Thanks for the help!
>
> All the best,
> Nandi.
>
> --
> 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.
>

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


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 class DummyElement extends HTMLDivElement {...}

I'm getting TypeError: Illegal invocation from the compiled js code when it 
tries to define the class (com.google.gwt.lang.Runtime.copyObjectProperties 
(Runtime.java:104)), while copying native properties from the extends js 
type's prototype. The property in this case is 'align' but it happens on 
other browser native properties too.

Thanks for the help!

All the best,
Nandi.

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