[richfaces-issues] [JBoss JIRA] Reopened: (RF-10564) Panel Menu - fires @onexpand and @oncollapse multiple times in client mode

Lukas Fryc (JIRA) jira-events at lists.jboss.org
Mon Mar 7 08:48:45 EST 2011


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

Lukas Fryc reopened RF-10564:
-----------------------------



Pavel, still doesn't work correctly - I'm not convinced about it is intentional behavior, but when you setup client side event handlers, the events are raised as follows:

[beforeselect, beforeswitch, beforecollapse, select, collapse, collapse, switch]

Steps to reproduce:

1. open http://localhost:8080/metamer/faces/components/richPanelMenuGroup/simple.xhtml
2. set @mode=client
3. set @oncollapse=alert('collapse')
4. set @onexpand=alert('expand')
5. click on Group 2
FAIL: the event 'collapse' is fired twice.

I think it is caused by collapsing underlying Group 2.3, but then explain me why 'beforecollapse' is triggered once but 'collapse' twice?

>From perspective of end-developer this is unintentional behavior.

And additionaly it brings inconsistency with ajax mode, which triggers this event only once.

> Panel Menu - fires @onexpand and @oncollapse multiple times in client mode
> --------------------------------------------------------------------------
>
>                 Key: RF-10564
>                 URL: https://issues.jboss.org/browse/RF-10564
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-menu
>    Affects Versions: 4.0.0.Milestone6
>         Environment: RichFaces 4.0.0-SNAPSHOT r.21749
> Metamer 4.0.0-SNAPSHOT r.21737
> Mojarra 2.0.4-b09
> Apache Tomcat 6.0.29
> OpenJDK Runtime Environment 1.6.0_20-b20 @ Linux
> Chrome 9.0.597.98 @ Linux x86_64
>            Reporter: Lukas Fryc
>            Assignee: Pavel Yaschenko
>              Labels: metamer-ftest-tracked
>             Fix For: 4.0.0.Final
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list