You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2007/08/20 22:46:23 UTC

svn commit: r567826 - /wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Localizer.java

Author: ivaynberg
Date: Mon Aug 20 13:46:21 2007
New Revision: 567826

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

Modified:
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Localizer.java

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Localizer.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Localizer.java?rev=567826&r1=567825&r2=567826&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Localizer.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Localizer.java Mon Aug 20 13:46:21 2007
@@ -179,7 +179,15 @@
 	{
 		final IResourceSettings resourceSettings = Application.get().getResourceSettings();
 
-		boolean addedToPage = (component != null && null != component.findParent(Page.class));
+		boolean addedToPage = false;
+		if (component != null)
+		{
+			if ((component instanceof Page) || null != component.findParent(Page.class))
+			{
+				addedToPage = true;
+			}
+		}
+
 		if (!addedToPage)
 		{
 			logger