• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

panelTab label style

 
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A quick tip:
replace

with


You probably already knew that but...
 
What's a year in metric? Do you know this metric stuff tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic