Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 85381 invoked from network); 22 Sep 2004 20:14:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Sep 2004 20:14:07 -0000 Received: (qmail 82604 invoked by uid 500); 22 Sep 2004 20:14:04 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 82524 invoked by uid 500); 22 Sep 2004 20:14:03 -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 Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 82510 invoked by uid 99); 22 Sep 2004 20:14:03 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [217.160.230.41] (HELO mout.perfora.net) (217.160.230.41) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 22 Sep 2004 13:14:01 -0700 Received: from minotaur.apache.org[209.237.227.194] (helo=[127.0.0.1]) by mrelay.perfora.net with ESMTP (Nemesis), id 0MKyxe-1CADV0052O-0000lH; Wed, 22 Sep 2004 16:13:58 -0400 X-Provags-ID: perfora.net abuse@perfora.net e2e4156964dfbcc4c642ec658fa7f9b9 Message-ID: <4151DD04.8070607@reverycodes.com> Date: Wed, 22 Sep 2004 16:13:56 -0400 From: Vadim Gritsenko User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Widget states: let's do it (was Re: CForms making widgets invisible) References: <41514D5B.20709@juwimm.com> <415186AA.50601@apache.org> <415195F7.3010805@reverycodes.com> <4151A003.1080004@apache.org> <4151CA86.8040400@reverycodes.com> <4151DAAE.1040408@apache.org> In-Reply-To: <4151DAAE.1040408@apache.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sylvain Wallez wrote: > Vadim Gritsenko wrote: > >> Sylvain Wallez wrote: >> >>> And now, with "enabled"/"disabled"/"invisible"? >> >> >> I guess I'm Ok with that; can you also comment how it relates to: >> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=108981424626685 >> >> >> Your proposal seems to differ a bit by mixing presentation and >> input/output concern - I guess there is a reason for this too :) > > > My proposal is only about what data comes in a out from the form model. > The state certainly impacts how it is displayed, but this can be further > refined in the view. For example Tim's "inline" and "disabled" proposal > are two possible stylings of a disabled widget, in the same manner than > an enabled widget that can have the "hidden" styling. So it is almost as it was described in mentioned email: > Via the model (secure, does not rely on well-behaved clients) > Read/write - Like a normal widget > Readonly - Like an output widget. > Writeonly - For sensitive input (e.g. passwords not echoed to the client.) > Neither - For server-side data (e.g. to still allow use of the other > benefits of cforms widgets, such as validation, value-changed-events, > and the ability to load and save via bindings.) With the exception of Writeonly. In this case, I'm +1, as long as styling concern is kept separate :) Vadim