Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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).
Re: Externailze Css [message #523491 is a reply to message #523455] Fri, 26 March 2010 06:40 Go to previous message
Eclipse UserFriend
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: Mon May 19 18:01:22 EDT 2025

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

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

Back to the top