Re: GWT 2.8.0-beta1 JsInterop HTML5 classes ?

2016-01-14 Thread rhmoller
Hi

I have a half-baked tool that can convert most WebIDL to JSInterop. You can 
try it out.

https://github.com/rhmoller/embrace

You can drop .idl files containing pure webidl or .html files containing 
webidl fragments (like the specs from w3 and whatwg) into to the 

webapis/data folder

and it will generate a gwt module for you if you run

./gradlew :webapis:jar

The gwt module is now in

webapis/build/libs/webapis.jar

In order to bootstrap it you need a bit of JSNI like this

https://github.com/rhmoller/embrace/blob/master/examples/src/main/java/com/giddyplanet/embrace/examples/client/Examples.java#L83-L89

Regarding Enums: I don't think it is supported. It would be nice if we 
could create a Java enum and have an annotation for specifying the JS value 
for each enum value. I have the same problem in the embrace tool. WebIDL 
enums are Strings and some of the enum values in some specs are not valid 
Java identifier. So currently I generate an oldschool interface with 
constants. 

Best regards
Rene


Den torsdag den 14. januar 2016 kl. 15.48.26 UTC+1 skrev DavidN:
>
> Is there a way to generate JsInterop compatible classes/interfaces for all 
> HTML5 javascript features ?
> I'm interested in the new File API's, XMLHttpRequest, EventHandlers, ... 
> etc. I can type it by hand, but 
> somebody must have done the work already or there must be a tool available 
> to generate it ?
>
> What I am missing right now is: how can I map Java enums to integers in an 
> JsInterop interface ?
> For example the HTML Event type contains this:
>
>   const unsigned short *NONE* 
>  = 0;
>   const unsigned short *CAPTURING_PHASE* 
>  = 1;
>   const unsigned short *AT_TARGET* 
>  = 2;
>   const unsigned short *BUBBLING_PHASE* 
>  = 3;
>   readonly attribute unsigned short *eventPhase* 
> ;
>
> I would like to expose these as java enums ... is that possible ?
>
>

-- 
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: The method getMouseWheelVelocityY() is broken on IE 11 in GWT 2.7.0

2016-01-14 Thread Kirill Prazdnikov
Dont use GWT, write you own code in JS and wrap it.

On Thursday, January 14, 2016 at 11:54:57 AM UTC+3, Himabindu Gurla wrote:
>
> The method getMouseWheelVelocityY() is broken on IE 11 in  GWT 2.7.0. It 
> worked fine in 2.4.0. Is there a fix or work around for checking the mouse 
> wheel direction?
>

-- 
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: Is there any GWT library to be used in client side that does the same thing as Scalr (scale and reduze image file sizes)?

2016-01-14 Thread Kirill Prazdnikov
Canvas is an DOM Element.
It can render Image Elements to itself in any resolution.
However it may produce not nice results.

It depends on what you need.

On Thursday, January 14, 2016 at 9:17:36 PM UTC+3, Julio Heitor Nobrega 
wrote:
>
> Hi guys,
>
> thanks everyone for the answers!
>
> Greg,  is Canvas a GWT framework or its a class that belong to GWT itself?
>
> Do you have any example of use?
>
> Regards
>
>
>
> Em quinta-feira, 14 de janeiro de 2016 11:25:29 UTC-2, Julio Heitor 
> Nobrega escreveu:
>>
>> Hi guys,
>>
>> i am trying to upload images with 2mb size but i don't want to send the 
>> whole original image to the server. 
>>
>> What i would like to do is reduce the image dimensions from, for example, 
>> *1000x1000* to *50x50* and reduce the file size
>> from *2mb* to *~25kb* as well and at the end send the *~25kb* image to 
>> the server.
>>
>> I know there is the Scalr framework that does that in java, but its no 
>> compatible with GWT clients.
>>
>> Is there any client side GWT library that does the same thing as Scalr?
>>
>> Best Regards!
>>
>>
>>

-- 
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: Is there any GWT library to be used in client side that does the same thing as Scalr (scale and reduze image file sizes)?

2016-01-14 Thread Julio Heitor Nobrega
Hi guys,

thanks everyone for the answers!

Greg,  is Canvas a GWT framework or its a class that belong to GWT itself?

Do you have any example of use?

Regards



Em quinta-feira, 14 de janeiro de 2016 11:25:29 UTC-2, Julio Heitor Nobrega 
escreveu:
>
> Hi guys,
>
> i am trying to upload images with 2mb size but i don't want to send the 
> whole original image to the server. 
>
> What i would like to do is reduce the image dimensions from, for example, 
> *1000x1000* to *50x50* and reduce the file size
> from *2mb* to *~25kb* as well and at the end send the *~25kb* image to 
> the server.
>
> I know there is the Scalr framework that does that in java, but its no 
> compatible with GWT clients.
>
> Is there any client side GWT library that does the same thing as Scalr?
>
> Best Regards!
>
>
>

-- 
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: unable to resolve class referenced by JS native method?

2016-01-14 Thread Magnus
Note that TestWidget extends FierensGraphicsWidget, so it should be able to 
access the latter's member "obj".

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


unable to resolve class referenced by JS native method?

2016-01-14 Thread Magnus
Hello,

the GWT compiler says that he cannot resolve a class:

   Tracing compile failure path for type 
'mcs.client.div.test.gui.TestWidget'
  [ERROR] Errors in 
'file:/home/warker/dvl/prj/myProject/src/mcs/client/div/test/gui/TestWidget.java'
 [ERROR] Line 45: Referencing class 
'awi.client.vgi.gui.FierensGraphicsWidget': unable to resolve class
   [ERROR] Hint: Check the inheritance chain from your module; it may not 
be inheriting a required module or a module may not be adding its source 
path entries properly


The corresponding line 45 in TestWidget.java looks like this:

 private native JavaScriptObject draw ()
 /*-{
  var svg = th...@awi.client.vgi.gui.FierensGraphicsWidget::obj; // line 45
 ...

It references a member "obj" in a class "FierensGraphicsWidget" in another 
module (awi):

public class FierensGraphicsWidget extends GraphicsWidget
{
 protected  JavaScriptObject obj = null;
 ...

Note that the class "FierensGraphicsWidget" can be referenced without 
problems from Java.
But the native method "draw" above cannot reference the member "obj".

I don't know where to start.
Could someone point me in the right direction?

Thank you,
Magnus




-- 
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: Multiple PlaceHistoryMapper

2016-01-14 Thread Tugdual Huertas
Thanks Thomas, that makes the job.

Le mercredi 13 janvier 2016 11:10:10 UTC+1, Tugdual Huertas a écrit :
>
> Hi,
>
> I'm facing a little question about PlaceHistoryMapper file. 
> Is there a way to have more than one file to list all places?
>
> I have this use case (I'm using multi-modules maven projects):
>
> Standard project:
>- model project
>- business project
>- service project
>- gwt project (containing PlaceHistoryMapper file)
>+ webapp project only used to define web.xml and standard application 
> version for example).
>
> Specific project
>  Uses of gwt project (and all other projects except webapp one) 
> and add some widgets / screens.
>  Define its webapp (new web.xml, entry point ...)
>I this specific project i'd like to use PlaceHistoryMapper file defined 
> in gwt project and create a new one containig only specific places instead 
> of creating one containing all places (gwt prject places and specific 
> places) which can lead to oversights... Is there a way to do that?
>
> 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.


Re: Is there any GWT library to be used in client side that does the same thing as Scalr (scale and reduze image file sizes)?

2016-01-14 Thread Greg
Hi

Yes, it's possible. You have to read the contents of selected file first 
and then use Canvas to resize it (link 

).

On Thursday, January 14, 2016 at 2:25:29 PM UTC+1, Julio Heitor Nobrega 
wrote:
>
> Hi guys,
>
> i am trying to upload images with 2mb size but i don't want to send the 
> whole original image to the server. 
>
> What i would like to do is reduce the image dimensions from, for example, 
> *1000x1000* to *50x50* and reduce the file size
> from *2mb* to *~25kb* as well and at the end send the *~25kb* image to 
> the server.
>
> I know there is the Scalr framework that does that in java, but its no 
> compatible with GWT clients.
>
> Is there any client side GWT library that does the same thing as Scalr?
>
> Best Regards!
>
>
>

-- 
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 2.8.0-beta1 JsInterop HTML5 classes ?

2016-01-14 Thread DavidN
Is there a way to generate JsInterop compatible classes/interfaces for all 
HTML5 javascript features ?
I'm interested in the new File API's, XMLHttpRequest, EventHandlers, ... 
etc. I can type it by hand, but 
somebody must have done the work already or there must be a tool available 
to generate it ?

What I am missing right now is: how can I map Java enums to integers in an 
JsInterop interface ?
For example the HTML Event type contains this:

  const unsigned short *NONE*  
= 0;
  const unsigned short *CAPTURING_PHASE* 
 = 1;
  const unsigned short *AT_TARGET* 
 = 2;
  const unsigned short *BUBBLING_PHASE* 
 = 3;
  readonly attribute unsigned short *eventPhase* 
;

I would like to expose these as java enums ... is that possible ?

-- 
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: Is there any GWT library to be used in client side that does the same thing as Scalr (scale and reduze image file sizes)?

2016-01-14 Thread Alberto Mancini
Hello,
maybe i misunderstand but  i think that an option may be
drawing the image scaled in a canvas and then using getDataUrl() to get
back data to upload.

Cheers,
   A.


On Thu, Jan 14, 2016 at 2:25 PM Julio Heitor Nobrega <
juliohnobr...@gmail.com> wrote:

> Hi guys,
>
> i am trying to upload images with 2mb size but i don't want to send the
> whole original image to the server.
>
> What i would like to do is reduce the image dimensions from, for example,
> *1000x1000* to *50x50* and reduce the file size
> from *2mb* to *~25kb* as well and at the end send the *~25kb* image to
> the server.
>
> I know there is the Scalr framework that does that in java, but its no
> compatible with GWT clients.
>
> Is there any client side GWT library that does the same thing as Scalr?
>
> Best Regards!
>
>
> --
> 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: Is there any GWT library to be used in client side that does the same thing as Scalr (scale and reduze image file sizes)?

2016-01-14 Thread Alain Ekambi
We were doing stuff like that using Flash and our GWT API for Flash.

On 14 January 2016 at 15:27, Frank  wrote:

> I would be very surprised if this is possible at all.
> I don't think this is possible in javascript.
>
> Op donderdag 14 januari 2016 14:25:29 UTC+1 schreef Julio Heitor Nobrega:
>
>> Hi guys,
>>
>> i am trying to upload images with 2mb size but i don't want to send the
>> whole original image to the server.
>>
>> What i would like to do is reduce the image dimensions from, for example,
>> *1000x1000* to *50x50* and reduce the file size
>> from *2mb* to *~25kb* as well and at the end send the *~25kb* image to
>> the server.
>>
>> I know there is the Scalr framework that does that in java, but its no
>> compatible with GWT clients.
>>
>> Is there any client side GWT library that does the same thing as Scalr?
>>
>> Best Regards!
>>
>>
>> --
> 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.
>



-- 

Alain Ekambi

Co-Founder

Ahomé Innovation Technologies

http://www.ahome-it.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: Is there any GWT library to be used in client side that does the same thing as Scalr (scale and reduze image file sizes)?

2016-01-14 Thread Frank
I would be very surprised if this is possible at all.
I don't think this is possible in javascript.

Op donderdag 14 januari 2016 14:25:29 UTC+1 schreef Julio Heitor Nobrega:
>
> Hi guys,
>
> i am trying to upload images with 2mb size but i don't want to send the 
> whole original image to the server. 
>
> What i would like to do is reduce the image dimensions from, for example, 
> *1000x1000* to *50x50* and reduce the file size
> from *2mb* to *~25kb* as well and at the end send the *~25kb* image to 
> the server.
>
> I know there is the Scalr framework that does that in java, but its no 
> compatible with GWT clients.
>
> Is there any client side GWT library that does the same thing as Scalr?
>
> Best Regards!
>
>
>

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


Is there any GWT library to be used in client side that does the same thing as Scalr (scale and reduze image file sizes)?

2016-01-14 Thread Julio Heitor Nobrega
Hi guys,

i am trying to upload images with 2mb size but i don't want to send the 
whole original image to the server. 

What i would like to do is reduce the image dimensions from, for example, 
*1000x1000* to *50x50* and reduce the file size
from *2mb* to *~25kb* as well and at the end send the *~25kb* image to the 
server.

I know there is the Scalr framework that does that in java, but its no 
compatible with GWT clients.

Is there any client side GWT library that does the same thing as Scalr?

Best Regards!


-- 
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: The method getMouseWheelVelocityY() is broken on IE 11 in GWT 2.7.0

2016-01-14 Thread Gilberto
Hi Himabindu Gurla,

I think the best place to file bug reports and search for possible 
workarounds is on the GitHub issue tracker 
.

To better describe the problem I suggest you to create a simple, 
self-contained code example, so others can fast reproduce the problem and 
provide solutions.

Best regards,

Gilberto

On Thursday, January 14, 2016 at 6:54:57 AM UTC-2, Himabindu Gurla wrote:
>
> The method getMouseWheelVelocityY() is broken on IE 11 in  GWT 2.7.0. It 
> worked fine in 2.4.0. Is there a fix or work around for checking the mouse 
> wheel direction?
>

-- 
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: When will GWT 2.8 GA realistically happen?

2016-01-14 Thread Gilberto
In my experience, asking for a release date of a project where there are 
Google folks involved, is the same as asking for peace on Middle East.

They never work with strict dates, and when they say a date, it's always 
wrong - I wish I could do that to my customers =P

The lack of communication only makes the matter worse.

So, I'd say the date of the GA release is soon*™.*

On Thursday, January 14, 2016 at 9:03:21 AM UTC-2, Marcin Okraszewski wrote:
>
> Hi,
> We have hit a bug with SDM in 2.7, when we use shared CSS via interfaces 
> inheritance. It seems to be fixed in 2.8 beta. Therefore a question - when 
> can we expect GA to happen? 
>
> Thank you,
> Marcin
>

-- 
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-14 Thread salk31
NB JSNI is being replaced by JsInterop... it is much nicer so if you are 
starting new code I'd strongly recommend you use it rather than JSNI.

On Sunday, January 10, 2016 at 8:00:30 AM UTC, Gourab wrote:
>
> Let me understand your question.
>
> - You have a GWT application, where you want to expose few 
> functionality/UI via JavaScript Api.
>
> If thats what you want to achieve:
>
> - Can you check if you have  
> in the gwt module where the API is exposed ?
> - I dont think you need to prefaced anything with $wnd
>
> Regards
> Gourab.
>
>
>
>
> On Sat, Jan 9, 2016 at 10:00 PM, Eric Nissan  > wrote:
>
>> 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-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.


When will GWT 2.8 GA realistically happen?

2016-01-14 Thread Marcin Okraszewski
Hi,
We have hit a bug with SDM in 2.7, when we use shared CSS via interfaces 
inheritance. It seems to be fixed in 2.8 beta. Therefore a question - when 
can we expect GA to happen? 

Thank you,
Marcin

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


The method getMouseWheelVelocityY() is broken on IE 11 in GWT 2.7.0

2016-01-14 Thread Himabindu Gurla
The method getMouseWheelVelocityY() is broken on IE 11 in  GWT 2.7.0. It 
worked fine in 2.4.0. Is there a fix or work around for checking the mouse 
wheel direction?

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