开发者

JSF Changing Css Parts while lifetime

I was wondering if you can change your style while lifetime?!

Example: Administrtor loggs into the app, chooses interface settings and finally开发者_运维百科 changes the color of the overall header

That would be a nice component to do so: link

So is that possible? And can you give me a little hint how to do that :-) Thank's


I had done this by having multiple css classes predefined and then on the back-end had a variable containing the current class in use.
You can then with an interface or some parameters, or user settings, etc, choose a class to give to the variable.

In my jsp page the code was something like this:

<div class="#{logEntry.styleClass}">

and the backend variable "styleClass" was of type String.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜