Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 62462 invoked from network); 5 May 2006 08:01:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 May 2006 08:01:54 -0000 Received: (qmail 37204 invoked by uid 500); 5 May 2006 08:01:50 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 37168 invoked by uid 500); 5 May 2006 08:01:50 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 37156 invoked by uid 99); 5 May 2006 08:01:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 May 2006 01:01:50 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of bierbrauen@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 May 2006 01:01:49 -0700 Received: by nf-out-0910.google.com with SMTP id b2so524126nfe for ; Fri, 05 May 2006 01:01:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AuCgoW9JXWShGmBzFXoLp3FizCKLVeOCRarc1jKFBoXZ6M8c+oEJmXi9Xyhv7Pz0AymG49bDMhzMSvpVQGndmaTp20DmcMBUi8uNWSVIjNLWhHTvEBjUS0aOPJSIGB9CUZjs3Je1IgdwIiW7GptIbE3ED2QXeEq8LP894jHbQt4= Received: by 10.48.47.4 with SMTP id u4mr1284130nfu; Fri, 05 May 2006 01:01:24 -0700 (PDT) Received: by 10.49.6.18 with HTTP; Fri, 5 May 2006 01:01:24 -0700 (PDT) Message-ID: <311295120605050101g1e35bedaw73a1c69a33d1c396@mail.gmail.com> Date: Fri, 5 May 2006 10:01:24 +0200 From: "=?ISO-8859-1?Q?Gerald_M=FCllan?=" To: "MyFaces Discussion" Subject: Re: Disabled inputText Value In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Yes; that`s right! Values in disabled fields are never submitted and thus dont affect the underlying model. But there is a solution in JSF since a few weeks. Have a look at the "disabledOnClientSide" property. With it, there is a hidden field rendered (stands for the disabled field) and the value of the disabled field put into it. Values from hidden fields are submitted, and consequently it is possible to push the disabled value to the model. Hope that helps, Cheers, Gerald On 5/5/06, Uri Kalish wrote: > Thanks dude. I found the problem. It's an HTML form thing - A form submit= ting will not post disabled fields. > Because in the case of error I want to re-display the page exactly as it = was when the user submitted (I don't want fields changed by the user to jum= p to default values just because he clicked a radio that made them disabled= )... > No choice but to use an extra hidden field and update it by java script w= hen the regular field changes. > Very low-tech I'm afraid... > > ________________________________ > > From: Le Van [mailto:lvan@it.fts-vn.com] > Sent: Fri 05-May-06 04:18 > To: MyFaces Discussion > Subject: Re: Disabled inputText Value > > > > Uri Kalish wrote: > > > Use case: > > > > A user fills a value in an inputText field, checks a radio button that > > causes the field to become disabled, and submits the form. > > > > After the user submits, the value received is null, no matter what the > > field displays on the UI... > > > > Is there a way to retrieve that value although the field is disabled, > > or must I use an extra hidden field and update it by java script. > > > > > > ______________________________________________________________________ > > This email has been scanned by the MessageLabs Email Security System. > > For more information please visit http://www.messagelabs.com/email > > ______________________________________________________________________ > > As I know you can't retrieve value from input field that is disabled. I > try it by using java script > > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > -- Gerald M=FCllan Schelleingasse 2/11 1040 Vienna, Austria 0043 699 11772506 Bierbrauen@gmail.com