Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 99916 invoked from network); 20 Nov 2003 13:22:09 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 20 Nov 2003 13:22:09 -0000 Received: (qmail 65749 invoked by uid 500); 20 Nov 2003 13:21:58 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 65730 invoked by uid 500); 20 Nov 2003 13:21:57 -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 65717 invoked from network); 20 Nov 2003 13:21:57 -0000 Received: from unknown (HELO ex3lujmoims01.cec.eu.int) (158.169.9.54) by daedalus.apache.org with SMTP; 20 Nov 2003 13:21:57 -0000 Received: by ex3lujmoims01 with Internet Mail Service (5.5.2657.72) id ; Thu, 20 Nov 2003 14:21:57 +0100 Message-ID: <61C67D54412429409C0CD053D25DA42911188E@EX2LUJMOMBX05> From: Wouter.DERUYCK@cec.eu.int To: users@cocoon.apache.org Subject: Woody: dependent widget Date: Thu, 20 Nov 2003 14:21:53 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, I would like to integrate into Woody the possibility that the visibility of a widget depends on the value of another. An example: when i click for instance a check box , a "unvisible widget" is made visible (with Javascript) In general, certain questions in my form must only appear when a user has chosen a certain value in a question above. Therefore I would like to add some attributes in my widget definition to indicate that a certain "item value" points to another widget. I need these additional attributes in order to generate the Javascript afterwards. For instance in the following example, if the user choses item value "option1" then and only then question 2 should appear: question 2 text question 2 text: When I add these attributes however in my form definition file they are not preserved by the woody transformer when he produces his form instance. What should I modify (Java classes , stylesheets, ..) in order to have my additional attributes preserved? If anyone has implemented the same type of functionality perhaps with a different approach I will be glad to hear from you. thanks, wouter --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org