[richfaces-issues] [JBoss JIRA] (RF-12054) TabPanel onitemchange of outer tab fired by inner tab
Brian Leathem (JIRA)
jira-events at lists.jboss.org
Wed Mar 21 16:16:48 EDT 2012
[ https://issues.jboss.org/browse/RF-12054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Leathem updated RF-12054:
-------------------------------
Fix Version/s: 4.Future
Forum Reference: https://community.jboss.org/thread/196901 (was: https://community.jboss.org/thread/196901)
> TabPanel onitemchange of outer tab fired by inner tab
> -----------------------------------------------------
>
> Key: RF-12054
> URL: https://issues.jboss.org/browse/RF-12054
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-panels-layout-themes
> Affects Versions: 4.2.0.Final
> Reporter: Przemysław Dębski
> Labels: tabpanel
> Fix For: 4.Future
>
>
> When changing outer tab, "onitemchange" event of outer tab is fired and alert with text 'onitemchange' is shown.
> But when changing inner tab both "onitemchange" event of outer tab and inner tab are fired and two alerts are show, one with text 'onitemchange' and second with 'onitemchange inner'.
> It's wrong behaviour, because outer tab is not switched and its "onitemchange" event shouldn't be fired. Same situation with "onbeforeitemchange".
> Page code to reproduce:
> {code:xml}
> <html contentType="text/html" 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:rich="http://richfaces.org/rich">
> <h:head></h:head>
> <h:body>
> <h:form>
> <rich:tabPanel onitemchange="alert('onitemchange')">
> <rich:tab name="tab1" header="tab1">tab1</rich:tab>
> <rich:tab name="tab2" header="tab2">
> <rich:tabPanel onitemchange="alert('onitemchange inner')">
> <rich:tab name="tabinner1" header="tab inner 1">tab inner 1</rich:tab>
> <rich:tab name="tabinner2" header="tab inner 2">tab inner 2</rich:tab>
> </rich:tabPanel>
> </rich:tab>
> </rich:tabPanel>
> </h:form>
> </h:body>
> </html>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list