You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2006/09/19 06:38:26 UTC

svn commit: r447727 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/focus/HtmlFocus.java

Author: mmarinschek
Date: Mon Sep 18 21:38:26 2006
New Revision: 447727

URL: http://svn.apache.org/viewvc?view=rev&rev=447727
Log:
fix for TOMAHAWK-581: Focus component cannot focus controls within a subview.

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/focus/HtmlFocus.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/focus/HtmlFocus.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/focus/HtmlFocus.java?view=diff&rev=447727&r1=447726&r2=447727
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/focus/HtmlFocus.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/focus/HtmlFocus.java Mon Sep 18 21:38:26 2006
@@ -15,6 +15,9 @@
  */
 package org.apache.myfaces.custom.focus;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
 import javax.faces.component.UIComponent;
 import javax.faces.component.UIComponentBase;
 import javax.faces.component.ValueHolder;
@@ -36,6 +39,8 @@
     private Boolean _rememberClientFocus=null;
     private static final boolean DEFAULT_REMEMBER_CLIENT_FOCUS = true;
 
+    private static Log log = LogFactory.getLog(HtmlFocus.class);
+
     public String getFamily()
     {
         return COMPONENT_FAMILY;
@@ -80,8 +85,7 @@
 		UIComponent forComp = findComponent(forStr);
 		if (forComp == null)
 		{
-			throw new IllegalArgumentException(
-			        "could not find UIComponent referenced by attribute focus@for = '"
+			log.warn("could not find UIComponent referenced by attribute focus@for = '"
 					+ forStr + "'");
 		}
 		return forComp;