File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Tab Panel Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Tab Panel Question" Watch "Tab Panel Question" New topic

Tab Panel Question

The David Miller

Joined: Jul 09, 2010
Posts: 3
Hi all,

This is my very first post :-) I have a question about the richFace tabPanel, and was hoping one of you JSF/richFace experts could answer.

I have a richface tabPanel, and want to be able to control the color of the text on the tab's label:

<rich:tab label="#{MyBean.tabLabel}"....

In my backing bean:

setTabLabel("<span class = \"red\">Red Label</span>");


setTabLabel("<span class = \"green\">Green Label</span>");

However, I don't think there is a way to set "escape = false". I've also tried using <h; and >, however it just prints out the characters. Any suggestions on how to change the font/color?

I agree. Here's the link:
subject: Tab Panel Question
jQuery in Action, 3rd edition