incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r423536 - /incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/desktop/ShowOneTabRenderer.java
Date Wed, 19 Jul 2006 17:30:28 GMT
Author: awiner
Date: Wed Jul 19 10:30:27 2006
New Revision: 423536

URL: http://svn.apache.org/viewvc?rev=423536&view=rev
Log:
ADFFACES-47: Nested <af:showOneTab/> out of sync.  Patch from Pierre-Luc Archambault

Modified:
    incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/desktop/ShowOneTabRenderer.java

Modified: incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/desktop/ShowOneTabRenderer.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/desktop/ShowOneTabRenderer.java?rev=423536&r1=423535&r2=423536&view=diff
==============================================================================
--- incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/desktop/ShowOneTabRenderer.java
(original)
+++ incubator/adffaces/trunk/adf-faces/adf-faces-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/desktop/ShowOneTabRenderer.java
Wed Jul 19 10:30:27 2006
@@ -119,6 +119,11 @@
     if (!POSITION_ABOVE.equals(position))
     {
       SubTabBarUtils.setOrientation(context, ORIENTATION_BOTTOM );
+
+      int resolvedSelectedIndex = _getResolvedSelectedIndex(context, node);
+      SubTabBarUtils.setSelectedIndex(context,
+				      resolvedSelectedIndex);
+
       Renderer subTabBarRenderer = 
         context.getRendererManager().getRenderer(
           MARLIN_NAMESPACE, SUB_TAB_BAR_NAME);
@@ -157,7 +162,7 @@
   }
   
   /**
-  * Returns the index of the first avilable showItem child that has its  
+  * Returns the index of the first available showItem child that has its  
   *  'selected' property set to true. 
   * If none of children are selected, the index of first such child that is 
   *  enabled is returned.



Mime
View raw message