myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r546802 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java
Date Wed, 13 Jun 2007 10:08:47 GMT
Author: weber
Date: Wed Jun 13 03:08:46 2007
New Revision: 546802

URL: http://svn.apache.org/viewvc?view=rev&rev=546802
Log:
possible problem with nested tabgroups

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java?view=diff&rev=546802&r1=546801&r2=546802
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java
Wed Jun 13 03:08:46 2007
@@ -192,7 +192,7 @@
 
   public void broadcast(FacesEvent facesEvent) throws AbortProcessingException {
     super.broadcast(facesEvent);
-    if (facesEvent instanceof TabChangeEvent) {
+    if (facesEvent instanceof TabChangeEvent && facesEvent.getComponent() == this)
{
       Integer index = ((TabChangeEvent) facesEvent).getNewTabIndex();
       ValueBinding vb = getValueBinding(ATTR_SELECTED_INDEX);
       if (vb !=null) {



Mime
View raw message