Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Custom theme can be applied only via URL
Custom theme can be applied only via URL [message #101883] Mon, 11 August 2008 10:42 Go to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi all,

I tried to define my own theme using css file and register it via
org.eclipse.rap.ui.themes & put the id in the branding ext. point but it
doesn't work.

But if I put the theme id in the URL it works as expected.

Any idea why ?

Any help would be greatly appreciated.

Regards,

Setya
Re: Custom theme can be applied only via URL [message #102008 is a reply to message #101883] Tue, 12 August 2008 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Setya,

Setya wrote:
> I tried to define my own theme using css file and register it via
> org.eclipse.rap.ui.themes & put the id in the branding ext. point but it
> doesn't work.
> But if I put the theme id in the URL it works as expected.
>
> Any idea why ?

Brandings are bound to a servlet name. You have to use the servlet name
specified in the branding instead of the default "rap" to activate your
branding.

Have a look at the branding in the demo project. The servlet name is
"tea" and you activate it using http://localhost:9090/tea instead of
http://localhost:9090/rap.

Best Regards, Ralf
Re: Custom theme can be applied only via URL [message #102039 is a reply to message #102008] Tue, 12 August 2008 09:42 Go to previous messageGo to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Ralf,

> Brandings are bound to a servlet name. You have to use the servlet name
> specified in the branding instead of the default "rap" to activate your
> branding.

> Have a look at the branding in the demo project. The servlet name is
> "tea" and you activate it using http://localhost:9090/tea instead of
> http://localhost:9090/rap.

Thanks,

My servlet name is 'demo'.
When I run my RAP app using RAP Application launcher and it produces URL
as:

http://127.0.0.1:55945/rap?startup=demo

Using above URL my custom theme is not loaded, but when I change to:

http://127.0.0.1:55945/demo

my custom theme is loaded fine.

I have to put 'demo' in the Servlet Name field of RAP App Launcher instead
of 'rap' but then the URL produced is
http://127.0.0.1:55945/demo?startup=demo because I also put 'demo' in
Entry Point field. Although it runs fine is there any way I can change it
to http://127.0.0.1:55945/demo via launcher ?

Regards,

Setya
Re: Custom theme can be applied only via URL [message #102116 is a reply to message #102039] Tue, 12 August 2008 10:50 Go to previous message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Setya,

Setya wrote:
> I have to put 'demo' in the Servlet Name field of RAP App Launcher
> instead of 'rap' but then the URL produced is
> http://127.0.0.1:55945/demo?startup=demo because I also put 'demo' in
> Entry Point field. Although it runs fine is there any way I can change
> it to http://127.0.0.1:55945/demo via launcher ?

If your "demo" is your default entry point, you can skip it in the URL.
This is currently not possible with the RAP launcher, but it makes no
difference, whether the default entry point is explicitly appended to
the URL or implicitly chosen. I think that for a development
environment, explicit is generally preferable.

Best regards, Ralf
Previous Topic:How to change images?
Next Topic:Unable to change Combo border via theming
Goto Forum:
  


Current Time: Fri Apr 26 17:20:11 GMT 2024

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

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

Back to the top