-
1. Re: rich:panelMenuItem changing background color
ilya_shaikovsky Nov 5, 2007 5:47 AM (in response to khanmurtuza)sorry our fault with documentation.
use.rich-pmenu-hovered-element{ background-color: rgb(255, 255, 255); }
instead. -
2. Re: rich:panelMenuItem changing background color
khanmurtuza Nov 5, 2007 12:23 PM (in response to khanmurtuza)Thank you but rich-pmenu-hovered-element works for mouse over, I wanted to change the color of selected item.
-
3. Re: rich:panelMenuItem changing background color
ilya_shaikovsky Nov 6, 2007 5:23 AM (in response to khanmurtuza)Sorry.. I misunderstand you :/
http://jira.jboss.com/jira/browse/RF-1288
thank you! -
4. Re: rich:panelMenuItem changing background color
altes-kind Nov 20, 2007 10:37 AM (in response to khanmurtuza)Hi! I checked out the latest 3.1.3-Snapshot - but there's still the same problem with highlighting a selected item.
As far I can see a menu item consits of one table with one row and three columns - but the CSS Classrich-pmenu-item-selected
still affects only the column in the middle (as seen in http://jira.jboss.com/jira/secure/attachment/12316797/Screenshot.png).
Is there a way to change the background-color for the whole selected element? -
5. Re: rich:panelMenuItem changing background color
altes-kind Nov 21, 2007 8:25 AM (in response to khanmurtuza)Sorry... I still need your help. :-(
Is there a way to change the background-color for the whole selected element in a rich:panelMenu? -
6. Re: rich:panelMenuItem changing background color
ilya_shaikovsky Nov 21, 2007 8:46 AM (in response to khanmurtuza)strange.. for me works fine under richfaces-ui-3.1.3-20071121.053810-24-bin.zip snapshot
-
7. Re: rich:panelMenuItem changing background color
altes-kind Nov 23, 2007 6:22 AM (in response to khanmurtuza)Thats more or less the HTML Code the rich:PanelMenu component generates for one menu item:
<table class="dr-pmenu-item rich-pmenu-item rich-pmenu-top-item"> <tr> <td class="dr-pmenu-nowrap rich-pmenu-item-icon rich-pmenu-top-item-icon"><img src="..."/></td> <td class="dr-pmenu-group-self-label rich-pmenu-item-label rich-pmenu-top-item-label dr-pmenu-selected-item rich-pmenu-item-selected">Home</td> <td><img src="..." /></td> </tr> </table>
As you can see the CSS class "dr-pmenu-selected-item" affects only the column in the middle - so when you change the background-color for this CSS class it only affects the column in the middle but NOT the column on the left and on the right.
Is there a way to tell the component to apply the CSS class "dr-pmenu-selected-item" for all the -Tags or (that would be even better) for the whole ? -
8. Re: rich:panelMenuItem changing background color
altes-kind Nov 26, 2007 5:25 AM (in response to khanmurtuza)Hi Ilya,
can you show/explain me how you change the background color of one menu item? Thanks!!!
altes-kind