Use some binding for the stylesheet in your border:
<span jwcid="@Shell" ... stylesheet="ognl:stylesheet"/>
---
public IAsset getStyleshhet() {
if (isLogedIn())
return getAssets().get("stylesheet2");
else
return getAssets().get("styleshhet1");
}
Cheers,
Ron
ציטוט Nick Heudecker:
Hi,
I've built a Border component based on Geoff's suggestion and it's
working fine. I haven't been able to figure out how to conditionally
change the stylesheet based on user preferences. Is there any way to
do this?
Before the user logs in, I want to use the default stylesheet. After,
I want to use the stylesheet in their preferences. Thanks for any
information.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]