|
Re: Externailze Css [message #523227 is a reply to message #523212] |
Thu, 25 March 2010 15:18 |
|
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 #523254 is a reply to message #523236] |
Thu, 25 March 2010 16:25 |
|
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 |
|
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 |
|
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).
|
|
|
Powered by
FUDForum. Page generated in 0.24417 seconds