Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Is it possible to show browser's scrollBar in RAP?
Is it possible to show browser's scrollBar in RAP? [message #518827] Fri, 05 March 2010 08:38 Go to next message
wayne  is currently offline wayne Friend
Messages: 13
Registered: March 2010
Junior Member
I'm just wondering that "is it possible to show browser's scrollBar?".

I think there must be some people like me who wants to know that. so far, I only found some examples with a RAP application contained in the client area of web browser. No matter how big the "page" should be, it only contained in "one page". so we have to use ScrolledComposite in RAP app to solve the scroll thing. Isn't it ugly?

Do you have some ideas?
Re: Is it possible to show browser's scrollBar in RAP? [message #518849 is a reply to message #518827] Fri, 05 March 2010 09:35 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2429
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,

you need to change the document body overflow style property to auto.
Here is an example how to do it in qooxdoo/javascript:
----------
var doc = qx.ui.core.ClientDocument.getInstance();
doc.getDocumentElement().body.style.overflow = "auto";
----------

HTH,
Ivan

On 3/5/2010 10:38 AM, wayne wrote:
> I'm just wondering that "is it possible to show browser's scrollBar?".
> I think there must be some people like me who wants to know that. so
> far, I only found some examples with a RAP application contained in
> the client area of web browser. No matter how big the "page" should
> be, it only contained in "one page". so we have to use
> ScrolledComposite in RAP app to solve the scroll thing. Isn't it ugly?
>
> Do you have some ideas?
Re: Is it possible to show browser's scrollBar in RAP? [message #519209 is a reply to message #518849] Mon, 08 March 2010 03:06 Go to previous messageGo to next message
wayne  is currently offline wayne Friend
Messages: 13
Registered: March 2010
Junior Member
Ivan, thank you very much! That is what I want. But I am not so familiar with qooxdoo. Could you please tell me in detail how I can change it. At the moment, I am using "org.eclipse.rap.rwt.q07_1.3.0.20091214-1156.jar", do I need to change this .jar file? If so, what should I do? if not so, where should I change the js file?
Re: Is it possible to show browser's scrollBar in RAP? [message #519232 is a reply to message #519209] Mon, 08 March 2010 08:10 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2429
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Wayne,

there are several ways to achieve this:
1. Change the RAP source code - you can do this in the Application.js,
somewhere around line 114 in main function.
2. Create (if not exist) a custom widget - see [1]
3. Write the javascript code from the server side directly:
ContextProvider.getStateInfo().getResponseWriter().append( <put your
javascript code here> );

[1]
http://help.eclipse.org/galileo/topic/org.eclipse.rap.help/h elp/html/advanced/custom-widget.html

HTH,
Ivan

On 03/08/2010 5:06 AM, wayne wrote:
> Ivan, thank you very much! That is what I want. But I am not so
> familiar with qooxdoo. Could you please tell me in detail how I can
> change it. At the moment, I am using
> "org.eclipse.rap.rwt.q07_1.3.0.20091214-1156.jar", do I need to change
> this .jar file? If so, what should I do? if not so, where should I
> change the js file?
Re: Is it possible to show browser's scrollBar in RAP? [message #519241 is a reply to message #519232] Mon, 08 March 2010 09:17 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
I can't really recommend the proposed solution as it relies on internals
of the current client-side implementation. These may change without
prior notice.
Another approach is to place a ScrolledCompsoite in the "main" shell.

HTH,
Rüdiger

On 08.03.2010 09:10, Ivan Furnadjiev wrote:
> Hi Wayne,
>
> there are several ways to achieve this:
> 1. Change the RAP source code - you can do this in the Application.js,
> somewhere around line 114 in main function.
> 2. Create (if not exist) a custom widget - see [1]
> 3. Write the javascript code from the server side directly:
> ContextProvider.getStateInfo().getResponseWriter().append( <put your
> javascript code here> );
>
> [1]
> http://help.eclipse.org/galileo/topic/org.eclipse.rap.help/h elp/html/advanced/custom-widget.html
>
>
> HTH,
> Ivan
>
> On 03/08/2010 5:06 AM, wayne wrote:
>> Ivan, thank you very much! That is what I want. But I am not so
>> familiar with qooxdoo. Could you please tell me in detail how I can
>> change it. At the moment, I am using
>> "org.eclipse.rap.rwt.q07_1.3.0.20091214-1156.jar", do I need to change
>> this .jar file? If so, what should I do? if not so, where should I
>> change the js file?
Re: Is it possible to show browser's scrollBar in RAP? [message #519251 is a reply to message #519241] Mon, 08 March 2010 09:44 Go to previous messageGo to next message
wayne  is currently offline wayne Friend
Messages: 13
Registered: March 2010
Junior Member
Thanks alot. Razz

Got it.
Re: Is it possible to show browser's scrollBar in RAP? [message #525536 is a reply to message #519232] Tue, 06 April 2010 19:34 Go to previous messageGo to next message
Ed  is currently offline Ed Friend
Messages: 4
Registered: April 2010
Junior Member
Hi Ivan (and other RAP experts),

I also had a similar issue (how to enable browser scrollBar in RAP). I am limited to RAP 1.2 capabilities since our product cannot be upgraded at the moment. The most practical solution to me was using 'qooxdoo/javascript':
var doc = qx.ui.core.ClientDocument.getInstance();
doc.getDocumentElement().body.style.overflow = "auto";

It works perfect on IE but FireFox 3.6 ignores it, After some digging into FF websites I found that one of the reasons could be that FF 3.6 doesn't honor getDocumentElement() and getElementById(id) must be used.

Do you know if any other way to get scrollbar on FF browser enabled via JS from within RAP/qoox code/scripts? Or how can I get handle of the 'id' in order to use getElementById? Is there any know issues with this regard that is fixed in RAP 1.3 that I can backport to 1.2 to get us going? I am open to any possible workaround. Please keep in mind that I am able to add scrollbars to the parent shell of my app but that is not what we want. The solution that I am looking for is to enable the scrollbars for the browser.

I even changed 'dom.disable_window_open_feature.location' to true in FF configuration but the scrollbars won't show up on the window that is opened by RAP.

Appreciate for any hints,
Ed

[Updated on: Tue, 06 April 2010 19:43]

Report message to a moderator

Re: Is it possible to show browser's scrollBar in RAP? [message #525557 is a reply to message #525536] Tue, 06 April 2010 21:13 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2429
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Ed,

I've just tested the javascript and it works as expected in IE and FF
3.6.3 with RAP 1.3 (CVS HEAD).... but you are right, the scrollbars
don't show in FF 3.6.3 with RAP 1.2.2. To be honest, I have no idea way
it works in 1.3, but not in 1.2.2. I can't remember any related issue,
fix or change.

Best,
Ivan

On 04/06/2010 10:34 PM, Ed wrote:
> doc.getDocumentElement().body.style.overflow = "auto";
Re: Is it possible to show browser's scrollBar in RAP? [message #525728 is a reply to message #525557] Wed, 07 April 2010 15:27 Go to previous messageGo to next message
Ed  is currently offline Ed Friend
Messages: 4
Registered: April 2010
Junior Member
Hi Ivan, Thanks for your quick response.

Is there any document/best practices/known issues on migrating RAP 1.2.2 projects to RAP 1.3 that you can point me to?

Regards,
Ed
Re: Is it possible to show browser's scrollBar in RAP? [message #525875 is a reply to message #525728] Thu, 08 April 2010 07:15 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2429
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Ed,

RAP 1.3 is backward compatible with RAP 1.2. I know only one
incompatible issue related to custom widgets, which is easily resolved -
see bug 261355, comments # 11, 13.

HTH,
Ivan

On 04/07/2010 6:27 PM, Ed wrote:
> Hi Ivan, Thanks for your quick response.
> Is there any document/best practices/known issues on migrating RAP
> 1.2.2 projects to RAP 1.3 that you can point me to?
>
> Regards,
> Ed
Re: Is it possible to show browser's scrollBar in RAP? [message #525904 is a reply to message #525875] Thu, 08 April 2010 07:42 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Ed,

as Ivan already said, in general, each version of RAP is backward
compatible to its predecessor.
Noteworthy news for every milestone as well as incompatibilities (if
ever) are documented here:
http://www.eclipse.org/rap/noteworthy

HTH
Rüdiger

On 08.04.2010 09:15, Ivan Furnadjiev wrote:
> Hi Ed,
>
> RAP 1.3 is backward compatible with RAP 1.2. I know only one
> incompatible issue related to custom widgets, which is easily resolved -
> see bug 261355, comments # 11, 13.
>
> HTH,
> Ivan
>
> On 04/07/2010 6:27 PM, Ed wrote:
>> Hi Ivan, Thanks for your quick response.
>> Is there any document/best practices/known issues on migrating RAP
>> 1.2.2 projects to RAP 1.3 that you can point me to?
>>
>> Regards,
>> Ed
Previous Topic:How to update a TableViewer?
Next Topic:MultiLanguage by default in RAP start configurations?
Goto Forum:
  


Current Time: Mon Dec 30 16:50:01 GMT 2024

Powered by FUDForum. Page generated in 0.04380 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top