Re: Vaadin GWT Polymer Elements adds about 5000 new files to the release

2016-09-20 Thread zakaria amine
gwt-polymer-elements adds the bower_components for polymer which contains 
all the polymer elements to your module. It is added automatically because 
it is in the public folder in the package com.vaadin.polymer. One solution 
I can think of is to rebuild the library and exclude it from the jar. Check 
out 
this: https://github.com/vaadin/gwt-api-generator/blob/master/gulpfile.js, 
you get rid of the bower taks. Then, you can use a tool like vulcanize 
which allows to import only the polymer elements that you need in one 
file: https://www.polymer-project.org/1.0/docs/tools/optimize-for-production 



Le mardi 20 septembre 2016 19:31:33 UTC+2, Tony a écrit :
>
>
> Anybody knows of a way to reduce the number of files? I'm asking because 
> I'm deploying to appengine which has a limit of 1 files per version, 
> per release and with several GWT modules and locales I'm already going over 
> the limit. 
>
> Thank you
> Tony
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Vaadin GWT Polymer Elements adds about 5000 new files to the release

2016-09-20 Thread Tony
Hi

I was able to get the Vaadin GWT Polymer framework integrated into my 
project. However, it seems like just adding the vaadin polymer library 
caused the GWT application to now include a little over 5000 static files 
in the release. So adding this line in my gwt.xml  causes the staging directory to now have 
over 5000 files (up from about 15 without the import). 

Anybody knows of a way to reduce the number of files? I'm asking because 
I'm deploying to appengine which has a limit of 1 files per version, 
per release and with several GWT modules and locales I'm already going over 
the limit. 

Thank you
Tony

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: $wnd.HTMLImports is undefined when using Vaadin GWT Polymer Elements

2016-09-20 Thread Tony
I upgraded to vaadin-gwt-polymer-elements-1.2.3.1-SNAPSHOT-sources.jar and 
everything seems to be working now. 

On Friday, September 16, 2016 at 5:51:41 PM UTC-4, Tony wrote:
>
> I tried to use the Polymer widgets from Vaadin. However, no matter what I 
> do I keep getting the error below basically saying that $wnd.HTMLImports is 
> undefined. I even created a bare-bones project, just with the necessary 
> code to run an example and I still get this error. Any idea what's causing 
> it? 
>
> thank you
> tony
>
>
> Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) : 
> Cannot read property 'whenReady' of undefined 
> TypeError: Cannot read property 'whenReady' of undefined
> at lQf_g$ (Polymer.java:364)
> at QPf_g$ (Polymer.java:277)
> at TQf_g$ (PolymerWidget.java:17)
> at u1f_g$ (PaperMaterial.java:39)
> at K$f_g$ (JavaApiWidget.java:17)
>
> the error is thrown in com.vaadin.polymer.Polymer.java on line 364 which 
> is this:
> $wnd.HTMLImports.whenReady(!e ? f : function() {
>
>   /**
>  * Executes a function after all imports have been loaded and when the
>  * passed element is ready to use.
>  */
> public static native void whenReady(Function f, Element e)
> /*-{
> $wnd.HTMLImports.whenReady(!e ? f : function() {
>   var id = setInterval(function() {
> if (@com.vaadin.polymer.Polymer::isRegisteredElement(*)(e)) {
>   clearInterval(id);
>   f(e);
> }
>   }, 0);
> });
> }-*/;
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Re: Last call for 2.8.0-RC3

2016-09-20 Thread Kirill Prazdnikov
Another one is about Event.BUTTON_LEFT processing. 
This seems to be important since to should be spec-ed somehow, it is ? 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/5dd97955-62cb-4967-b8d4-923ec24b86c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Re: Last call for 2.8.0-RC3

2016-09-20 Thread Kirill Prazdnikov
One of above is a licensing issue (a missing one). 
Is it important ? 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/fbf6bb67-f6aa-496d-80b7-246cd2b63884%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update conversation by displaying new messages when they are sent

2016-09-20 Thread natan clara

  
  
Make a timer that fires every X seconds.

Button refresh = new Button();
  Time temporizador = new Timer() {
  
      @Override
      public void run() {
      dispara();
      }
  };
  // 2 seconds
  temporizador.scheduleRepeating(2000);
  
  
  private final void dispara() {
      refresh.setFocus(true);
      refresh.fireEvent(new GwtEvent() {
      @Override
      protected void dispatch(ClickHandler handler) {
      handler.onClick(null);
      }
  
      @Override
      public
  com.google.gwt.event.shared.GwtEvent.Type
  getAssociatedType() {
      return ClickEvent.getType();
      }
      });
  }


Natan.

Em 20/09/2016 07:40, David escreveu:


  If you only need to support modern browsers then I
really would go the WebSockets way. Its really simple to
implement with JSInterop. I did so in combination with GWT
Jackson and RequestBuilder. On the server side I used Jersey.
Unfortunately I cannot publish this code since it is closed
source.
  
  
On Tue, Sep 20, 2016 at 12:16 PM Frank 
  wrote:


  I do this using signalR (for which I built a
GWT wrapper (not opensource).

But maybe you should look into websockets or atmosphere
  (which uses websockets).
  
  -- 
  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.


  




-- 
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Update conversation by displaying new messages when they are sent

2016-09-20 Thread David
If you only need to support modern browsers then I really would go the
WebSockets way. Its really simple to implement with JSInterop. I did so in
combination with GWT Jackson and RequestBuilder. On the server side I used
Jersey. Unfortunately I cannot publish this code since it is closed source.

On Tue, Sep 20, 2016 at 12:16 PM Frank  wrote:

> I do this using signalR (for which I built a GWT wrapper (not opensource).
>
> But maybe you should look into websockets or atmosphere (which uses
> websockets).
>
> --
> 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: Update conversation by displaying new messages when they are sent

2016-09-20 Thread Frank
I do this using signalR (for which I built a GWT wrapper (not opensource).

But maybe you should look into websockets or atmosphere (which uses 
websockets).

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Update conversation by displaying new messages when they are sent

2016-09-20 Thread Vassilis Virvilis
Simplest solution a timer that polls the DB every 10sec let's say.

If you want a truly asynchronous server side notification you should look
at websockets or long polling...

Vassilis

On Tue, Sep 20, 2016 at 12:38 PM, Olar Andrei  wrote:

> Hello,
>
> In my GWT application I have a messaging system integrated within. When a
> specific conversation gets opened, a query runs and selects all messages
> available for this conversation. From the same view you can reply to that
> conversation. When replying, the other user has to click a small refresh
> button (located on top, which agian gets all mesages from the DB running
> the same query from above) in order for the last message to appear.
>
> My question: How can I make that refresh automatically, so you don't have
> to click on the button in order to refresh the conversation. Like in FB,
> Messenger, etc, where you don't refresh the conversation and the messages
> keep coming without you having to do anything.
>
> Thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



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


Update conversation by displaying new messages when they are sent

2016-09-20 Thread Olar Andrei
Hello,

In my GWT application I have a messaging system integrated within. When a 
specific conversation gets opened, a query runs and selects all messages 
available for this conversation. From the same view you can reply to that 
conversation. When replying, the other user has to click a small refresh 
button (located on top, which agian gets all mesages from the DB running 
the same query from above) in order for the last message to appear.

My question: How can I make that refresh automatically, so you don't have 
to click on the button in order to refresh the conversation. Like in FB, 
Messenger, etc, where you don't refresh the conversation and the messages 
keep coming without you having to do anything.

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


#GWTcon2016, call for papers ends today.

2016-09-20 Thread Alberto Mancini
Hello,
as maybe you know, the 3rd edition of GWTcon (www.gwtcon.org) is scheduled 
for next 14-15th November.
Please check the list of confirmed speakers and the tentative agenda on the 
conference website. 

I'm writing here to highlight that the call for papers ends today,
so if you want to propose a talk, hurry up and fill the form: 
http://www.gwtcon.org/#call-for-papers

Cheers,

Alberto. 


[image: http://www.gwtcon.org/#call-for-papers] 


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