• Post Reply Bookmark Topic Watch Topic
  • New Topic

panelTab label style  RSS feed

 
James Ellis
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple set of tabs set up in the following code:



I can figure out how to set the style of the text that is in the tab - but I can't figure out how to set style of the text for the label (in IE it looks like a button) at the top of each tab. I've changed the "styleClass" in both the panelTab and the panelTabbedPane, but it doesn't affect the label. Has anyone been able to modify the style (font) of the label at the top of each tab?

Thanks,
Jim

[ March 16, 2006: Message edited by: James Ellis ]

[ March 16, 2006: Message edited by: James Ellis ]
[ March 16, 2006: Message edited by: James Ellis ]
 
James Ellis
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I couldn't figure out how to do this strictly through the panelTabbedPane tag, so I found this workaround. Include this in your <head> tag:



Note that you must include the keyword "important". This will override the style that MyFaces generates for you. I think this must be a bug in the panelTabbedPane component, since I would think that this style would (should) be set through the attribute "activeTabStyleClass". JSF growing pains I suppose...
 
Daniel Prene
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A quick tip:
replace

with


You probably already knew that but...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!