Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 23901 invoked from network); 29 Nov 2006 12:35:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2006 12:35:49 -0000 Received: (qmail 29480 invoked by uid 500); 29 Nov 2006 12:35:52 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 29449 invoked by uid 500); 29 Nov 2006 12:35:52 -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 29438 invoked by uid 99); 29 Nov 2006 12:35:52 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Nov 2006 04:35:49 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GpOe1-0000E2-JU for users@myfaces.apache.org; Wed, 29 Nov 2006 04:34:33 -0800 Message-ID: <7598487.post@talk.nabble.com> Date: Wed, 29 Nov 2006 04:34:33 -0800 (PST) From: CarlHowarth To: users@myfaces.apache.org Subject: Re: Error using inputHidden with resource file In-Reply-To: <311295120611290423h6c2cf4f3w1597b6ea3fd70fbd@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: carl.howarth@dlapiper.com References: <7598077.post@talk.nabble.com> <311295120611290423h6c2cf4f3w1597b6ea3fd70fbd@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Gerald, Unfortunately style is not a valid attribute of the inputHidden control so this method won't work unfortunately. Thanks, Carl Gerald M=C3=BCllan wrote: >=20 > Hi, >=20 > the problem is that you do a little mixture between output and input > values. In your case it seems that you need a hidden outputText > element, which will only be read but never posted back. >=20 > I would suggest to set display:none in the style (or styleClass) and > that should do the job. >=20 > cheers, >=20 > Gerald >=20 > On 11/29/06, CarlHowarth wrote: >> >> Hi, >> >> I'm trying to return javascript alerts for certain error messages in my >> application, however I want to get the text from a resource file. I have >> added an inputHidden control and set its value to the text in the >> resource >> file. In the javascript I return the text from the inputHidden control's >> rendered value. This works fine unless my page performs a postback at >> which >> point I get the following error: >> >> Conversion Error "dateRangeValidation": Error during model data update. >> >> Having done a bit of searching it would appear that this is due to a lac= k >> of >> a setter for this value. Has anybody come across this problem, and if so >> could they please point me in the right direction? >> >> Many thanks, Carl >> -- >> View this message in context: >> http://www.nabble.com/Error-using-inputHidden-with-resource-file-tf27246= 70.html#a7598077 >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >=20 >=20 > --=20 > http://www.irian.at >=20 > Your JSF powerhouse - > JSF Consulting, Development and > Courses in English and German >=20 > Professional Support for Apache MyFaces >=20 >=20 --=20 View this message in context: http://www.nabble.com/Error-using-inputHidden= -with-resource-file-tf2724670.html#a7598487 Sent from the MyFaces - Users mailing list archive at Nabble.com.