Asynchronous communication from server to client

2009-04-08 Thread petrus

Hello,
Is there a possibility in GWT to communicate asynchronously from
server to client?
The only solution which I've found is to use Timer as it's showed
there http://www.gwtapps.com/doc/html/com.google.gwt.user.client.Timer.html
, but then calls will be synchronous. What solution do you recommend?

Regards,
Peter

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Asynchronous communication from server to client

2009-04-08 Thread petrus

Thanks for your advice! I'll try with comet.

On 8 Kwi, 13:08, Lothar Kimmeringer j...@kimmeringer.de wrote:
 petrus schrieb:

  Is there a possibility in GWT to communicate asynchronously from
  server to client?

 The term used in general for that is Server Push. A technique
 for that is called Comet, so if you search Comet GWT with
 the search engine of your choice, you should come up with a
 couple of results.

  The only solution which I've found is to use Timer as it's showed
  therehttp://www.gwtapps.com/doc/html/com.google.gwt.user.client.Timer.html
  , but then calls will be synchronous. What solution do you recommend?

 Calls in GWT are always synchronously, independent of the way
 they are initiated. But if you solve it using a Timer you should
 set a flag if a request is already in progress to make sure that
 only one requests happen at the same time.

 Regards, Lothar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to have a layered panel?

2008-12-09 Thread Petrus Pelser
The component in the incubator is called a GlassPanel and it works 
really well. Though I did have some issues with the blur event in IE, 
but I could easily fix it by catching and ignoring the onBlur() call.

Suri wrote:
 Hi Rakesh, Isaac  Litty
 Thanks for the replies. Since I'm currently already using the
 incubator jar for a table, I'll first attempt Isaac's suggestion which
 seems least effort-consuming at the moment. If i do need to create my
 own panel, I'll try both of your suggestions and update everyone on
 the results.

 Thanks a bunch all. You guys are really great help in this forum.

 On Dec 8, 3:11 pm, rakesh wagh [EMAIL PROTECTED] wrote:
   
 Correction to my earlier post:
 Use PopupPanel, not AbsolutePanel.
 I just tried this code in a class that extends DialogBox:
 @Override
 public void show() {
 mask.setPixelSize(Window.getClientWidth(), 
 Window.getClientHeight
 ());
 mask.setPopupPosition(0, 0);
 mask.setWidget(new Label(test));
 mask.setStyleName(trans-bg);
 mask.show();
 super.hide();
 super.show();
 }
 @Override
 public void hide() {
 mask.hide();
 super.hide();
 }

 .trans-bg{
 background-color: black;
 filter: alpha(opacity=50);
 -moz-opacity: .5;

 }

 And I am able to show a translucent background to any of my dialog
 box!

 Rakesh Wagh

 On Dec 8, 9:37 am, rakesh wagh [EMAIL PROTECTED] wrote:

 
 if you are trying to do this on your own, you will probably need a
 absolute panel that is placed on the screen based on the screen size
 (0, 0, max clientx, max clienty). Select a proper style: color and
 transparency. Now just put your widget or popup on top of this panel.
 This way the z index of your translucent panel will be between the
 main screen and your visible widget.
   
 You might also have to put a screen resize handler to resize the size
 of your panel.
   
 I think the gwt incubator has a ready to use widget.
   
 Rakesh Wagh
   
 On Dec 6, 11:04 pm, Suri [EMAIL PROTECTED] wrote:
   
 Hey all,
 In GWT how would we create a layered panel/widget that basically acts
 like a semi-opaque screen for the stuff below it. Sort of looking like
 the screen is in a disabled mode. Thanks for any ideas.
 
 Suri
 
 

   


-- 
Petrus Pelser
Software Developer, CTO
Codewave (http://www.codewave.co.za)
mailto:[EMAIL PROTECTED]
Cell: +27 79 522 6463



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---