Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 32679 invoked from network); 27 Mar 2006 08:36:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Mar 2006 08:36:59 -0000 Received: (qmail 68392 invoked by uid 500); 27 Mar 2006 08:36:57 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 67888 invoked by uid 500); 27 Mar 2006 08:36:55 -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 67873 invoked by uid 99); 27 Mar 2006 08:36:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2006 00:36:55 -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; Mon, 27 Mar 2006 00:36:53 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.anyware-tech.com (Postfix) with ESMTP id D789433B29 for ; Mon, 27 Mar 2006 10:36:29 +0200 (CEST) Received: from mail.anyware-tech.com ([127.0.0.1]) by localhost (trinity [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06762-09 for ; Mon, 27 Mar 2006 10:36:22 +0200 (CEST) Received: from [10.0.0.43] (homer.anyware [10.0.0.43]) by mail.anyware-tech.com (Postfix) with ESMTP id 92BBD33BF1 for ; Mon, 27 Mar 2006 10:34:15 +0200 (CEST) Message-ID: <4427A3D8.4040209@anyware-tech.com> Date: Mon, 27 Mar 2006 10:35:36 +0200 From: Philippe Gassmann User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051117) X-Accept-Language: fr, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: CForms and Portlets - making form ids dynamic References: <44266347.4060901@apache.org> <4426AEB4.60207@apache.org> <442799D3.6090302@apache.org> <44279FE6.9050300@apache.org> In-Reply-To: <44279FE6.9050300@apache.org> Content-Type: text/plain; charset=ISO-8859-15; 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 Sylvain Wallez a �crit : >Carsten Ziegeler wrote: > > >>Sylvain Wallez schrieb: >> >> >> > > > >>>What about simply adding Form.setId(String formId)? >>> >>> >>> >>Yes, that was my first thought as well - but I was wondering if it's a >>good idea to "always" >>allow to change the id. So I thought that if the id is dynamic, it >>should be part of the constructor - therefore the above changes. >> >>But of course just adding setId() works fine as well. >> >> >> > >It seems to me that the form writer should not have to care about >setting a dynamic ID on the form, as it's more an integration concern (a >form could run equally well standalone or within the portal). > >Is there a simple test that can be performed (without introducing a >dependency on the portal block) that can allow us to detect that we're >running as a coplet and then set a dynamic ID on the form? > > > Yes, it is possible to test if an entry "cocoon-portal-copletId" is in the objectModel. >Sylvain > > > -- Philippe GASSMANN Solutions & Technologies ANYWARE TECHNOLOGIES Tel : +33 (0)5 61 00 52 90 Fax : +33 (0)5 61 00 51 46 http://www.anyware-tech.com/