You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by pr...@apache.org on 2005/11/22 22:13:22 UTC

svn commit: r348254 - in /myfaces/api/trunk/src/java/javax/faces: component/_ComponentUtils.java webapp/UIComponentTag.java

Author: prophecy
Date: Tue Nov 22 13:13:21 2005
New Revision: 348254

URL: http://svn.apache.org/viewcvs?rev=348254&view=rev
Log:
- added SelectBooleanAjax component
- added Sandbox message tag 
- rolled back some changes to UIComponentTag

Modified:
    myfaces/api/trunk/src/java/javax/faces/component/_ComponentUtils.java
    myfaces/api/trunk/src/java/javax/faces/webapp/UIComponentTag.java

Modified: myfaces/api/trunk/src/java/javax/faces/component/_ComponentUtils.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/component/_ComponentUtils.java?rev=348254&r1=348253&r2=348254&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/component/_ComponentUtils.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/component/_ComponentUtils.java Tue Nov 22 13:13:21 2005
@@ -72,7 +72,6 @@
 
     static UIComponent findComponent(UIComponent findBase, String id)
     {
-        //System.out.println("findBase: " + findBase + " - " + findBase.getId());
         if (idsAreEqual(id,findBase))
         {
             return findBase;
@@ -81,17 +80,16 @@
         for (Iterator it = findBase.getFacetsAndChildren(); it.hasNext(); )
         {
             UIComponent childOrFacet = (UIComponent)it.next();
-            //System.out.println("childorfacet: " + childOrFacet + " - " + childOrFacet.getId());
-            // TR - this was not finding all components, removing this if statement worked
-            //if (!(childOrFacet instanceof NamingContainer))
-            //{
+            // TR - this was not finding all components, moved an alternative method that descends into NamingContainers into ComponentUtils in sandbox
+            if (!(childOrFacet instanceof NamingContainer))
+            {
                 UIComponent find = findComponent(childOrFacet, id);
                 if (find != null) return find;
-            //}
-            /*else if (idsAreEqual(id,childOrFacet))
+            }
+            else if (idsAreEqual(id,childOrFacet))
             {
                 return childOrFacet;
-            }*/
+            }
         }
 
         return null;

Modified: myfaces/api/trunk/src/java/javax/faces/webapp/UIComponentTag.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/src/java/javax/faces/webapp/UIComponentTag.java?rev=348254&r1=348253&r2=348254&view=diff
==============================================================================
--- myfaces/api/trunk/src/java/javax/faces/webapp/UIComponentTag.java (original)
+++ myfaces/api/trunk/src/java/javax/faces/webapp/UIComponentTag.java Tue Nov 22 13:13:21 2005
@@ -431,7 +431,7 @@
     }
 
 
-    protected String getOrCreateUniqueId(FacesContext context)
+    private String getOrCreateUniqueId(FacesContext context)
     {
         String id = getId();
         if (id != null)