Revision: 1371
          http://stripes.svn.sourceforge.net/stripes/?rev=1371&view=rev
Author:   bengunter
Date:     2010-12-28 19:06:45 +0000 (Tue, 28 Dec 2010)

Log Message:
-----------
Applied fix for STS-786 from 1.5.x branch.

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutTag.java

Modified: trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutTag.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutTag.java 
2010-12-28 19:05:04 UTC (rev 1370)
+++ trunk/stripes/src/net/sourceforge/stripes/tag/layout/LayoutTag.java 
2010-12-28 19:06:45 UTC (rev 1371)
@@ -43,7 +43,8 @@
      * instance of {...@link LayoutRenderTag}.
      */
     public boolean isChildOfRender() {
-        return getLayoutParent() instanceof LayoutRenderTag;
+        LayoutTag parent = getLayoutParent();
+        return parent instanceof LayoutRenderTag;
     }
 
     /**
@@ -51,7 +52,8 @@
      * instance of {...@link LayoutDefinitionTag}.
      */
     public boolean isChildOfDefinition() {
-        return getLayoutParent() instanceof LayoutDefinitionTag;
+        LayoutTag parent = getLayoutParent();
+        return parent instanceof LayoutDefinitionTag;
     }
 
     /**
@@ -59,7 +61,8 @@
      * instance of {...@link LayoutComponentTag}.
      */
     public boolean isChildOfComponent() {
-        return getLayoutParent() instanceof LayoutComponentTag;
+        LayoutTag parent = getLayoutParent();
+        return parent instanceof LayoutComponentTag;
     }
 
     /**


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to