Google Web Toolkit auto refresh grid - java

I implementing an application that has a grid in it and everytime someone changes something on this grid it automaticaly updates the grid for others who has the grid opened (something like what the google docs does).
I tried implementing this using gwt-rpc sending a request every 2 seconds and if there is something new the application just send what has changed. But I had some bad results when uploaded to the GAE server.
So I decided to analyze the google docs implementation and a saw that it keeps a open connection for almost one minute and send some new information everytime someones changes something. I would like to know if it's possible to do something like this on GWT. I'm trying to do it now using the request factory but I think I'll face the same problems.
Any ideas?

Since you use GAE you might want to look at Channel API.
There is also gwt-gae-channel, which is a GWT wrapper around Channel API's javascript client.

You might check out what the GWT folks gave to say about using push technology with GWT

Related

Using webhook in flutter

I want to use webhooks in flutter. There is a website that I want to get live data from and listen to new events or data whenever they come, for example stocks live chart or like so. I searched almost everywhere and I looked here and also here but I did not find what I wanted. Can you provide an example (with code) of using webhook in flutter or show me how can I achieve what I want? I'm really confused about this and how can I use it for my application.
You can use github to implement web hooks...
Check this documentation for more information

Dynamically and in real time update web page contents

I need to create a screen that is automatically updated every minute or so with fresh data from a server-based data source, perhaps a simple text file or XML - and is displayed as a web page.
The screen will show a list of items that can be marked with a red, yellow or green icon, as to indicate their status. Each item has a drop-down where you can select/change the current status. So, when a user changes the status for one of the items, every screen monitoring this web page will be automatically updated.
I'm a pretty novice web programmer (I only have experience with desktop programming, VB and a little C#), so I'm really just hoping for a quick push in the right direction here. I assume that this really isn't all that difficult to implement. Am I wrong? And where can I find more info on how to do this? :-)
I really appreciate any help I can get. Thanks in advance!
This sounds like a solution with Websockets. You don't need update every minute. You're able to update every times when a user make changes. Client Side in Java Script is very easily to implement Websockets. Tutorial can be found here.
Server side you need a Websocket Server. What you need depends on which programm language you use.

Auto-Update Java Client/Server Model

I'm working with a chat app in Java that uses an MVC Client-Server model. For the conversations screen, I currently have an "Update" button that refreshes the chat every time, so if someone i'm talking to posted a message it won't be displayed until after i hit "update"
Wondering if there's another way to do that? I know of the blinker method that re-updates every few seconds, but that seems like bad style.
Thanks!
You can use websocket for that. If you are using spring boot, have a look at this guide.

Making an android app for a website

I'm trying to make an app for website that I DO NOT OWN OR HAVE ACCESS TO ITS DB.
The website is a forum community website and I wish make an app that can list the menu and the posts in a UI suited for mobile.
Also I am trying to see if I add real time notice function that will let the thread poster know when there is a new comment/post to his or her thread. (Website does not support this function)
Do you guys think I can achieve this through Jsoup or would I need other utilities too?
Also I am quite a beginner in java so the app cannot be too complicated.
Thanks.
It means that you want to write your own web browser! You need to call the Url get what it returns, parse it and show it... also you need to implement RSS to specific pages.. It means app need to call this url regularly and check if any changes or comments... Its do-able but wont really be efficient or bug-free... I wouldnt recommend it but as i sad do-able

Is it somehow possible to create image files from GWT charts on google app engine?

I'd need to do an app that runs on google app engine that would be able to automatically create some image files from GWT graphics on server that would be later automatically attached in an email that would be automatically sent once a week.
But as far as I've investigated I see no possible way to do it on server, first off, I haven't been able to use ImageCharts on google appengine I had to use ColumnCharts and LineCharts, so that would complicate the process to turn then into images, althoug I think it could be done although it could take a while, although maybe it would be impossible to do it.
Biggest problem I see is that Google App Engine has File I/O absolutely banned, so although there might be a workaround, I guess it's a difficult one, I know about blobstore, but from what I've seen it just allows you to upload already existing files from you own PC, not to create new ones.
Is there something that could be done?

Categories