[richfaces-issues] [JBoss JIRA] Closed: (RF-5671) Panel Menu. selectedChild problems
Tsikhon Kuprevich (JIRA)
jira-events at lists.jboss.org
Wed Apr 29 08:50:46 EDT 2009
[ https://jira.jboss.org/jira/browse/RF-5671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsikhon Kuprevich closed RF-5671.
---------------------------------
Assignee: Nick Belaevski (was: Tsikhon Kuprevich)
> 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
> Fix For: 3.3.1
>
>
> 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