-
1. Re: Using different styles for rich:panelMenuItem on the same page
ilya_shaikovsky Sep 1, 2010 5:42 AM (in response to lenyas66)style="color: #FFFFFF; background-color: #194F87"
should works if you will add background-image:none; color change not visible because default image still applied.
-
2. Re: Using different styles for rich:panelMenuItem on the same page
lenyas66 Sep 1, 2010 10:27 AM (in response to ilya_shaikovsky)Hi Ilya,
It doesn't seem to be working as rich-pmenu-item settings defined for the page seem still prevail over the ones in this item.
Here's what I have for the page:
<
style>
.myClass
{
background-color: #ecf4fe;
}
.rich-pmenu-top-group-self-label
{
color: #FFFFFF
}
.rich-pmenu-item
{
background-color: #ecf4fe;
}
.rich-pmenu-item-label
{
background-color: #ecf4fe;
}
</
style>
And here's what appears in the item:
<
rich:panelMenuItem hoverClass="myClass" label="Home" value="#{menuState.menu['home']}"
actionListener="#{menuBean.select}" action="home" mode="server"
style="color: #FFFFFF; background-color: #194F87; background-image:none;" >
</rich:panelMenuItem>
End result could be seen in the attached file. Check the first menu item on the left.
-
Rich_panelMenuitem_style.doc 269.0 KB
-