Re: Dear GWT

2016-05-11 Thread Frank
And I am sure that if that is the case you are doing something wrong.
I have been using GWT2.8.0beta1 from day 1 it was released and I am 100% 
sure I don't have to restart SDM when a class was added.

Op woensdag 11 mei 2016 23:17:18 UTC+2 schreef Ali Akhtar:
>
> I'm sure. In 2.8 beta1, everytime a new class is added, or a new uiBinder 
> file, it requires a restart in order for it to be detected and not get a 
> weird error like $mg_1 not found
>

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


Sourcemaps with sso linker

2016-05-11 Thread Dmitry Skavish
hi everybody,

I could not figure out how do I build my app and generate sourcemap
url into js file along with all the sources. Anybody can shed some
light here?

That's what I did:

1. I added 
to my module and now I have sourcemaps generated.

2. Now if I want to use it I need to manually add the path to the map
to my generated js file, something like that:

//# 
sourceMappingURL=../WEB-INF/deploy/playerDebug/symbolMaps/AE31C96E973F2818434AA5B24477E385_sourceMap0.json

3. Adding the path gives me the mapping to java classes, but since
there is no sources available it's kind of useless. How do I specify
path to the sources? Is there anyway I can add it to js file?

Is there anyway to automate step 2?

Note that I am just opening the module's html in browser as local
file, not via webserver.

thanks!

-- 
Dmitry Skavish

-- 
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 replacement in 2.8?

2016-05-11 Thread Ali Akhtar
Is Jsni going to be deprecated / removed?

On Thu, May 12, 2016 at 3:23 AM, Jens  wrote:

>
> How much of that has been implemented?
>>
>
> Everything in the 1.0 spec should work in 2.8 SNAPSHOT.
>
> -- J.
>
>
> --
> 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/FbwB4x8jSE8/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.
>

-- 
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 replacement in 2.8?

2016-05-11 Thread Jens


> How much of that has been implemented?
>

Everything in the 1.0 spec should work in 2.8 SNAPSHOT. 

-- 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: Jsni replacement in 2.8?

2016-05-11 Thread Ali Akhtar
How much of that has been implemented? Are there any examples of it working
anywhere?

On Thu, May 12, 2016 at 2:44 AM, Michael Zhou 
wrote:

> Take a look at the official JsInterop 1.0 specs:
> https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/view
>
> On Wednesday, May 11, 2016 at 5:27:04 PM UTC-4, Ali Akhtar wrote:
>>
>> In GWT 2.8, what should be used in place of Jsni methods? Such as for
>> integrating a 3rd party js library? There was very sparse documentation
>> available for JsInterop last time I checked, are there any more docs
>> available now?
>>
> --
> 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/FbwB4x8jSE8/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.
>

-- 
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 replacement in 2.8?

2016-05-11 Thread Michael Zhou
Take a look at the official JsInterop 1.0 
specs: 
https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/view

On Wednesday, May 11, 2016 at 5:27:04 PM UTC-4, Ali Akhtar wrote:
>
> In GWT 2.8, what should be used in place of Jsni methods? Such as for 
> integrating a 3rd party js library? There was very sparse documentation 
> available for JsInterop last time I checked, are there any more docs 
> available now?
>

-- 
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 replacement in 2.8?

2016-05-11 Thread Ali Akhtar
In GWT 2.8, what should be used in place of Jsni methods? Such as for 
integrating a 3rd party js library? There was very sparse documentation 
available for JsInterop last time I checked, are there any more docs 
available now?

-- 
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: create cast native types: JavaScriptObject

2016-05-11 Thread Vassilis Virvilis
Thanks Paul,

In retrospect this is obvious which means I would never figured it out by
myself :-)

I will test it tomorrow.

Shouldn't this trick documented in
https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0

Thanks again.


On Wed, May 11, 2016 at 6:54 PM, Paul Stockley  wrote:

> Declare your objects as
>
> @JsType(isNative = true, namespace=JsPackage.GLOBAL, name="Object")
>
> You can then just use new.
>
>
> On Wednesday, May 11, 2016 at 11:16:07 AM UTC-4, Vassilis Virvilis wrote:
>>
>> Hi,
>>
>>
>> I am trying to construct with jsinterop a json config object for
>> datatables. Here is an example
>>
>> var table = $wnd.$(table_selector).DataTable({
>> "dom" : 'lf<"dateRange"><"pull-right"B>rtip',
>> "serverSide" : true,
>> "ajax" : {
>> "url" : ajax_url,
>> "dataSrc" : "",
>> "data" : {
>> "date" : "date_range"
>> }
>> },
>> "columns" : headers,
>> "buttons" : [ 'copyHtml5' ]
>> });
>>
>> The idea is to use something like that
>>
>>@JsType(isNative = true)
>> public static class Config {
>>
>> @JsType(isNative = true)
>> public static class Ajax {
>>
>> @JsType(isNative = true)
>> public static class Data {
>> String date;
>>
>> @JsOverlay
>> public static Data create() {
>> final Data data = createDataObject();
>> data.date = "date_range";
>> return data;
>> }
>> }
>>
>> String url;
>> String dataSrc;
>> Data data;
>>
>> @JsOverlay
>> public static Ajax create(String url) {
>> final Ajax ajax = createAjaxObject();
>> ajax.url = url;
>> ajax.dataSrc = "";
>> ajax.data = Data.create();
>> return ajax;
>> }
>> }
>>
>> String dom;
>> boolean serverSide;
>> Ajax ajax;
>> JsArray columns;
>> JsArrayString buttons;
>>
>> @JsOverlay
>> public static Config create(String url,
>> JsArray headers) {
>> final Config config = createConfigObject();
>> config.dom = "lf<'dateRange'><'pull-right'B>rtip";
>> config.serverSide = true;
>> config.ajax = Ajax.create(url);
>> config.columns = headers;
>> config.buttons = createJsArrayString("copyHtml5");
>> return config;
>> }
>> }
>>
>> Something similar (but simpler) is done for vue.js here
>> https://gist.github.com/bduisenov/2c5ef0e4ff4874f2c5d2
>>
>> Unfortunately the Datatables are picky and they are poking (iterating)
>> the Config object in the wrong way and they hit the __proto__ and
>> constructor members and the script crashes.
>>
>> So I had to specify  @JsType(isNative = true) to match the naming and a
>> way to start from a plain javascript plain object {}
>>
>> The question is how to create and cast in a generic way a {} in my native
>> objects i.e.
>> Config, Config.Ajax, Config.Ajax.Data?
>>
>> I tried
>> 1) Config config = new Config(); // protected empty constructor - fails
>> at runtime
>>
>> 2) Config config = createConfig();
>>
>> private static native Config createConfigObject()/*-{
>> return {};
>> }-*/;
>>
>> This works but I have to create one static function for every native Type
>> I need to create;
>>
>> 3) Config config = createObject();
>>
>> private static native  T createObject()/*-{
>> return {};
>> }-*/;
>>
>> fails at runtime
>>
>> 4) Config extends JavascriptObject and use .cast() - fails at compile time
>>
>> Is any of the 1, 3, 4 supposed to work?
>>
>>Vassilis
>>
>>
>>
>>
>>
>>
>> --
>> Vassilis Virvilis
>>
> --
> 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.
>



-- 
Vassilis Virvilis

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

Re: Dear GWT

2016-05-11 Thread Ali Akhtar
I'm sure. In 2.8 beta1, everytime a new class is added, or a new uiBinder 
file, it requires a restart in order for it to be detected and not get a 
weird error like $mg_1 not found

-- 
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: Dear GWT

2016-05-11 Thread Vassilis Virvilis
Are you sure?

It doesn't do that for me. I need to restart sdm when the classpath changes
but that's a rare event.

   Vassilis

On Thu, May 12, 2016 at 12:12 AM, Ali Akhtar  wrote:

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



-- 
Vassilis Virvilis

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


Dear GWT

2016-05-11 Thread Ali Akhtar




-- 
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: MaterialSearch - issues

2016-05-11 Thread Mike Warne
*** Did I post the issues in the wrong forum? ***

Yes, this is probably the wrong forum.
GWT-MaterialDesign is not part of GWT.

https://gitter.im/GwtMaterialDesign/gwt-material

MIke.

-- 
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: MaterialModal in gwt-material-1.5.0.jar

2016-05-11 Thread Mike Warne
You should probably try posting the the GWT-MaterialDesign Gitter forum:

The developers, and other users should be able to respond to your issue.

https://gitter.im/GwtMaterialDesign/gwt-material


Mike.

 

-- 
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 Material Design Addins

2016-05-11 Thread Paul Stockley
I would post to either the G+ group 
(https://plus.google.com/communities/108005250093449814286) or gitter 
(https://gitter.im/GwtMaterialDesign/gwt-material?source=suggested-menu)

On Wednesday, May 11, 2016 at 12:07:09 PM UTC-4, Velusamy Velu wrote:
>
> I followed these steps to use the MaterialWindow addin from the 
> gwt-material-addins-1.5.0.jar in an application.
>
>1. Downloaded gwt-material-addins-1.5.0.jar and added to application's 
>build path in Eclipse.
>2. Added the line  in the ..gwt.xml
>3. Added the line 
>xmlns:ma="urn:import:gwt.material.design.addins.client" in the 
>UiBinder.
>4. Then started adding the line "window" width="50%" title="Documents"> in the UiBinder 
>
> But MaterialWindow is not visible to the UiBinder.  Any idea what could be 
> wrong?
>

-- 
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 Material Design Addins

2016-05-11 Thread Velusamy Velu
I followed these steps to use the MaterialWindow addin from the 
gwt-material-addins-1.5.0.jar in an application.

   1. Downloaded gwt-material-addins-1.5.0.jar and added to application's 
   build path in Eclipse.
   2. Added the line  in the ..gwt.xml
   3. Added the line xmlns:ma="urn:import:gwt.material.design.addins.client"
in the UiBinder.
   4. Then started adding the line  in the UiBinder 
   
But MaterialWindow is not visible to the UiBinder.  Any idea what could be 
wrong?

-- 
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: create cast native types: JavaScriptObject

2016-05-11 Thread Paul Stockley
Declare your objects as 

@JsType(isNative = true, namespace=JsPackage.GLOBAL, name="Object")

You can then just use new.

On Wednesday, May 11, 2016 at 11:16:07 AM UTC-4, Vassilis Virvilis wrote:
>
> Hi,
>
>
> I am trying to construct with jsinterop a json config object for 
> datatables. Here is an example
>
> var table = $wnd.$(table_selector).DataTable({
> "dom" : 'lf<"dateRange"><"pull-right"B>rtip',
> "serverSide" : true,
> "ajax" : {
> "url" : ajax_url,
> "dataSrc" : "",
> "data" : {
> "date" : "date_range"
> }
> },
> "columns" : headers,
> "buttons" : [ 'copyHtml5' ]
> });
>
> The idea is to use something like that
>
>@JsType(isNative = true)
> public static class Config {
>
> @JsType(isNative = true)
> public static class Ajax {
>
> @JsType(isNative = true)
> public static class Data {
> String date;
>
> @JsOverlay
> public static Data create() {
> final Data data = createDataObject();
> data.date = "date_range";
> return data;
> }
> }
>
> String url;
> String dataSrc;
> Data data;
>
> @JsOverlay
> public static Ajax create(String url) {
> final Ajax ajax = createAjaxObject();
> ajax.url = url;
> ajax.dataSrc = "";
> ajax.data = Data.create();
> return ajax;
> }
> }
>
> String dom;
> boolean serverSide;
> Ajax ajax;
> JsArray columns;
> JsArrayString buttons;
>
> @JsOverlay
> public static Config create(String url,
> JsArray headers) {
> final Config config = createConfigObject();
> config.dom = "lf<'dateRange'><'pull-right'B>rtip";
> config.serverSide = true;
> config.ajax = Ajax.create(url);
> config.columns = headers;
> config.buttons = createJsArrayString("copyHtml5");
> return config;
> }
> }
>
> Something similar (but simpler) is done for vue.js here 
> https://gist.github.com/bduisenov/2c5ef0e4ff4874f2c5d2
>
> Unfortunately the Datatables are picky and they are poking (iterating) the 
> Config object in the wrong way and they hit the __proto__ and constructor 
> members and the script crashes.
>
> So I had to specify  @JsType(isNative = true) to match the naming and a 
> way to start from a plain javascript plain object {}
>
> The question is how to create and cast in a generic way a {} in my native 
> objects i.e.
> Config, Config.Ajax, Config.Ajax.Data?
>
> I tried
> 1) Config config = new Config(); // protected empty constructor - fails at 
> runtime
>
> 2) Config config = createConfig();
>
> private static native Config createConfigObject()/*-{
> return {};
> }-*/;
>
> This works but I have to create one static function for every native Type 
> I need to create;
>
> 3) Config config = createObject();
>
> private static native  T createObject()/*-{
> return {};
> }-*/;
>
> fails at runtime
>
> 4) Config extends JavascriptObject and use .cast() - fails at compile time
>
> Is any of the 1, 3, 4 supposed to work?
>
>Vassilis
>
>
>
>
>
>
> -- 
> Vassilis Virvilis
>

-- 
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: create cast native types: JavaScriptObject

2016-05-11 Thread Vassilis Virvilis
Hi,


I am trying to construct with jsinterop a json config object for
datatables. Here is an example

var table = $wnd.$(table_selector).DataTable({
"dom" : 'lf<"dateRange"><"pull-right"B>rtip',
"serverSide" : true,
"ajax" : {
"url" : ajax_url,
"dataSrc" : "",
"data" : {
"date" : "date_range"
}
},
"columns" : headers,
"buttons" : [ 'copyHtml5' ]
});

The idea is to use something like that

   @JsType(isNative = true)
public static class Config {

@JsType(isNative = true)
public static class Ajax {

@JsType(isNative = true)
public static class Data {
String date;

@JsOverlay
public static Data create() {
final Data data = createDataObject();
data.date = "date_range";
return data;
}
}

String url;
String dataSrc;
Data data;

@JsOverlay
public static Ajax create(String url) {
final Ajax ajax = createAjaxObject();
ajax.url = url;
ajax.dataSrc = "";
ajax.data = Data.create();
return ajax;
}
}

String dom;
boolean serverSide;
Ajax ajax;
JsArray columns;
JsArrayString buttons;

@JsOverlay
public static Config create(String url,
JsArray headers) {
final Config config = createConfigObject();
config.dom = "lf<'dateRange'><'pull-right'B>rtip";
config.serverSide = true;
config.ajax = Ajax.create(url);
config.columns = headers;
config.buttons = createJsArrayString("copyHtml5");
return config;
}
}

Something similar (but simpler) is done for vue.js here
https://gist.github.com/bduisenov/2c5ef0e4ff4874f2c5d2

Unfortunately the Datatables are picky and they are poking (iterating) the
Config object in the wrong way and they hit the __proto__ and constructor
members and the script crashes.

So I had to specify  @JsType(isNative = true) to match the naming and a way
to start from a plain javascript plain object {}

The question is how to create and cast in a generic way a {} in my native
objects i.e.
Config, Config.Ajax, Config.Ajax.Data?

I tried
1) Config config = new Config(); // protected empty constructor - fails at
runtime

2) Config config = createConfig();

private static native Config createConfigObject()/*-{
return {};
}-*/;

This works but I have to create one static function for every native Type I
need to create;

3) Config config = createObject();

private static native  T createObject()/*-{
return {};
}-*/;

fails at runtime

4) Config extends JavascriptObject and use .cast() - fails at compile time

Is any of the 1, 3, 4 supposed to work?

   Vassilis






-- 
Vassilis Virvilis

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