You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2007/01/09 09:27:51 UTC

svn commit: r494340 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java

Author: bommel
Date: Tue Jan  9 00:27:46 2007
New Revision: 494340

URL: http://svn.apache.org/viewvc?view=rev&rev=494340
Log:
update state

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=494340&r1=494339&r2=494340
==============================================================================
--- 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 Tue Jan  9 00:27:46 2007
@@ -192,10 +192,9 @@
       }
       UIPanel renderedTab = getRenderedTab();
       renderedTab.processUpdates(context);
-      updateState(context);
+
     } else {
       super.processUpdates(context);
-      updateState(context);
     }
   }
 
@@ -203,6 +202,7 @@
     super.broadcast(facesEvent);
     if (facesEvent instanceof TabChangeEvent) {
       setActiveIndex(((TabChangeEvent) facesEvent).getNewTabIndex());
+      updateState(getFacesContext());
       MethodBinding tabChangeListenerBinding = getTabChangeListener();
       if (tabChangeListenerBinding != null) {
         try {