Skip to main content


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 14:43 Go to next message
zhang  is currently offline zhang Friend
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 15:18 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
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 15:50 Go to previous messageGo to next message
zhang  is currently offline zhang Friend
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 16:25 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
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 14:26 Go to previous message
Martijn Cremer is currently offline Martijn CremerFriend
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 10:40 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
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 BrowserHistory
Next Topic:RAP with JPA/Eclipselink Shell for Glassfish
Goto Forum:
  


Current Time: Fri Apr 26 07:15:49 GMT 2024

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

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

Back to the top