Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 48047 invoked from network); 22 Sep 2005 20:37:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Sep 2005 20:37:23 -0000 Received: (qmail 83237 invoked by uid 500); 22 Sep 2005 20:37:20 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 83212 invoked by uid 500); 22 Sep 2005 20:37:20 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 83199 invoked by uid 99); 22 Sep 2005 20:37:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2005 13:37:19 -0700 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.85.125.162] (HELO v07274.home.net.pl) (212.85.125.162) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 22 Sep 2005 13:37:28 -0700 Received: from gprs8.orange.pl (HELO ?172.20.221.163?) (lgawron.mobilebox@home@217.116.100.250) by matrix15.home.net.pl with SMTP; Thu, 22 Sep 2005 20:36:56 -0000 Message-ID: <433315E6.40204@mobilebox.pl> Date: Thu, 22 Sep 2005 22:36:54 +0200 From: Leszek Gawron User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: CForms: where and how to specify the suggestion-list? References: <43327CE1.9000905@apache.org> <4332838C.6040709@mobilebox.pl> <433287F1.90003@apache.org> In-Reply-To: <433287F1.90003@apache.org> 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 Sylvain Wallez wrote: > Leszek Gawron wrote: > >> are you taking a "picker patter" into account? I mean just as with >> selection list you have a value and label you should be able to filter >> the by labels (i.e. username) but get value as the result (i.e. user id). > > > > What would happen if the user types something that doesn't exist in the > selection list? What value should be returned to the application? Null, so if you want a valid user id you, make the field required. At runtime you are forced to perform a proper lookup to be allowed to proceed (just as selecting a proper value/label from a selection list). -- Leszek Gawron lgawron@mobilebox.pl IT Manager MobileBox sp. z o.o. +48 (61) 855 06 67 http://www.mobilebox.pl mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65