Re: GWT 2.8.1 release

2017-04-27 Thread Eric Nissan
I was running 2.8.0, everything was fine.  now that I upgraded to 2.8.1, my 
gwt unit tests are failing:  Anything I need to add?

java.lang.NoClassDefFoundError: 
com/google/gwt/dev/util/arg/ArgHandlerFilterJsInteropExports
at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:684)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:672)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:421)
at junit.framework.TestCase.runBare(TestCase.java:141)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:129)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:247)
at junit.framework.TestSuite.runTest(TestSuite.java:252)
at junit.framework.TestSuite.run(TestSuite.java:247)
at junit.framework.TestSuite.runTest(TestSuite.java:252)
at junit.framework.TestSuite.run(TestSuite.java:247)
at 
org.codehaus.mojo.gwt.test.MavenTestRunner.doRun(MavenTestRunner.java:105)
at junit.textui.TestRunner.start(TestRunner.java:183)
at 
org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java:63)
Caused by: java.lang.ClassNotFoundException: 
com.google.gwt.dev.util.arg.ArgHandlerFilterJsInteropExports
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 16 more




On Tuesday, April 25, 2017 at 3:30:21 PM UTC-4, Colin Alworth wrote:
>
> I'm very pleased to announce the release of GWT 2.8.1. This contains many 
> bugfixes and a few enhancements to JsInterop.
>
>
> Highlights from release notes:
>
>- 
>
>Elemental1's JSON parser now correctly throws an exception when a 
>string, object, or array is not correctly ended.
>- 
>
>Support filtering JsInterop types for export, with whitelist/blacklist 
>and wildcards. The -generateJsInteropExport flag is still used to 
>enable the feature, but -includeJsInteropExport and 
>-excludeJsInteropExport now exist to specify packages with optional * 
>wildcards. Later arguments and patterns override earlier ones.
>- 
>
>Support "*" (any) and "?" (unknown) types as a JsType native name. The 
>"Unknown" type can be preferred over Object if the type is unknown, while 
>"any" is preferred supertype of any JS type, including primitives.
>
>
> Additionally, this supports the recent beta release of jsinterop.base and 
> elemental2, available from Maven Central.
>
>
> Please check out the full release notes 
> , then 
> download the release zip  or update your project 
> to get version 2.8.1 from Maven Central.
>

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

2016-10-24 Thread Eric Nissan
Can someone confirm?  are we able to use Guava with this version?  20-rc1?

On Friday, October 21, 2016 at 3:21:41 PM UTC-4, Daniel Kurka wrote:
>
> Hi all,
>
> I am very happy to announce GWT 2.8.0 on behalf of the GWT steering 
> committee and the GWT team at Google.
>
> You can download the release from http://www.gwtproject.org/download.html 
> or from maven central.
>
> The release notes can be found at 
> http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_0
>
> Daniel,
> on behalf of the GWT team
>

-- 
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 and Oracle

2016-09-30 Thread Eric Nissan
Hey just curious, does Oracle contribute to GWT at all?  I know they are in 
a battle with Google over Java (android), but one would think they could 
put that aside and contribute as GWT really does encourage Java usage.

-- 
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: 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 
> <https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/edit#heading=h.on4lqxfkw61v>,
>  
> 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.


Re: jsinterop

2016-03-04 Thread Eric Nissan
I don't know if this is the best way, but I got it to work by making my own 
implementation of  jsArray.

I changed the generic definition from 

public class JsArray extends JavaScriptObject {


to 

public class JsArray extends JavaScriptObject

which worked with my jsinterop interface.

the problem I see is that although the documentation says an interface 
market JsType will be treated as a JavaScriptObject when casting, that does 
not help for using it in place of a generic.

I don't know what will blow up from this, but it seems to work for me.  If 
there is a better way to do this, I am all ears :)

Thanks,
Eric

On Friday, March 4, 2016 at 9:36:44 AM UTC-5, Ümit Seren wrote:
>
> AFAIK you can't serialize an array directly. You have to put it into a 
> wrapper object. 
>
> On Fri, Mar 4, 2016 at 2:18 PM Eric Nissan  > wrote:
>
>> I tried that also, but
>>
>> Data[] thing = JsonUtils.safeEval(response.getText()).cast();
>>
>> does not compile as Data[] is not a JavaScriptObject
>>
>>
>>
>>
>> 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 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-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: jsinterop

2016-03-04 Thread Eric Nissan
I tried that also, but

Data[] thing = JsonUtils.safeEval(response.getText()).cast();

does not compile as Data[] is not a JavaScriptObject




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-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: jsinterop

2016-03-03 Thread Eric Nissan
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 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.


jsinterop

2016-03-01 Thread Eric Nissan
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 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 3.0 Question

2016-01-11 Thread Eric Nissan
I keep reading that GWT 3.0 will not have uibinder or widgets.  I don't 
understand what that means for future versions Wwill all my existing code 
that uses uiBinder, and all my widgets cease to work with GWT 3.0?  Is 
there anything I can watch/read that explains what we should expect in the 
future?

Thanks,
Eric

-- 
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: JSNI Question

2016-01-09 Thread Eric Nissan
I never got a response to this.  Anyone know if this is an issue?

Any help would be appreciated.

Thanks,
Eric

On Tuesday, December 29, 2015 at 5:55:28 PM UTC-5, Eric Nissan wrote:
>
> I am using JSNI to reference a javascript library.  My initial call is 
> fine, but then somewhere down they chain I get a null pointer inside the 
> javascript library.
>
> I am referencing the library like this
>
> $wnd.TradingView.widget({});
>
> which is a valid reference.  
>
> This then seems to load in other javascript files.  the object it loads 
> are not referenced as $wnd (because that is a GWT thing), and I eventually 
> get a "cannot read property 'init' of undefined".
>
> My question is, could this be causing my problems?  
> for example I am getting this error on this call.  Is this because it is 
> not prefaced with $wnd?
> $.i18n.init({})
>

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


JSNI Question

2015-12-29 Thread Eric Nissan
I am using JSNI to reference a javascript library.  My initial call is 
fine, but then somewhere down they chain I get a null pointer inside the 
javascript library.

I am referencing the library like this

$wnd.TradingView.widget({});

which is a valid reference.  

This then seems to load in other javascript files.  the object it loads are 
not referenced as $wnd (because that is a GWT thing), and I eventually get 
a "cannot read property 'init' of undefined".

My question is, could this be causing my problems?  
for example I am getting this error on this call.  Is this because it is 
not prefaced with $wnd?
$.i18n.init({})

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