Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP 2.1. M1: Flickering on request
RAP 2.1. M1: Flickering on request [message #1024045] Mon, 25 March 2013 13:57 Go to next message
Stefan M is currently offline Stefan M
Messages: 29
Registered: September 2012
Junior Member
Hi,

We tested our application with the new RAP 2.1 M1.
We experienced some strange behaviour:
When a request takes longer (like more than 3 seconds) all the open Shells (we don't use a maximized shell) dissapear and appear again.
I couldn't reproduce it exactly with a snippet, but there is a "request in progress"-animation displayed rather that hiding all the shells.
In RAP 2.0 there was no such behaviour and in the New and Noteworty for M1
http://eclipse.org/rap/noteworthy/2.1/?build=M1
no additional animation is mentioned (i guess that the dissapearing Shells in our application originate in a problem with this animation)
How can i adapt our application and should i file a bug?

Thanks for your help

[Updated on: Tue, 26 March 2013 06:57]

Report message to a moderator

Re: RAP 2.1. M1: Flickering on request [message #1027115 is a reply to message #1026822] Tue, 26 March 2013 11:17 Go to previous messageGo to next message
Fabian Henniges is currently offline Fabian Henniges
Messages: 6
Registered: March 2013
Junior Member
Hi Tim,

is it possible to configure this behaviour?

Regards,
Fabian
Re: RAP 2.1. M1: Flickering on request [message #1027181 is a reply to message #1026822] Tue, 26 March 2013 12:54 Go to previous messageGo to next message
Stefan M is currently offline Stefan M
Messages: 29
Registered: September 2012
Junior Member
I switched to default theme and the animation is displayed.
We copied the whole business theme with version RAP 1.5. to be indepented of layout-changes in RAP in coming versions.
I checked the default.css and found:

SystemMessage-DisplayOverlay {
background-color: rgba( 128, 128, 128, 0.2 );
background-image: url( resource/widget/rap/display/loading.gif );
}

After inserting this into our business.css the shells didn't dissapear anymore.
The implementation of an animation on long running requests is nice, but it should be configurable in every aspect (time to pass after it is displayed, animation itself).
The question is now: Will these aspects be configurable and is the entry in the *.css the switch to activate the animation? If this is the switch to enable it i would consider this as a bug, because maybe not everyone wants a animation like this but with the dissapearing shells one is forced to.

[Updated on: Tue, 26 March 2013 13:04]

Report message to a moderator

Re: RAP 2.1. M1: Flickering on request [message #1027672 is a reply to message #1027181] Wed, 27 March 2013 04:59 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 379
Registered: July 2009
Senior Member
Hi.

> After inserting this into our business.css the shells didn't dissapear
> anymore.

In that case, the bug is probably in the business theme. You can open
one, but we will fix it in any case.

> The implementation of an animation on long running requests is nice, but
> it should be configurable in every aspect (time to pass after it is
> displayed, animation itself).

The theming can configure the color, opacity and animation, as you
discovered. The timeout will likely be configurable, that's the part we
didn't finish. The API already exists internally
(RWT.getClient().getService(
org.eclipse.rap.rwt.internal.client.ConnectionMessages.class );), but
may change until it's made public.

Greetings,
Tim

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: RAP 2.1. M1: Flickering on request [message #1027780 is a reply to message #1027672] Wed, 27 March 2013 08:02 Go to previous message
Fabian Henniges is currently offline Fabian Henniges
Messages: 6
Registered: March 2013
Junior Member
Hi Tim,

we´ve implemented a temporary workaround with ConnectionMessages#setWaitHintTimeout(Integer.MAX_VALUE).

Cheers,
Fabian
Previous Topic:How to enable the browser scroll bar, not using rap scroll bar?
Next Topic:RAP 1.5 - Passing JSON to a custom widget's javaScript
Goto Forum:
  


Current Time: Fri Jul 25 12:15:05 EDT 2014

Powered by FUDForum. Page generated in 0.03607 seconds