You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2011/07/10 12:32:07 UTC

svn commit: r1144808 - /wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java

Author: mgrigorov
Date: Sun Jul 10 10:32:06 2011
New Revision: 1144808

URL: http://svn.apache.org/viewvc?rev=1144808&view=rev
Log:
WICKET-1469 

minor improvements in the error messages.
no functional changes.


Modified:
    wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java

Modified: wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java?rev=1144808&r1=1144807&r2=1144808&view=diff
==============================================================================
--- wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java (original)
+++ wicket/trunk/wicket-core/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java Sun Jul 10 10:32:06 2011
@@ -103,14 +103,14 @@ public class AutoLabelResolver implement
 		FormComponent<?> component = findRelatedComponent(container, id);
 		if (component == null)
 		{
-			throw new WicketRuntimeException("Could not find form component with id: " + id +
-				" while trying to resolve wicket:for attribute");
+			throw new WicketRuntimeException("Could not find form component with id '" + id +
+				"' while trying to resolve wicket:for attribute");
 		}
 
 		if (!(component instanceof FormComponent<?>))
 		{
-			throw new WicketRuntimeException("Component pointed to by wicket:for attribute: " + id +
-				" is not a form component");
+			throw new WicketRuntimeException("Component pointed to by wicket:for attribute '" + id +
+				"' is not a form component");
 		}
 
 		if (!component.getOutputMarkupId())
@@ -119,7 +119,7 @@ public class AutoLabelResolver implement
 			if (!component.hasBeenRendered())
 			{
 				logger.warn(
-					"Form component: {} is reference via a wicket:for attribute but does not have its outputMarkupId property set to true",
+					"Form component: {} is referenced via a wicket:for attribute but does not have its outputMarkupId property set to true",
 					component.toString(false));
 			}
 		}