Re: jsinterop

2016-03-25 Thread Eric Nissan
Thank You.  I forgot about that doc you had written.  Helped me tons!

On Wednesday, March 16, 2016 at 11:26:07 AM UTC-4, Goktug Gokdogan wrote:
>
>
>
> On Fri, Mar 4, 2016 at 5:18 AM, Eric Nissan  > wrote:
>
>> I tried that also, but
>>
>> Data[] thing = JsonUtils.safeEval(response.getText()).cast();
>>
>> does not compile as Data[] is not a JavaScriptObject
>>
>
> Data[] thing =  (Data[])(Object) JsonUtils.safeEval(response.getText());
>
> should work. Also if you choose do define your own Json.parse accessor 
> ,
>  
> you won't need the cast:
>
> @JsMethod(namespace="JSON")
> private static native  T parse(String text);
>  
>
>>
>>
>> On Friday, March 4, 2016 at 2:02:34 AM UTC-5, Ümit Seren wrote:
>>>
>>> I think you you have to use a normal array: Data[] 
>>>
>>> Eric Nissan  schrieb am Fr., 4. März 2016, 04:35:
>>>
 Thanks a ton!  that worked.
 followup, how do I set a List?
 I tried to use JsArray but that requires a JavaScriptObject, which Data 
 is not.

 Thanks,
 Eric

 On Wednesday, March 2, 2016 at 9:36:43 AM UTC-5, Ümit Seren wrote:
>
> This works: 
>
> {'somecollection':['String1','String2'],'somestring':'text'}
>
> @JsType(isNative = true,namespace = JsPackage.GLOBAL,name="Object")public 
> interface Data {
> @JsProperty
> String[] getSomecollection();
> @JsProperty
> String getSomestring();
> }
>
> Data data = JsonUtils.safeEval(json).cast();
>
> On Tuesday, March 1, 2016 at 9:03:03 PM UTC+1, Eric Nissan wrote:
>
> sorry if this has been answered, I just started using jsinterop in gwt 
>> 2.8.  What is the recommended way populate data into a jsinterop 
>> javascript 
>> object from my server.  Assuming I have Json, do we still use 
>> OverlayTypes? 
>>  or is there a better way to do it?
>>
>> Always appreciative,
>> Eric
>>
> ​
>
 -- 
 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/nmBAOX4vcSo/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-we...@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-we...@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.


SL 1.7 out

2016-03-25 Thread George Georgovassilis
SL 1.7 is out. This is a maintenance release which updates dependencies to 
GWT 2.7.0 and Spring 4.2.5 

Repo: https://github.com/ggeorgovassilis/gwt-sl
User group: https://groups.google.com/forum/#!forum/gwt-sl

-- 
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: XML Parsing error with Chrome in Windows 10 ? :(

2016-03-25 Thread Ed
I just noticed I made a stupid mistake in the above post (mixing 2 issues 
:(.
I talk about Chrome, but that should be removed. I am not sure which 
browser is actually used, I just know the user agent that are unable to 
parse the xml correctly.
If you have any idea please let me know.
I use the xml header " in the xml 
files, so that should be fine. It seems like a modern IE browser, so I 
would expect it to be able to correctly load and parse the xml,.
- Ed

-- 
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 snapshot + GQuery snapshot : [ERROR] Errors in 'com/google/gwt/query/client/GQuery.java'

2016-03-25 Thread maticpetek
As always, Thomas thank you for this. I build Arcbees version and get 
gwtquery-1.5-SNAPSHOT.jar and it works.
Regards,
  Matic


On Friday, March 25, 2016 at 11:34:44 AM UTC+1, Thomas Broyer wrote:
>
> BTW, it looks like GQuery is actually developed at 
> https://github.com/ArcBees/gwtquery, https://github.com/gwtquery/gwtquery 
> hasn't been updated for more than a year now.
>
> On Friday, March 25, 2016 at 11:31:19 AM UTC+1, Thomas Broyer wrote:
>>
>> AIUI, it could be a type-inference glitch (line 226 is "return 
>> $(f.getElement())" and Function#getElement is a generic method) due to the 
>> update of JDT/ECJ.
>> Changing that line to "return $(f.getElement())" might fix it.
>>
>> On Friday, March 25, 2016 at 10:14:58 AM UTC+1, maticpetek wrote:
>>>
>>> Hi,
>>>   I have small GWT project that has use GWT 2.8 snapshot a couple of 
>>> months old. Now I try update to GWT 2.8 snapshot build 25.3.2016. I replace 
>>> all JAR files and build new GQuery from 
>>> https://github.com/gwtquery/gwtquery. When I run SDM I get a lot of 
>>> warnings :
>>>
>>> [java] Rebinding 
>>> com.google.gwt.useragent.client.UserAgentAsserter
>>>
>>>  [java]Checking rule >> class='com.google.gwt.query.client.plugins.effects.TransitionsAnimation.TransitionsClipAnimation'/>
>>>
>>>  [java]   [WARN] Unknown type 
>>> 'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
>>> deferred binding rule
>>>
>>>  [java]Checking rule >> class='com.google.gwt.query.client.plugins.effects.ClipAnimation'/>
>>>
>>>  [java]   [WARN] Unknown type 
>>> 'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
>>> deferred binding rule
>>>
>>>  [java]Checking rule >> class='com.google.gwt.editor.rebind.SimpleBeanEditorDriverGenerator'/>
>>>
>>>  [java]   [WARN] Detected warnings related to 
>>> 'com.google.gwt.editor.client.SimpleBeanEditorDriver'.   Are 
>>> validation-api-.jar and validation-api--sources.jar on 
>>> the classpath?
>>>
>>>  [java]   Specify -logLevel DEBUG to see all errors.
>>>
>>>  [java]   [WARN] Unknown type 
>>> 'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in deferred 
>>> binding rule
>>>
>>>  [java]  Computing all possible rebind results for 
>>> 'com.google.gwt.user.client.DocumentModeAsserter'
>>>
>>>  [java] Rebinding 
>>> com.google.gwt.user.client.DocumentModeAsserter
>>>
>>>  [java]Checking rule >> class='com.google.gwt.query.client.plugins.effects.TransitionsAnimation.TransitionsClipAnimation'/>
>>>
>>>  [java]   [WARN] Unknown type 
>>> 'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
>>> deferred binding rule
>>>
>>>  [java]Checking rule >> class='com.google.gwt.query.client.plugins.effects.ClipAnimation'/>
>>>
>>>  [java]   [WARN] Unknown type 
>>> 'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
>>> deferred binding rule
>>>
>>>
>>> And also errors :
>>>
>>>   [java]  [ERROR] Errors in 
>>> 'com/google/gwt/query/client/GQuery.java'
>>>
>>>  [java] [ERROR] Line 226: The method $(Element) is 
>>> ambiguous for the type GQuery
>>>
>>>  [java]  Tracing compile failure path for type 
>>> 'com.google.gwt.query.client.GQuery'
>>>
>>>  [java] [ERROR] Errors in 
>>> 'com/google/gwt/query/client/GQuery.java'
>>>
>>>  [java][ERROR] Line 226: The method $(Element) is 
>>> ambiguous for the type GQuery
>>>
>>>  [java] [ERROR] Errors in 
>>> 'com/google/gwt/query/client/LazyGQuery.java'
>>>
>>>  [java][ERROR] 
>>> com.google.gwt.query.client.GQuery.Offset cannot be resolved to a type
>>>
>>>  [java] [ERROR] Errors in 
>>> 'com/google/gwt/query/client/plugins/Effects.java'
>>>
>>>  [java][ERROR] com.google.gwt.query.client.GQuery 
>>> cannot be resolved to a type
>>>
>>>  [java] [ERROR] Errors in 
>>> 'com/google/gwt/query/client/plugins/Plugin.java'
>>>
>>>  [java][ERROR] com.google.gwt.query.client.GQuery 
>>> cannot be resolved to a type
>>>
>>>  [java] [ERROR] Errors in 
>>> 'com/google/gwt/query/client/plugins/Events.java'
>>>
>>>  [java][ERROR] com.google.gwt.query.client.GQuery 
>>> cannot be resolved to a type
>>>
>>>  [java] [ERROR] Errors in 
>>> 'com/google/gwt/query/client/impl/AttributeImpl.java'
>>>
>>>  [java][ERROR] com.google.gwt.query.client.GQuery 
>>> cannot be resolved to a type
>>>
>>>  [java] [ERROR] Errors in 
>>> 'com/google/gwt/query/client/plugins/Widgets.java'
>>>
>>>  [java][ERROR] com.google.gwt.query.client.GQuery 
>>> cannot be resolved to a

Re: GWT Spring - WebApplicationInitializer does not start

2016-03-25 Thread Thomas Broyer


On Thursday, March 24, 2016 at 11:08:07 PM UTC+1, Łukasz Drzyzga wrote:
>
> Hi, I want to configure Stomp MessageBroker by programmaticaly java code 
> using Spring annotations in GWT 2.7 project but I noticed that method 
> onStartup is not executed :/ I used system output print, logger and 
> breakpoints and it's confirmed. I don't know what the problem? Maybe Jetty 
> doesn't support this configuration method?
> I changed version attribute in web.xml to 3.0 and I use javax servlet api 
> 3.1.0. I'm using Eclipse and I also set project as Spring nature and I 
> switch on scanning @Configuration etc. annotations.
>

GWT 2.7 doesn't support Servlet 3's ServletContainerInitializer; this has 
been changed on master for the next 2.8 release (i.e. not present in 2.8 
beta1) 

-- 
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 snapshot + GQuery snapshot : [ERROR] Errors in 'com/google/gwt/query/client/GQuery.java'

2016-03-25 Thread Thomas Broyer
BTW, it looks like GQuery is actually developed 
at https://github.com/ArcBees/gwtquery, https://github.com/gwtquery/gwtquery 
hasn't been updated for more than a year now.

On Friday, March 25, 2016 at 11:31:19 AM UTC+1, Thomas Broyer wrote:
>
> AIUI, it could be a type-inference glitch (line 226 is "return 
> $(f.getElement())" and Function#getElement is a generic method) due to the 
> update of JDT/ECJ.
> Changing that line to "return $(f.getElement())" might fix it.
>
> On Friday, March 25, 2016 at 10:14:58 AM UTC+1, maticpetek wrote:
>>
>> Hi,
>>   I have small GWT project that has use GWT 2.8 snapshot a couple of 
>> months old. Now I try update to GWT 2.8 snapshot build 25.3.2016. I replace 
>> all JAR files and build new GQuery from 
>> https://github.com/gwtquery/gwtquery. When I run SDM I get a lot of 
>> warnings :
>>
>> [java] Rebinding 
>> com.google.gwt.useragent.client.UserAgentAsserter
>>
>>  [java]Checking rule > class='com.google.gwt.query.client.plugins.effects.TransitionsAnimation.TransitionsClipAnimation'/>
>>
>>  [java]   [WARN] Unknown type 
>> 'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
>> deferred binding rule
>>
>>  [java]Checking rule > class='com.google.gwt.query.client.plugins.effects.ClipAnimation'/>
>>
>>  [java]   [WARN] Unknown type 
>> 'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
>> deferred binding rule
>>
>>  [java]Checking rule > class='com.google.gwt.editor.rebind.SimpleBeanEditorDriverGenerator'/>
>>
>>  [java]   [WARN] Detected warnings related to 
>> 'com.google.gwt.editor.client.SimpleBeanEditorDriver'.   Are 
>> validation-api-.jar and validation-api--sources.jar on 
>> the classpath?
>>
>>  [java]   Specify -logLevel DEBUG to see all errors.
>>
>>  [java]   [WARN] Unknown type 
>> 'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in deferred 
>> binding rule
>>
>>  [java]  Computing all possible rebind results for 
>> 'com.google.gwt.user.client.DocumentModeAsserter'
>>
>>  [java] Rebinding 
>> com.google.gwt.user.client.DocumentModeAsserter
>>
>>  [java]Checking rule > class='com.google.gwt.query.client.plugins.effects.TransitionsAnimation.TransitionsClipAnimation'/>
>>
>>  [java]   [WARN] Unknown type 
>> 'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
>> deferred binding rule
>>
>>  [java]Checking rule > class='com.google.gwt.query.client.plugins.effects.ClipAnimation'/>
>>
>>  [java]   [WARN] Unknown type 
>> 'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
>> deferred binding rule
>>
>>
>> And also errors :
>>
>>   [java]  [ERROR] Errors in 
>> 'com/google/gwt/query/client/GQuery.java'
>>
>>  [java] [ERROR] Line 226: The method $(Element) is 
>> ambiguous for the type GQuery
>>
>>  [java]  Tracing compile failure path for type 
>> 'com.google.gwt.query.client.GQuery'
>>
>>  [java] [ERROR] Errors in 
>> 'com/google/gwt/query/client/GQuery.java'
>>
>>  [java][ERROR] Line 226: The method $(Element) is 
>> ambiguous for the type GQuery
>>
>>  [java] [ERROR] Errors in 
>> 'com/google/gwt/query/client/LazyGQuery.java'
>>
>>  [java][ERROR] 
>> com.google.gwt.query.client.GQuery.Offset cannot be resolved to a type
>>
>>  [java] [ERROR] Errors in 
>> 'com/google/gwt/query/client/plugins/Effects.java'
>>
>>  [java][ERROR] com.google.gwt.query.client.GQuery 
>> cannot be resolved to a type
>>
>>  [java] [ERROR] Errors in 
>> 'com/google/gwt/query/client/plugins/Plugin.java'
>>
>>  [java][ERROR] com.google.gwt.query.client.GQuery 
>> cannot be resolved to a type
>>
>>  [java] [ERROR] Errors in 
>> 'com/google/gwt/query/client/plugins/Events.java'
>>
>>  [java][ERROR] com.google.gwt.query.client.GQuery 
>> cannot be resolved to a type
>>
>>  [java] [ERROR] Errors in 
>> 'com/google/gwt/query/client/impl/AttributeImpl.java'
>>
>>  [java][ERROR] com.google.gwt.query.client.GQuery 
>> cannot be resolved to a type
>>
>>  [java] [ERROR] Errors in 
>> 'com/google/gwt/query/client/plugins/Widgets.java'
>>
>>  [java][ERROR] com.google.gwt.query.client.GQuery 
>> cannot be resolved to a type
>>
>>  [java] [ERROR] Errors in 
>> 'com/google/gwt/query/client/plugins/QueuePlugin.java'
>>
>>  [java][ERROR] com.google.gwt.query.client.GQuery 
>> cannot be resolved to a type
>>
>>  [java]  Computing all possible rebind results for 
>> 'com.google.gwt.query.client.Conso

Re: GWT 2.8 snapshot + GQuery snapshot : [ERROR] Errors in 'com/google/gwt/query/client/GQuery.java'

2016-03-25 Thread Thomas Broyer
AIUI, it could be a type-inference glitch (line 226 is "return 
$(f.getElement())" and Function#getElement is a generic method) due to the 
update of JDT/ECJ.
Changing that line to "return $(f.getElement())" might fix it.

On Friday, March 25, 2016 at 10:14:58 AM UTC+1, maticpetek wrote:
>
> Hi,
>   I have small GWT project that has use GWT 2.8 snapshot a couple of 
> months old. Now I try update to GWT 2.8 snapshot build 25.3.2016. I replace 
> all JAR files and build new GQuery from 
> https://github.com/gwtquery/gwtquery. When I run SDM I get a lot of 
> warnings :
>
> [java] Rebinding 
> com.google.gwt.useragent.client.UserAgentAsserter
>
>  [java]Checking rule  class='com.google.gwt.query.client.plugins.effects.TransitionsAnimation.TransitionsClipAnimation'/>
>
>  [java]   [WARN] Unknown type 
> 'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
> deferred binding rule
>
>  [java]Checking rule  class='com.google.gwt.query.client.plugins.effects.ClipAnimation'/>
>
>  [java]   [WARN] Unknown type 
> 'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
> deferred binding rule
>
>  [java]Checking rule  class='com.google.gwt.editor.rebind.SimpleBeanEditorDriverGenerator'/>
>
>  [java]   [WARN] Detected warnings related to 
> 'com.google.gwt.editor.client.SimpleBeanEditorDriver'.   Are 
> validation-api-.jar and validation-api--sources.jar on 
> the classpath?
>
>  [java]   Specify -logLevel DEBUG to see all errors.
>
>  [java]   [WARN] Unknown type 
> 'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in deferred 
> binding rule
>
>  [java]  Computing all possible rebind results for 
> 'com.google.gwt.user.client.DocumentModeAsserter'
>
>  [java] Rebinding 
> com.google.gwt.user.client.DocumentModeAsserter
>
>  [java]Checking rule  class='com.google.gwt.query.client.plugins.effects.TransitionsAnimation.TransitionsClipAnimation'/>
>
>  [java]   [WARN] Unknown type 
> 'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
> deferred binding rule
>
>  [java]Checking rule  class='com.google.gwt.query.client.plugins.effects.ClipAnimation'/>
>
>  [java]   [WARN] Unknown type 
> 'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
> deferred binding rule
>
>
> And also errors :
>
>   [java]  [ERROR] Errors in 
> 'com/google/gwt/query/client/GQuery.java'
>
>  [java] [ERROR] Line 226: The method $(Element) is 
> ambiguous for the type GQuery
>
>  [java]  Tracing compile failure path for type 
> 'com.google.gwt.query.client.GQuery'
>
>  [java] [ERROR] Errors in 
> 'com/google/gwt/query/client/GQuery.java'
>
>  [java][ERROR] Line 226: The method $(Element) is 
> ambiguous for the type GQuery
>
>  [java] [ERROR] Errors in 
> 'com/google/gwt/query/client/LazyGQuery.java'
>
>  [java][ERROR] 
> com.google.gwt.query.client.GQuery.Offset cannot be resolved to a type
>
>  [java] [ERROR] Errors in 
> 'com/google/gwt/query/client/plugins/Effects.java'
>
>  [java][ERROR] com.google.gwt.query.client.GQuery 
> cannot be resolved to a type
>
>  [java] [ERROR] Errors in 
> 'com/google/gwt/query/client/plugins/Plugin.java'
>
>  [java][ERROR] com.google.gwt.query.client.GQuery 
> cannot be resolved to a type
>
>  [java] [ERROR] Errors in 
> 'com/google/gwt/query/client/plugins/Events.java'
>
>  [java][ERROR] com.google.gwt.query.client.GQuery 
> cannot be resolved to a type
>
>  [java] [ERROR] Errors in 
> 'com/google/gwt/query/client/impl/AttributeImpl.java'
>
>  [java][ERROR] com.google.gwt.query.client.GQuery 
> cannot be resolved to a type
>
>  [java] [ERROR] Errors in 
> 'com/google/gwt/query/client/plugins/Widgets.java'
>
>  [java][ERROR] com.google.gwt.query.client.GQuery 
> cannot be resolved to a type
>
>  [java] [ERROR] Errors in 
> 'com/google/gwt/query/client/plugins/QueuePlugin.java'
>
>  [java][ERROR] com.google.gwt.query.client.GQuery 
> cannot be resolved to a type
>
>  [java]  Computing all possible rebind results for 
> 'com.google.gwt.query.client.Console'
>
> Any idea what to look would be more then appreciate.
> Regards,
>   Matic 
>
>

-- 
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@go

GWT 2.8 snapshot + GQuery snapshot : [ERROR] Errors in 'com/google/gwt/query/client/GQuery.java'

2016-03-25 Thread maticpetek
Hi,
  I have small GWT project that has use GWT 2.8 snapshot a couple of months 
old. Now I try update to GWT 2.8 snapshot build 25.3.2016. I replace all 
JAR files and build new GQuery from https://github.com/gwtquery/gwtquery. 
When I run SDM I get a lot of warnings :

[java] Rebinding 
com.google.gwt.useragent.client.UserAgentAsserter

 [java]Checking rule 

 [java]   [WARN] Unknown type 
'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
deferred binding rule

 [java]Checking rule 

 [java]   [WARN] Unknown type 
'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
deferred binding rule

 [java]Checking rule 

 [java]   [WARN] Detected warnings related to 
'com.google.gwt.editor.client.SimpleBeanEditorDriver'.   Are 
validation-api-.jar and validation-api--sources.jar on 
the classpath?

 [java]   Specify -logLevel DEBUG to see all errors.

 [java]   [WARN] Unknown type 
'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in deferred 
binding rule

 [java]  Computing all possible rebind results for 
'com.google.gwt.user.client.DocumentModeAsserter'

 [java] Rebinding 
com.google.gwt.user.client.DocumentModeAsserter

 [java]Checking rule 

 [java]   [WARN] Unknown type 
'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
deferred binding rule

 [java]Checking rule 

 [java]   [WARN] Unknown type 
'com.google.gwt.query.client.plugins.Effects.GQAnimation' specified in 
deferred binding rule


And also errors :

  [java]  [ERROR] Errors in 
'com/google/gwt/query/client/GQuery.java'

 [java] [ERROR] Line 226: The method $(Element) is 
ambiguous for the type GQuery

 [java]  Tracing compile failure path for type 
'com.google.gwt.query.client.GQuery'

 [java] [ERROR] Errors in 
'com/google/gwt/query/client/GQuery.java'

 [java][ERROR] Line 226: The method $(Element) is 
ambiguous for the type GQuery

 [java] [ERROR] Errors in 
'com/google/gwt/query/client/LazyGQuery.java'

 [java][ERROR] 
com.google.gwt.query.client.GQuery.Offset cannot be resolved to a type

 [java] [ERROR] Errors in 
'com/google/gwt/query/client/plugins/Effects.java'

 [java][ERROR] com.google.gwt.query.client.GQuery 
cannot be resolved to a type

 [java] [ERROR] Errors in 
'com/google/gwt/query/client/plugins/Plugin.java'

 [java][ERROR] com.google.gwt.query.client.GQuery 
cannot be resolved to a type

 [java] [ERROR] Errors in 
'com/google/gwt/query/client/plugins/Events.java'

 [java][ERROR] com.google.gwt.query.client.GQuery 
cannot be resolved to a type

 [java] [ERROR] Errors in 
'com/google/gwt/query/client/impl/AttributeImpl.java'

 [java][ERROR] com.google.gwt.query.client.GQuery 
cannot be resolved to a type

 [java] [ERROR] Errors in 
'com/google/gwt/query/client/plugins/Widgets.java'

 [java][ERROR] com.google.gwt.query.client.GQuery 
cannot be resolved to a type

 [java] [ERROR] Errors in 
'com/google/gwt/query/client/plugins/QueuePlugin.java'

 [java][ERROR] com.google.gwt.query.client.GQuery 
cannot be resolved to a type

 [java]  Computing all possible rebind results for 
'com.google.gwt.query.client.Console'

Any idea what to look would be more then appreciate.
Regards,
  Matic 

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

2016-03-25 Thread DavidN
Nice work,

I prefer React over Angular it is so much cleaner in design. I will 
certainly take a look at what you have produced, since me too I am trying 
to find solutions for a post GWT Widget/UiBinder world.

For one component that we have, which generates a form driven by XSchema's 
I already moved to using JsInterop and Elemental as the basis and I was 
suprised that it was actually easy to move away from Widgets. 
The combination with Lambda's makes the code actually much cleaner and now 
I can do proper unittesting since all the JsInterop stuff can be easily 
mocked.

On Thursday, March 24, 2016 at 8:49:10 PM UTC+1, Paul Stockley wrote:
>
> We currently have a large GWT application that we have been working on for 
> the last 4 years. We use Uibinder and Widgets very
>
>  heavily, although we have our own Widget set and RPC mechanism. The 
> application is being constantly expanded and realistically 
>
> won’t be fully rewritten for 8-10 years. Given the news about J2CL not 
> supporting widgets, I have been thinking about how we could 
>
> migrate to a world without widgets on an incremental basis.  
>
>  
>
> In parallel, I have also being exploring writing native mobile apps. We 
> tried the mobile web but it wasn’t great and we really needed
>
> hardware integration for NFC and total offline capabilities. Which brings 
> us React. I found React Native and started researching 
>
> and playing around. I have to say I am very impressed. In my mind it is a 
> game changer. They are getting close to allowing one code 
>
> base to support iOS, Android and the Web with only about 10-20% custom 
> code for each platform. 
>
>  
>
> The more I played with React Native, the more I liked the React 
> declarative model for defining UI’s. I started thinking that React 
>
> would be ideal for incrementally embedding within an existing GWT 
> application. Facebook designed it so they could incrementally
>
> role it out into their existing Web application. When GWT 2.8 beta came 
> out, I wanted something to try the new JsInterop out on.
>
> React seemed like a good candidate. After a couple of weeks of 
> experimenting, I have a working proof of concept for React. I 
>
> have to say it was a real challenge and really pushed the capabilities of 
> JsInterop. I had to do some javascript hacking to get it 
>
> to work. My goal was to create an interface that was as close to 
> JavaScript as possible. That way you could use the many React
>
> tutorials and apply them to writing GWT React code without some huge 
> mental translation.
>
>  
>
> I decided to try and port http://todomvc.com/examples/react/#/ to Java. 
> The reason for this was so I could have a direct comparison 
>
> between the Java and Javascript code. I have implemented enough of the 
> React API to get this working. In addition, I also integrated 
>
> a 3rd party React component called React Router (
> https://github.com/reactjs/react-router). This is pretty much the de 
> facto standard 
>
> for routing in the React world. This proved that I could consume React 
> components written by other people. Overall I am pleased with 
>
> how it turned out. I find the java version easier to follow, especially 
> since the Prop types are explicit. It would be nice to support JSX
>
>  instead of the legacy createElement interface. However, it isn’t 
> terrible. The Java version was 465 lines in total vs 419 for the original 
>
> JavaScript code. If you take out the import statements which I don’t 
> really count because the IDE creates them for you, the Java version 
>
> was actually only 414 lines. You can take a look at the code here :
>
>  
>
>
> https://drive.google.com/folderview?id=0Bxp8vLBG2ol3NjAtRmdjMDhlc0k&usp=sharing
>
>  
>
> At this point I am about 80% sure what I have created could become a 
> viable production solution. The next steps I want to do are:
>
>
>
>1. Finish the API
>2. Test embedding Gwt React within an existing GWT Widget based 
>application.
>3. Build an API for Redux (https://github.com/reactjs/redux) and React 
>Redux (https://github.com/reactjs/react-redux) which is becoming the 
>de facto standard for the MC in MVC. I will probably re-implement todomvc 
>using this. 
>
>  
>
> If I don’t hit any roadblocks, I will either publish to Github or make the 
> source publicly available. I haven’t made my mind up on which approach I 
> will take.
>

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