[richfaces-issues] [JBoss JIRA] (RF-12054) TabPanel onitemchange of outer tab fired by inner tab

Przemysław Dębski (JIRA) jira-events at lists.jboss.org
Fri Mar 16 03:35:47 EDT 2012


Przemysław Dębski created RF-12054:
--------------------------------------

             Summary: 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)
    Affects Versions: 4.2.0.Final
            Reporter: Przemysław Dębski


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