myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r378620 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/util/ComponentUtils.java
Date Fri, 17 Feb 2006 20:28:56 GMT
Author: imario
Date: Fri Feb 17 12:28:56 2006
New Revision: 378620

URL: http://svn.apache.org/viewcvs?rev=378620&view=rev
Log:
removed unused method

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/util/ComponentUtils.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/util/ComponentUtils.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/util/ComponentUtils.java?rev=378620&r1=378619&r2=378620&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/util/ComponentUtils.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/util/ComponentUtils.java
Fri Feb 17 12:28:56 2006
@@ -32,30 +32,6 @@
 {
     private static Log log = LogFactory.getLog(ComponentUtils.class);
 
-     /**
-     * TR- This was moved from AjaxPhaseListenere on checkin 344383
-     *
-     * @param context
-     * @param root
-     * @param clientId
-     * @return component referenced by clientId or null if not found
-     */
-    public static UIComponent findComponent(FacesContext context, UIComponent root, String
clientId)
-    {
-        UIComponent component = null;
-        for(int i = 0; i < root.getChildCount() && component == null; i++)
-        {
-            UIComponent child = (UIComponent)root.getChildren().get(i);
-            component = findComponent(context, child, clientId);
-        }
-
-        if(component == null && root.getClientId(context).equals(clientId))
-        {
-            component = root;
-        }
-        return component;
-    }
-
     public static UIComponent findFirstMessagesComponent(FacesContext context, UIComponent
root)
     {
         UIComponent component = null;



Mime
View raw message