Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Externailze Css(Externalize Css)
Externailze Css [message #523212] Thu, 25 March 2010 10:43 Go to next message
zhang  is currently offline zhang
Messages: 6
Registered: July 2009
Junior Member
Is there a way to externalize the css file used for theming ?
I try to use ThemeManager.getInstance().registerTheme method...
Re: Externailze Css [message #523227 is a reply to message #523212] Thu, 25 March 2010 11:18 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

zhang wrote:
> Is there a way to externalize the css file used for theming ?
> I try to use ThemeManager.getInstance().registerTheme method...

Could you explain what you mean by "externalize"?

Ralf
Re: Externailze Css [message #523236 is a reply to message #523227] Thu, 25 March 2010 11:50 Go to previous messageGo to next message
zhang  is currently offline zhang
Messages: 6
Registered: July 2009
Junior Member
By externalize css file, I mean to work with a JVM argument which will give the path to a file located on the disk outside
of the RAP application.
This will allow a person to change the css file without having to release our RAP application war.

Best regards !
Re: Externailze Css [message #523254 is a reply to message #523236] Thu, 25 March 2010 12:25 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

zhang wrote:
> By externalize css file, I mean to work with a JVM argument which will
> give the path to a file located on the disk outside
> of the RAP application.
> This will allow a person to change the css file without having to
> release our RAP application war.
>
> Best regards !
>

Honestly, I don't think that CSS files should be distributed separated
from the application since the theme is a non-trivial part of the
application itself. What is your use case?

Since *.war files and *.jar files are in zip format, couldn't this
person simply replace the theme file within the war archive?

Ralf
Re: Externailze Css [message #523455 is a reply to message #523212] Fri, 26 March 2010 10:26 Go to previous message
Martijn Cremer is currently offline Martijn Cremer
Messages: 77
Registered: January 2010
Location: Breda
Member

Zhang,

Depending on what kind of Server application you use (Glass fish, Tomcat). You have access from the outside world. Al touch I don't think its something you want.

In tomcat for instance the war file gets unpacked in TOMCAT_HOME/webapps/ (name of the war file you uploaded).

It would be better to make an editor in your application that directly change it (that the best solution if you want to on the fly change something).


hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.
Re: Externailze Css [message #523491 is a reply to message #523455] Fri, 26 March 2010 06:40 Go to previous message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Please note that the theme files are read on application (not session)
startup, changes at runtime will not take effect until the application
is restarted.

Ralf

Martijn Cremer wrote:
> Zhang,
>
> Depending on what kind of Server application you use (Glass fish,
> Tomcat). You have access from the outside world. Al touch I don't think
> its something you want.
>
> In tomcat for instance the war file gets unpacked in
> TOMCAT_HOME/webapps/ (name of the war file you uploaded).
>
> It would be better to make an editor in your application that directly
> change it (that the best solution if you want to on the fly change
> something).
Previous Topic:How to change the font size of the title in a TitleAreaDialog?
Next Topic:Request.js - eval not in global scope for IE
Goto Forum:
  


Current Time: Thu Jul 24 21:51:56 EDT 2014

Powered by FUDForum. Page generated in 0.02318 seconds