[richfaces-issues] [JBoss JIRA] Updated: (RF-7581) panelMenu: selected state not always applied correctly on ajax expansion

Andrey Markhel (JIRA) jira-events at lists.jboss.org
Fri Jul 31 10:04:29 EDT 2009


     [ https://jira.jboss.org/jira/browse/RF-7581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Markhel updated RF-7581:
-------------------------------

    Priority: Minor  (was: Major)


> panelMenu: selected state not always applied correctly on ajax expansion
> ------------------------------------------------------------------------
>
>                 Key: RF-7581
>                 URL: https://jira.jboss.org/jira/browse/RF-7581
>             Project: RichFaces
>          Issue Type: Bug
>          Components: component-misc
>    Affects Versions: 3.3.1
>            Reporter: Ilya Shaikovsky
>            Assignee: Andrey Markhel
>            Priority: Minor
>             Fix For: 3.3.2.CR1
>
>
> 1) page code to open attached. 
> 2) click first menu Item
> 3) click menuGroup1 
> result - First MenuItem no more highlighted on hover. 
> Happens only if 1 item clicked updates menu (in this case full page render) and the second clicked - not.
> <ui:composition xmlns="http://www.w3.org/1999/xhtml"
> 	xmlns:ui="http://java.sun.com/jsf/facelets"
> 	xmlns:h="http://java.sun.com/jsf/html"
> 	xmlns:f="http://java.sun.com/jsf/core"
> 	xmlns:a4j="http://richfaces.org/a4j"
> 	xmlns:rich="http://richfaces.org/rich">
> 	<style>
> .rich-pmenu {
> 	
> }
> /* Realign menu items */
> .rich-pmenu td {
> 	padding-left: 0.25em;
> 	vertical-align: middle;
> 	height: 1.8em;
> }
> /* Menu Top Group */
> .rich-pmenu-top-group {
> 	background-color: #fffcbe;
> 	background-color: inherit;
> 	background-image: none;
> }
> td.rich-pmenu-top-group-self-icon {
> 	padding-left: 0.2em;
> }
> td.rich-pmenu-top-group-self-label {
> 	padding-left: 0.25em;
> }
> /* Surrounding DIV of top menu group */
> .rich-pmenu-top-group-div {
> 	border: 0;
> 	margin: 0;
> }
> /* Menu Group (nested groups) */
> .rich-pmenu-group {
> 	font-weight: normal;
> 	border-top: 1px solid #fff;
> }
> /* Menu Item */
> .rich-pmenu-item {
> 	background-color: #fffcbe;
> 	border-top: 1px solid #fff;
> }
> /* Selected item in menu (works for top group, group, item) */
> .rich-pmenu-selected-element,.rich-pmenu-hovered-element {
> 	background-color: #f9f300;
> 	font-style: normal;
> 	font-weight: normal;
> }
> .rich-pmenu-selected-element table tr:hover {
> 	background-color: blue;
> }
> </style>
> 	<rich:panelMenu
> 		iconCollapsedGroup="resources/styles/rips/images/menuclosedS.gif"
> 		iconExpandedGroup="resources/styles/rips/images/menuopenS.gif"
> 		iconTopItem="resources/styles/rips/images/menuclosedS.gif"
> 		iconItem="resources/styles/rips/images/menuclosedS.gif"
> 		expandMode="ajax" mode="server" id="pmenu"
> 		selectedChild="#{navigationContext.selectedItem}">
> 		<rich:panelMenuItem label="MenuItem 1" id="item1"
> 			actionListener="#{navigationContext.doListenSelectItem}"
> 			action="#{navigationPoints.getIndex}" />
> 		<rich:panelMenuGroup label="MenuGroup 1" id="group1" reRender="pmenu"
> 			value="#{navigationContext.groupState['group1']}">
> 			<rich:panelMenuGroup label="MenuGroup 2" id="group2" reRender="pmenu"
> 				value="#{navigationContext.groupState['group2']}">
> 				<rich:panelMenuItem label="MenuItem 211" id="item211"
> 					actionListener="#{navigationContext.doListenSelectItem}"
> 					action="#{navigationPoints.getClientSearchRedirect}" />
> 				<rich:panelMenuItem label="MenuItem 212" id="item212"
> 					actionListener="#{navigationContext.doListenSelectItem}"
> 					action="#{navigationPoints.getClientSearchRedirect}" />
> 			</rich:panelMenuGroup>
> 			<rich:panelMenuItem label="MenuItem 22" id="item22"
> 				actionListener="#{navigationContext.doListenSelectItem}"
> 				action="#{navigationPoints.getClientSearchRedirect}" />
> 		</rich:panelMenuGroup> 
> 		<rich:panelMenuItem label="MenuItem 3" id="item3"
> 			actionListener="#{navigationContext.doListenSelectItem}"
> 			action="#{navigationPoints.getClientSearchRedirect}" />
> 	</rich:panelMenu>
> </ui:composition>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list