Page 1 of 1

Setting lookandfeel dinamically

Posted: Mon Apr 27, 2009 1:19 pm
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!

Re: Setting lookandfeel dinamically

Posted: Mon Apr 27, 2009 5:18 pm
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 ?