Return-Path: Delivered-To: apmail-cocoon-users-fr-archive@www.apache.org Received: (qmail 65042 invoked from network); 7 Feb 2006 17:16:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Feb 2006 17:16:15 -0000 Received: (qmail 46489 invoked by uid 500); 7 Feb 2006 17:16:15 -0000 Mailing-List: contact users-fr-help@cocoon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users-fr@cocoon.apache.org Delivered-To: mailing list users-fr@cocoon.apache.org Received: (qmail 46478 invoked by uid 99); 7 Feb 2006 17:16:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 09:16:14 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [84.96.21.10] (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 09:16:14 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id 1716E33A9C for ; Tue, 7 Feb 2006 18:15:53 +0100 (CET) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09346-02 for ; Tue, 7 Feb 2006 18:15:50 +0100 (CET) Received: from [10.0.0.43] (homer.anyware [10.0.0.43]) by mail.anyware-tech.com (Postfix) with ESMTP id 74611339F5 for ; Tue, 7 Feb 2006 18:15:50 +0100 (CET) Message-ID: <43E8D5DB.2020705@anyware-tech.com> Date: Tue, 07 Feb 2006 18:16:11 +0100 From: Philippe Gassmann User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051117) X-Accept-Language: fr, en MIME-Version: 1.0 To: users-fr@cocoon.apache.org Subject: Re: compiler code java References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at anyware-tech.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Il y a un message d'erreur ? Berengere.Genin@sanofi-aventis.com a �crit : >Je r�capitule: >Voil� ce que j'ai ecrit: > var repeater = form.getChild("page3/all_locus"); > repeater.addRow(); > var row = repeater.getRow(0); > var field = row.getChild("locus"); > field.setValue("6p"); > form.showForm("multipage-display-pipeline.jx"); > >Mais toujours pas OK... :-( > >-----Message d'origine----- >De : Philippe Gassmann [mailto:philippe.gassmann@anyware-tech.com] >Envoy� : Tuesday, February 07, 2006 18:06 >� : users-fr@cocoon.apache.org >Objet : Re: compiler code java > > >Philippe Gassmann a �crit : > > > >>Philippe Gassmann a �crit : >> >> >> >>>Berengere.Genin@sanofi-aventis.com a �crit : >>> >>> >>> >>>>C'est justement ce que j'�tais en train de faire (flowscript) >>>>Mais, �a ne marche pas... >>>>En fait, j'ai un formulaire multipage dans lequel se trouve un >>>>repeater (� la 3e page) >>>>Ce que je voudrais faire c'est initialiser la premi�re ligne de ce >>>>repeater. >>>>Voila un extrait de mon fichier xml de d�finition et un extrait de >>>>mon flowscript. >>>> >>>>multipage_model.xml: >>>> >>>>[...] >>>>- >>>xmlns:i18n="http://apache.org/cocoon/i18n/2.1" >>>>xmlns:xi="http://www.w3.org/2001/XInclude"> >>>>- >>>>+ >>>>[...] >>>>+ >>>>[...] >>>>+ >>>>- >>>>- >>>>+ >>>>+ >>>>+ >>>>+ >>>>+ >>>>[...] >>>> >>>> >>>>forms_flow.js: >>>> >>>>[...] >>>>var repeater = form.getChild("page3/all_locus"); >>>>repeater.addRow(); >>>> >>>> >>>> >>>> >>>Ce qui suit n'est pas correct : >>> >>> >>> >>>>var field = repeater.getWidget(0, "page3/locus"); >>>> >>>> >>>> >>>> >>>je pense que repeater.getChildt("locus") est plus adapt�, car tu ne >>>dois pas repr�ciser page3 (tu est dans le context du repeater). >>> >>> >>> >>Oups ! je voulais bien entendu �crire : repeater.getChild("locus") >> >> >> >Re oups, ce que je raconte est totalement faux !! > >j'ai oubli� de r�cuprer la ligne >var row = repeater.getRow(0); >var field = row.getChild("locus") > > > > > > > >>>>field.setValue("6p"); >>>>form.showForm("multipage-display-pipeline.jx"); >>>>[...] >>>> >>>> >>>> >>>> >>>Philippe. >>> >>>--------------------------------------------------------------------- >>>Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ >>>Pour vous desinscrire : mailto:users-fr-unsubscribe@cocoon.apache.org >>>Autres commandes : mailto:users-fr-help@cocoon.apache.org >>> >>> >>> >> >> > > > > -- Philippe GASSMANN Syst�mes d'Information ANYWARE TECHNOLOGIES Tel : +33 (0)5 61 00 52 90 Fax : +33 (0)5 61 00 51 46 http://www.anyware-tech.com/ --------------------------------------------------------------------- Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:users-fr-unsubscribe@cocoon.apache.org Autres commandes : mailto:users-fr-help@cocoon.apache.org