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


Reply via email to