You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2007/06/13 12:08:47 UTC
svn commit: r546802 -
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java
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) {