Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 33287 invoked from network); 2 Apr 2005 07:53:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Apr 2005 07:53:49 -0000 Received: (qmail 67884 invoked by uid 500); 2 Apr 2005 07:53:42 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 67870 invoked by uid 500); 2 Apr 2005 07:53:41 -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 Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 67857 invoked by uid 99); 2 Apr 2005 07:53:41 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from ousrvr.oulu.fi (HELO oulu.fi) (130.231.240.1) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 01 Apr 2005 23:53:39 -0800 Received: from cc.oulu.fi (sun3.oulu.fi [130.231.240.13]) by oulu.fi (8.13.1/8.13.1) with ESMTP id j327ra94000845 for ; Sat, 2 Apr 2005 10:53:36 +0300 (EEST) Received: from [192.168.1.10] (ajuffer-dsl.oulu.fi [130.231.176.86]) by cc.oulu.fi (8.12.10/8.12.10) with ESMTP id j327rZOY021294 for ; Sat, 2 Apr 2005 10:53:35 +0300 (EEST) Message-ID: <424E4F67.4070502@cc.oulu.fi> Date: Sat, 02 Apr 2005 10:53:11 +0300 From: Andre Juffer Reply-To: Andre.Juffer@oulu.fi Organization: The University of Oulu User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.2) Gecko/20040804 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Using business objects instead of XML Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dear List, I am trying to insert a domain object into the pipiline with control flow following a suggestion given earlier on this list: http://www.mail-archive.com/users@cocoon.apache.org/msg23293.html Suppose, I return some object from a domain class instance, like var domainObject = com.foo.myClass.doSomething(); The domainObject has all the getters available, e.g. getName(), etc, so it acts like a regular bean. Now, I would like insert this object in the pipeline with cocoon.sendPage ("page", domainObject); In the sitemap, I have (This is just to see how it looks like.) The result of all this is an error of the form: org.apache.cocoon.ProcessingException: Exception during source resolving.: org.apache.excalibur.source.SourceException: The attribute: domainObject is empty This looks obvious to me, since it is probably not clear that the domainObject in facts represents some class, defined in com.foo.myClass. So, I tried to define the DomainObject class in JavaScripy, like function DomainObject() { } DomainObject.prototype.name; and populate the object manually before calling cocoon.sendPage. The result is however the same. I am using cocoon 2.1.7. Could anyone point out in some detail how exactly I should do this. Thanks, -- Andre H. Juffer | Phone: +358-8-553 1161 The Biocenter and | Fax: +358-8-553-1141 the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org