Comments (4)
As a workaround, we execute Display.asyncExec every 10 seconds in a Worker-Thread that is created during UI initialization. The code executed by Display.asyncExec just reads the title of the current shell and sets it to that value again, so that nothing is actually changed by the asyncExec invocation, but the UI is updated, nevertheless.
from org.eclipse.rap.
Is this happen in Chrome only? Or Firefox is affected too?
from org.eclipse.rap.
As a workaround, we execute Display.asyncExec every 10 seconds in a Worker-Thread that is created during UI initialization. The code executed by Display.asyncExec just reads the title of the current shell and sets it to that value again, so that nothing is actually changed by the asyncExec invocation, but the UI is updated, nevertheless.
Just a side note: If you use Display#timerExec in a recursion like shown below you might be able to omit the worker thread. At least it work's for me without worker thread, but my motivation for doing this was different.
private void scheduleNextContentUpdate() {
Display.getDefault().timerExec(10_000, () -> {
// do the shell magic to force an update
scheduleNextContentUpdate();
}
});
}
from org.eclipse.rap.
The problem occurs both in Edge, Chrome, and Firefox, albeit in Firefox the console output is different:
In the network tab in Firefox one can see the interrupted ServerPushSession (displayed with red font and marked with 🚫 in the first column):
from org.eclipse.rap.
Related Issues (20)
- [Grid] Index out of bounds exception when using cell selection and setItemCount HOT 2
- org.eclipse.rap.rwt.client.service.ClientInfo.getClientTimezoneOffset() returns invalid value after a daylight saving change
- Infinite loop in RAPDragTracker
- Memory leaks using Display.timerExec with push session active
- RAP version which support jboss8 HOT 17
- BridgeServlet issue
- Replace dependency to org.eclipse.osgi.services HOT 6
- Which RAP version is supporting Java 21?
- Browser controls in tabs lose scroll position in Chromium based browers HOT 2
- `NullPointerException`: Cannot invoke `IProgressMonitor.beginTask(String, int)` because `monitor` is null HOT 6
- Weakness in `FileDialog` may cause `Widget disposed` error HOT 4
- Auto Suggest demo is broken
- Add 'insertText' functionality to the Nebula RichTextEditor HOT 1
- Scrolling continues unexpectedly HOT 5
- Missing RAP artifacts in maven central HOT 6
- fixFocus works differently between SWT and RWT
- Deadlock in JobManager on Startup HOT 2
- pack for column
- Browser Widget: FileNotFoundException under specific conditions / Reduce unnecessary file write actions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org.eclipse.rap.