Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 88323 invoked from network); 17 Aug 2005 14:12:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Aug 2005 14:12:30 -0000 Received: (qmail 13489 invoked by uid 500); 17 Aug 2005 14:12:28 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 13426 invoked by uid 500); 17 Aug 2005 14:12:28 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 13413 invoked by uid 99); 17 Aug 2005 14:12:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 07:12:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of michael.wechner@wyona.com designates 195.226.6.68 as permitted sender) Received: from [195.226.6.68] (HELO mx1.wyona.com) (195.226.6.68) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2005 07:12:47 -0700 Received: from 32.13.78.83.cust.bluewin.ch ([83.78.13.32] helo=[192.168.2.100]) by mx1.wyona.com with asmtp (Exim 3.35 #1 (Debian)) id 1E5OeV-0003E9-00 for ; Wed, 17 Aug 2005 16:12:23 +0200 Message-ID: <430345D1.6090603@wyona.com> Date: Wed, 17 Aug 2005 16:12:33 +0200 From: Michael Wechner User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050319 X-Accept-Language: en-us, de, fr-ch, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [JCR Block] Viewing content of properties and last modified References: <42FDDA25.9060009@wyona.com> <42FF3C18.3070301@apache.org> <43010AF4.906@wyona.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Andreas Hartmann wrote: > Michael Wechner wrote: > >> Sylvain Wallez wrote: >> >>> Michael Wechner wrote: >>> >>>> Hi >>>> >>>> I have two questions re the JCR Block >>>> >>>> 1) How can one actually access the content of properties? >>> >>> >>> >>> >>> >>> You cannot access them directly with the JCRNodeSource, which is >>> meant to represent file-like abstractions which are mapped to nodes. >> >> >> >> >> wouldn't it make sense to actually implement this for JCR source? >> I mean extend it to JCR properties. > > > In my sandbox, I implemented InspectableSource in JCRNodeSource > (I already posted a message some time ago). can you send that to me that I can give it a try > > How do you imagine providing access to the properties? > > Property getProperty(...) { > return getNode().getProperty(...); > } > > doesn't add much value ... what do you mean by doesn't add much value? > > > >>> Now such a source, you can get the corresponding Node and then do >>> whatever you want with it. >> >> >> yes, I can list all nodes by using the TraversableGenerator, but I >> think it >> would make sense it the the JCR Source in combination with the >> "FileGenerator" >> would allow to get the content of a JCR property, e.g. >> >> >> .... >> > > > That could probably be implemented using an > "InspectableTraversableGenerator" > or something like that ... Well, I think it would make sense to stick to the source and map nodes onto collections and properties onto resources. But yes, as an alternative we could write a specific JCR Generator. But one of the main questions probably is, can we (Cocoon community) agree on something. At the moment it seems to me that only Sylvain's company and the Lenya community is using the JCR source, but want to use it in different ways, right? No offense, but it seems to me that the current JCR Source isn't very useful, beside being able to list all the nodes, or am I missing something? Thanks Michi > > -- Andreas > > -- Michael Wechner Wyona - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org michael.wechner@wyona.com michi@apache.org