Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Chane contextPath programmatically
Chane contextPath programmatically [message #892619] Thu, 28 June 2012 18:21 Go to next message
Eclipse UserFriend
Hi,

ist it possible to customize the context path "..../rap"
programmatically and not with a branding when using a workbench?

We need to make this settable through a propertiese file so that our
customers can change this to their needs without writing plugins/fragment...

Regards,
Markus
Re: Chane contextPath programmatically [message #892711 is a reply to message #892619] Fri, 29 June 2012 10:02 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

the context path is what comes before the servlet path and is usually
set at deployment time (e.g. derived from war file name):

http://hostname/context/servlet

If you're talking about the servlet path, for workbench applications,
this can only be set in a branding extension, or in 1.5, directly in an
entrypoint extension. I think it should be possible to add extensions
programmatically...

Regards, Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Chane contextPath programmatically [message #893107 is a reply to message #892711] Mon, 02 July 2012 16:10 Go to previous messageGo to next message
Eclipse UserFriend
Am 29.06.2012 12:02, schrieb Ralf Sternberg:
> Hi,
>
> the context path is what comes before the servlet path and is usually
> set at deployment time (e.g. derived from war file name):
>
> http://hostname/context/servlet
>
> If you're talking about the servlet path, for workbench applications,
> this can only be set in a branding extension, or in 1.5, directly in an
> entrypoint extension. I think it should be possible to add extensions
> programmatically...
>
> Regards, Ralf
>

Hi Ralf,

Yes, I was talking about the servlet path.

I tried adding the extension programmatically in my Activator, but The
problem is, that RAP is reading the extensions the
WorkbenchApplicationConfigurator called by the HttpServiceTracker.
So registering the extension in my Activators start method seems to be
too late. Any other suggestions?

Regards,
Markus
Re: Chane contextPath programmatically [message #893433 is a reply to message #893107] Wed, 04 July 2012 07:26 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Markus,

you could try to add a branding in a bundle that has a lower start level
than rap.ui. This bundle must not have a dependency to rap.ui, but since
the branding is plain declaration, it could work - it's an ugly
workaround however. Feel free to open an enhancement request.

Best regards,
Ralf


--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Chane contextPath programmatically [message #897501 is a reply to message #893433] Tue, 24 July 2012 10:09 Go to previous message
Eclipse UserFriend
Heres the enhancement request
https://bugs.eclipse.org/bugs/show_bug.cgi?id=385832

Am 04.07.2012 09:26, schrieb Ralf Sternberg:
> Hi Markus,
>
> you could try to add a branding in a bundle that has a lower start level
> than rap.ui. This bundle must not have a dependency to rap.ui, but since
> the branding is plain declaration, it could work - it's an ugly
> workaround however. Feel free to open an enhancement request.
>
> Best regards,
> Ralf
>
>
Previous Topic:Browser Title won't change after switching locale
Next Topic:Experiences with RAP
Goto Forum:
  


Current Time: Fri Apr 26 19:54:06 GMT 2024

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

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

Back to the top