From users-return-17308-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Mon Apr 04 11:56:32 2011 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 46642 invoked from network); 4 Apr 2011 11:56:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Apr 2011 11:56:32 -0000 Received: (qmail 570 invoked by uid 500); 4 Apr 2011 11:56:31 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 543 invoked by uid 500); 4 Apr 2011 11:56:31 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 535 invoked by uid 99); 4 Apr 2011 11:56:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 11:56:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stefan.guggisberg@gmail.com designates 209.85.160.42 as permitted sender) Received: from [209.85.160.42] (HELO mail-pw0-f42.google.com) (209.85.160.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 11:56:25 +0000 Received: by pwj3 with SMTP id 3so2375878pwj.1 for ; Mon, 04 Apr 2011 04:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=pUFav1l1+BUhOUxQplPU89poKDlVgkR+KfHKlpuDgpQ=; b=OEG3BfsxyuHtXN7uS+0pV/3vvI8p2SpW62CwKkN8NZEGsGg6sa8qoZHIuVSiwdr5rO aqwr0yRCtBEVIWwC4D/bBRwUrWKL0N9w8hJ0t8R+LamZEJ85aYEOjv0+PdDejvU8tcXz u80jZhoT8UBuHubLF0/xsIt3Vrd25SD3G6UgA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=wSH/BbaSFOmyCXJD7Qit+g+DJZt8XzVaBDGzOT7i9oEBhpyqb4JoKNmgmRtgm8uIH1 9zBz8GB1px+nQcgM3cPfqu+T9u+5naSqMKDzKHZk39R/pqS5a3Ra/9r2oWfrwwpJLJ3+ Piekw+wFs4Q0AOY0YkOR4mt7Z/Mkbp4XRcf24= MIME-Version: 1.0 Received: by 10.142.142.8 with SMTP id p8mr6771899wfd.13.1301918164803; Mon, 04 Apr 2011 04:56:04 -0700 (PDT) Received: by 10.68.54.231 with HTTP; Mon, 4 Apr 2011 04:56:04 -0700 (PDT) In-Reply-To: References: Date: Mon, 4 Apr 2011 13:56:04 +0200 Message-ID: Subject: Re: How to mix structured and unstructured content on a node? From: Stefan Guggisberg To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Apr 4, 2011 at 1:13 PM, Markus Joschko w= rote: > Hi, > I have a node that should mix free and and fixed properties. > For that purpose I created the following nodetype (leaving out the namesp= ace): > > [Contact] =A0> =A0nt:unstructured, mix:created, mix:lastModified > =A0 - primaryContactDetails (weakreference) > > [Individual] > Contact > > > When I create a node of type Individual and set the > primaryContactDetails property to another referencable node, =A0it gets > the typ "reference". > Asked for its required type the property returns "undefined" and as > the DeclaringNodeType it returns "nt:unstructured". > > When I remove "nt:unstructured" from the inheritance list, I get the > desired "weakreference" and Contact as DeclaringNodeType. > > Obviously "nt:unstructure" takes precedence over the defined > properties. no, named definitions should take precedence over residual definitions. weak reference were introduced in jsr-283 (jcr 2.0). you probably encountered a problem that is specific to weakreferences. do you mind filing a jira issue? a simple test case would be great :) cheers stefan > Is there an other way to combine defined and undefined > properties in a node? > > I currently use jackrabbit 2.1.1 > > > Regards, > =A0Markus >