Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 46352 invoked from network); 16 Jun 2004 15:25:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Jun 2004 15:25:44 -0000 Received: (qmail 47362 invoked by uid 500); 16 Jun 2004 15:17:34 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 47307 invoked by uid 500); 16 Jun 2004 15:17:31 -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 47205 invoked by uid 99); 16 Jun 2004 15:17:30 -0000 Received: from [137.120.1.4] (HELO um0004.unimaas.nl) (137.120.1.4) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 16 Jun 2004 08:17:30 -0700 Received: by um0004.unimaas.nl (Postfix, from userid 508) id C582650376; Wed, 16 Jun 2004 17:17:12 +0200 (CEST) Received: from mail011.unimaas.nl (mail011.unimaas.nl [137.120.1.42]) by um0004.unimaas.nl (Postfix) with ESMTP id B804F5020D for ; Wed, 16 Jun 2004 17:17:11 +0200 (CEST) Received: by mail011.unimaas.nl with Internet Mail Service (5.5.2653.19) id ; Wed, 16 Jun 2004 17:17:15 +0200 Message-ID: From: H.vanderLinden@MI.unimaas.nl To: users@cocoon.apache.org Subject: Desperately needing help with obscure JXTemplate problem Date: Wed, 16 Jun 2004 17:17:10 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-UM-Spam-DCC: xmailer: um0004 1192; Body=1 Fuz1=1 Fuz2=1 X-UM-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on um0004.unimaas.nl X-UM-Spam-Level: X-UM-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_44,NO_REAL_NAME autolearn=no version=2.63 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, Can someone please give a hint as to why the following does not work? Class SomeClass() { ..... private Object value; .... public void setValue(Object x) { value = x; } public Object getValue() { return value; } public String getFormattedValue() { String result = doSomething(value); return result; } } Class SomeOtherClass() { ..... private Object value; .... public void setValue(Object x) { value = x; } public Object getValue() { return value; } public String getFormattedValue() { String result = doSomething(value); return result; } } JXTemplates: ${qList.someValue.formattedValue} ${elem.formattedValue} ${form.qualifiers.someValue} Problem: ${elemDef.formattedValue} is of class SomeOtherClass and correctly displays the formattedValue ${qList.someValue.formattedValue} is of class SomeClass and displays nothing for formattedValue ${qList.someValue} correctly displays: SomeClass@1234 In the flowscript: var o = form.qualifiers; var q = (Packages.mypackage.SomeClass)o.get('someValue'); print(q.getFormattedValue()); correctly displays the formattedValue. Any idea anyone? Bye, Helma van der Linden --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org