RAP Startup Page [message #636017] |
Fri, 29 October 2010 01:48 |
Sudesh Bulathsinhala 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 #636216 is a reply to message #636105] |
Fri, 29 October 2010 16:44 |
Sudesh Bulathsinhala 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 |
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03479 seconds