incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r921465 - /sling/trunk/samples/path-based-rtp/src/main/java/org/apache/sling/samples/pathbasedrtp/PathBasedResourceDecorator.java
Date Wed, 10 Mar 2010 17:36:24 GMT
Author: cziegeler
Date: Wed Mar 10 17:36:24 2010
New Revision: 921465

URL: http://svn.apache.org/viewvc?rev=921465&view=rev
Log:
Finally fix resource decorator.

Modified:
    sling/trunk/samples/path-based-rtp/src/main/java/org/apache/sling/samples/pathbasedrtp/PathBasedResourceDecorator.java

Modified: sling/trunk/samples/path-based-rtp/src/main/java/org/apache/sling/samples/pathbasedrtp/PathBasedResourceDecorator.java
URL: http://svn.apache.org/viewvc/sling/trunk/samples/path-based-rtp/src/main/java/org/apache/sling/samples/pathbasedrtp/PathBasedResourceDecorator.java?rev=921465&r1=921464&r2=921465&view=diff
==============================================================================
--- sling/trunk/samples/path-based-rtp/src/main/java/org/apache/sling/samples/pathbasedrtp/PathBasedResourceDecorator.java
(original)
+++ sling/trunk/samples/path-based-rtp/src/main/java/org/apache/sling/samples/pathbasedrtp/PathBasedResourceDecorator.java
Wed Mar 10 17:36:24 2010
@@ -82,6 +82,7 @@ public class PathBasedResourceDecorator 
             String resourceType = null;
             if ( resource.getPath().endsWith("/*") ) {
                 apply = true;
+                resourceType = Mapping.DEFAULT_NODE_TYPE;
             } else {
                 // 2. if the resource is adaptable to a node
                 //    and the primary node type equals the resource type



Mime
View raw message