[richfaces-issues] [JBoss JIRA] Created: (RF-5671) Panel Menu. selectedChild problems

Ilya Shaikovsky (JIRA) jira-events at lists.jboss.org
Tue Jan 13 05:28:04 EST 2009


Panel Menu. selectedChild problems
----------------------------------

                 Key: RF-5671
                 URL: https://jira.jboss.org/jira/browse/RF-5671
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.0
            Reporter: Ilya Shaikovsky
            Assignee: Nick Belaevski


1)
		<rich:panelMenu selectedChild="#{userBean.name}" id="pb" mode="ajax">
				<rich:panelMenuItem id="one" label="one"/>
				<rich:panelMenuItem id="two" label="two"/>
		</rich:panelMenu>
In this case initial rendering is ok. But after clicking two - this value not saved into the model - so selection lost after refresh 

2)
		<rich:panelMenu selectedChild="#{userBean.name}" id="pb" mode="ajax">
				<rich:panelMenuItem id="one" label="one"/>
				<rich:panelMenuItem id="two" label="two"/>
		</rich:panelMenu>
		<a4j:commandButton value="change selected" action="#{userBean.action}" reRender="pb"></a4j:commandButton>
action on the command button changes selected child in the model via ajax, but the component isn't read it from the model on rendering - so selection change doesn't happens.

3)		<rich:panelMenu selectedChild="#{userBean.name}" id="pb" mode="ajax">
			<rich:panelMenuGroup expanded="true">
				<rich:panelMenuItem id="one" label="one"/>
				<rich:panelMenuItem id="two" label="two"/>
			</rich:panelMenuGroup>
		</rich:panelMenu>
In this case if the User.name="one" by default - no selection will happens at all from the beggining because item in collapsed group.



-- 
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