Return-Path: Delivered-To: apmail-sling-commits-archive@www.apache.org Received: (qmail 51747 invoked from network); 10 Mar 2010 17:37:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Mar 2010 17:37:16 -0000 Received: (qmail 24316 invoked by uid 500); 10 Mar 2010 17:36:45 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 24283 invoked by uid 500); 10 Mar 2010 17:36:45 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 24276 invoked by uid 99); 10 Mar 2010 17:36:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Mar 2010 17:36:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Mar 2010 17:36:44 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id AC47723889E9; Wed, 10 Mar 2010 17:36:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@sling.apache.org From: cziegeler@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100310173624.AC47723889E9@eris.apache.org> 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