Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP Startup Page(RAP Startup Page Without Browser Decorations)
RAP Startup Page [message #636017] Fri, 29 October 2010 01:48 Go to next message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 193
Registered: October 2010
Senior Member
Hello,

I've been looking at CAS PIA crm RAP based application.

Does anyone know how to invoke the browser in a new window without tabs (single page) when the application starts without browser's menu, favorite links, 3rd part searching tools, etc ?

This will provide more room for the workbench, when most of the browser areas is being occupied by many 3rd party tools and utilities already installed by the browser.

step - 1
http://www.cas-pia.de/en/try.html

step -2
CAS PIA Guest Access

Thanks,
Sudesh



[Updated on: Fri, 29 October 2010 01:50]

Report message to a moderator

Re: RAP Startup Page [message #636105 is a reply to message #636017] Fri, 29 October 2010 10:16 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Sudesh,

this is a simple JavaScript call to window.open() with suitable
parameters. You can find those snippet all over the internet, just try
Google.

Ralf

--
Ralf Sternberg

Need professional support for RAP and RCP?
http://www.eclipsesource.com/support/

Twitter: http://twitter.com/eclipsesource
Blog: http://www.eclipsesource.com/blogs/
Re: RAP Startup Page [message #636216 is a reply to message #636105] Fri, 29 October 2010 16:44 Go to previous messageGo to next message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 193
Registered: October 2010
Senior Member
hello ralf,

i googled and found few suggestions like :

ExternalBrowser.open("NEWWINDOW", "http://127.0.0.1:10082" + url,
ExternalBrowser.STATUS | ExternalBrowser.LOCATION_BAR |
ExternalBrowser.NAVIGATION_BAR);

the example above uses this snippet to invoke a new browser from the application event, like selectionListener.

my requirement is to automate this process, when the RAP client starts. it should automatically opens a new maximized window without browser tabs, history bar, 3rd party search tools, ect that are already sitting along side of my browser's navigator bar, which is consuming the workbench space unnecessarily.

If you invoke CAS Pia client from the browser, this invokes a new browser window with navigator bar only without other browser widgets like home, back, prev, refresh, google search, bookmarks and other tool bars.

Is there any extension point, configuration available to set this behavior when the RAP client start up ?

Kindly advise me where to begin ?
Ex. WorkbenchWindowAdvisor method or something like that.

thanks in advance.

regards,
sudesh
Re: RAP Startup Page [message #636229 is a reply to message #636216] Fri, 29 October 2010 18:33 Go to previous messageGo to next message
Cole Markham is currently offline Cole MarkhamFriend
Messages: 150
Registered: July 2009
Location: College Station, TX
Senior Member

Hi Sudesh,

It sounds like what you want is to launch your RAP application in a new window with no trim/chrome. I think the best way to do this would be to use a static landing page (i.e., not part of the RAP application) and then use a standard javascript call from there. That appears to be what the CAS PIA application is doing although there implementation seems more complex. You would just need a static html page with a link that looks like this:
<a href="javascript: window.open('/rap','','toolbar=no'); void('');">

More examples here. You could register the page using the org.eclipse.equinox.http.resources extension point so you wouldn't need an separate web server.
Re: RAP Startup Page [message #636335 is a reply to message #636229] Sun, 31 October 2010 03:33 Go to previous message
Sudesh Bulathsinhala is currently offline Sudesh BulathsinhalaFriend
Messages: 193
Registered: October 2010
Senior Member
Hi Cole,

Thanks for the solution. I'm sure this will solve the issue.
nevertheless, i'm still interested in finding if there's a fix available within the RAP framework.

Regards,
sudesh
Previous Topic:External Browser
Next Topic:JAAS login module in a Jar
Goto Forum:
  


Current Time: Tue Apr 16 18:26:36 GMT 2024

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

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

Back to the top