Setting lookandfeel dinamically

Upload core product.
Post Reply
rollpix
Posts: 3
Joined: Thu Apr 16, 2009 1:33 pm

Setting lookandfeel dinamically

Post by rollpix »

Hi!
I have another question about the property lookandfeel.
Can I set this property dinamically from the javascript in order to use a different l&f for each domain?
I tried this, for example:
document.fileupload.setProperty("param10","lookandfeel");
document.fileupload.setProperty("value10","net.sourceforge.napkinlaf.NapkinLookAndFeel");
and this,
document.fileupload.setProperty("lookandfeel","net.sourceforge.napkinlaf.NapkinLookAndFeel");
but it didn´t work, and of course previously I commented the line lookandfeel=auto in i18n_bar.properties.

Thanks!

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Setting lookandfeel dinamically

Post by support »

No, because it's a static property. A solution could be to have dynamic .properties file.
<PARAM NAME="resources" VALUE="i18n_dynamicgenerated.properties">
and associates .properties to PHP so you can generate i18n_dynamicgenerated.properties content in PHP.

Could it fit to your need ?

Post Reply