Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 24680 invoked from network); 10 Jul 2007 13:59:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2007 13:59:56 -0000 Received: (qmail 63039 invoked by uid 500); 10 Jul 2007 13:59:53 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 62960 invoked by uid 500); 10 Jul 2007 13:59:53 -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 62936 invoked by uid 99); 10 Jul 2007 13:59:53 -0000 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO carsten-ziegelers-computer.local) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2007 06:59:53 -0700 Message-ID: <46939149.3040005@apache.org> Date: Tue, 10 Jul 2007 16:01:45 +0200 From: Carsten Ziegeler User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Is it allowed to access a bean created in avalon in a spring bean definition? References: <47f71d940707100559j6253c2ccxc62f51bda72105c2@mail.gmail.com> <46938D90.1000401@apache.org> In-Reply-To: <46938D90.1000401@apache.org> X-Enigmail-Version: 0.95.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig98DB1E5397ADD08BEE17CFEE" X-Virus-Checked: Checked by ClamAV on apache.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig98DB1E5397ADD08BEE17CFEE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Grzegorz Kossakowski wrote: > Rice Yeh pisze: >> Hi, >> Is it allowed to access a bean created in avalon in a spring bean >> definition? >=20 > Yes. >=20 >> I try to access the FormManager in the following spring xml file, but >> it returns null. >=20 > Did you check was logs say? >=20 >> > xs.cocoon.forms.WidgetDefinitionBuilderLoader" scope=3D"singleton"> >> >> >> >> >=20 > What about org.apache.cocoon.forms.DefaultFormManager as bean id? (wild= > guessing here) >=20 Hmm, no "org.apache.cocoon.forms.FormManager" is correct, as you have to use the Avalon role as the bean id. I have currently no clue what idref bean=3D"" does, I'm using: Does your bean have several constructors? HTH Carsten --=20 Carsten Ziegeler cziegeler@apache.org --------------enig98DB1E5397ADD08BEE17CFEE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGk5FNEy5J1OQe3H4RAgp0AJwO5sApoR20OsBdK9rnqrXdMnty/wCgot6s R41KZiB3c0ZagcBAN/8+gcU= =yEmw -----END PGP SIGNATURE----- --------------enig98DB1E5397ADD08BEE17CFEE--