Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 54777 invoked from network); 20 Jun 2007 13:36:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jun 2007 13:36:42 -0000 Received: (qmail 59123 invoked by uid 500); 20 Jun 2007 13:36:45 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 58997 invoked by uid 500); 20 Jun 2007 13:36:44 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 58988 invoked by uid 99); 20 Jun 2007 13:36:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 06:36:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jukka.zitting@gmail.com designates 64.233.184.233 as permitted sender) Received: from [64.233.184.233] (HELO wr-out-0506.google.com) (64.233.184.233) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 06:36:40 -0700 Received: by wr-out-0506.google.com with SMTP id 37so188130wra for ; Wed, 20 Jun 2007 06:36:19 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GRgxQ1hUSR9maPabWaBZcOn54pdD8Q/cM4LmCpUZdcAc9f7bZiGl09ILOxHyTje4NLiEZOLV8CI4uSAdSiYAgwE8KZXWl7ggPG2Hw71BZn7pXysQFnbcfEv7jyWNUsGFZd0nZDEtRhTnTXhomJW7feqbKAUU31G3oN217OqqrJw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=U4vgSsNiHw3K9xgCGq+2y5RBXxQA0PpVKDyZtnDcnvPyP+0iY7jE3BYbHveFHzVOIRrWuT/QvkJIEqAk2qpcOrn/wrsTUiiphJfhZk+qTI/BmUX3fThQZ37kiJP7QUCoBoyBfOEOvBTq6qz8xeDvLCXm6IRtIOgFFg43tCxeZ/4= Received: by 10.100.106.5 with SMTP id e5mr374276anc.1182346579675; Wed, 20 Jun 2007 06:36:19 -0700 (PDT) Received: by 10.100.178.20 with HTTP; Wed, 20 Jun 2007 06:36:19 -0700 (PDT) Message-ID: <510143ac0706200636k44951cfdsbff7582a75f36239@mail.gmail.com> Date: Wed, 20 Jun 2007 16:36:19 +0300 From: "Jukka Zitting" To: dev@jackrabbit.apache.org Subject: Re: Web app design pattern questions In-Reply-To: <20070620132556.2D29310FB01C@herse.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8fa1023f0706200604v74485989k6eee9f295a7378cd@mail.gmail.com> <20070620132556.2D29310FB01C@herse.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Hi, On 6/20/07, Hendrik Beck (camunda) wrote: > > > work directly with too many jcr method calls like > > > getProperty()/setProperty(). I definitely like the OCM tool, but i feel > > IMO that's the point. In general I would tend to go with Jukka's suggestion > and use the JCR API as far as possible. But especially with JSF you can't > really use it. JSP + JSF EL aren't powerful enough to use > Node.getProperty("myProperty") or Iterators or things like that. So you have > to put something on top, wrappers around JCR objects or a business layer > that accesses the JCR API and provides and relatively plain getter/setter > API for your web pages. This is actually something I'd like to see OCM to help with. There was brief related discussion on the Graffito mailing list a few months ago, see especially: http://mail-archives.apache.org/mod_mbox/incubator-graffito-dev/200702.mbox/%3c510143ac0702140601x54f50bedk1e09d2af133b0ec2@mail.gmail.com%3e BR, Jukka Zitting