Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 76712 invoked from network); 11 Sep 2006 12:08:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Sep 2006 12:08:30 -0000 Received: (qmail 43723 invoked by uid 500); 11 Sep 2006 12:08:26 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 43460 invoked by uid 500); 11 Sep 2006 12:08:26 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 43449 invoked by uid 99); 11 Sep 2006 12:08:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2006 05:08:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [213.133.33.40] (HELO smtp.is.nl) (213.133.33.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2006 05:08:25 -0700 Received: from [213.133.51.241] (HELO hai01.hippo.local) by smtp.is.nl (CommuniGate Pro SMTP 5.0.10) with ESMTP id 204923 for users@cocoon.apache.org; Mon, 11 Sep 2006 14:08:03 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Access component in JXTemplate Date: Mon, 11 Sep 2006 13:58:20 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Access component in JXTemplate Thread-Index: AcbVlt94NdBkES94RuCNjSJZNgKL4gAAn5Uw From: "Ard Schrijvers" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > Hello, > Ive a problem with accessing a component. Maybe someone can help me: >=20 > The component is defined in cocoon.xconf with: > role=3D"de.cocoon.persistantfactory.PersistenceFactory"/> >=20 > and I can access it in the flowscript with: > var factory =3D=20 > cocoon.getComponent(Packages.de.cocoon.persistantfactory.Persi > stenceFactory.ROLE); >=20 > Now I want to access it in an JXTemplateGenerator in the sitemap: > The call at the moment is: > > value=3D"{request:contextPath}"/> > value=3D"{baselink:SitemapBaseLink}"/> > value=3D"{baselink:RequestBaseLink}"/> > > >=20 > but in blocks.xml I only have request, session, context and so on. So > how can i access it there? Is there a parameter for the cocoon object? Suppose yo uwant to access your = de.cocoon.persistantfactory.PersistenceFactory, right? You can just add = an inputModule, that looksup your de.cocoon.hibernate.HibernateFactory, = and returns what you are asking for. Look at other inputModules, = shouldn't be to hard, Regards Ard > Thanks a lot > Wotan von Klass >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org