Return-Path: Delivered-To: apmail-cocoon-users-fr-archive@www.apache.org Received: (qmail 52403 invoked from network); 22 Oct 2005 12:03:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Oct 2005 12:03:09 -0000 Received: (qmail 71334 invoked by uid 500); 22 Oct 2005 12:03:08 -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 71300 invoked by uid 99); 22 Oct 2005 12:03:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Oct 2005 05:03:08 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=RCVD_IN_NJABL_PROXY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [70.84.120.252] (HELO glider.phpwebhosting.com) (70.84.120.252) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 22 Oct 2005 05:03:06 -0700 Received: (qmail 17357 invoked from network); 22 Oct 2005 12:18:53 -0000 Received: from unknown (HELO [192.168.8.19]) (pguillard%citycita.net@61.144.128.233) by glider.phpwebhosting.com with SMTP; Sat, 22 Oct 2005 08:18:53 -0400 Message-ID: <435A29F3.7060503@citycita.net> Date: Sat, 22 Oct 2005 20:00:51 +0800 From: Philippe Guillard User-Agent: Mozilla Thunderbird 0.8 (X11/20041020) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users-fr@cocoon.apache.org Subject: Re: fd:selection-list predefinir l'item selectionne References: <435A2663.8050407@citycita.net> In-Reply-To: <435A2663.8050407@citycita.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Desole.. Ca marche. Cas classique : mon element n'existait pas dans la liste... Philippe Guillard wrote: > Bonjour, > > J'ai lu des mails sur la preselection d'un item pour une liste, je n'y > arrive que lorsque les elements de la selection sont mis directement > dans la definition du form ou via un document XML, mais pas dans le > cas suivant en utilisant fd:selection-list type="flow-jxpath". > En fait si je fais un model.city juste avant le showfrom il me semble > l'element est selectionne, apres le le showform et visuellement sur le > formulaire : rien. Bon il me semble en fait que lorsque je definis > l'element selectionne, la liste n'est pas encore dans le formulaire > puisqu'elle est transmise via JXT au moment du showForm. Mais alors > quelle solution de contournement ? > > Le flow : > _________ > var data = new Object(); > data.cityList = new Array(2); > data.cityList[0] = {value:"AL", label:"Alabama"}; > data.cityList[1] = {value:"AK", label:"Alaska"}; > form_addevent.lookupWidget("venue_preselected").setValue("1")); > //ou model.city = "1"; > form.showForm("flow/myform.form", data); > > Form > ____ > Ceci dans la definition du form required="false"> > value-path="value" label-path="label" /> > > > Phil > > --------------------------------------------------------------------- > 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 > > > --------------------------------------------------------------------- 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