Return-Path: Delivered-To: apmail-incubator-myfaces-user-archive@www.apache.org Received: (qmail 9161 invoked from network); 24 Mar 2005 23:10:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Mar 2005 23:10:16 -0000 Received: (qmail 95069 invoked by uid 500); 24 Mar 2005 23:10:04 -0000 Delivered-To: apmail-incubator-myfaces-user-archive@incubator.apache.org Received: (qmail 95000 invoked by uid 500); 24 Mar 2005 23:10:04 -0000 Mailing-List: contact myfaces-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list myfaces-user@incubator.apache.org Received: (qmail 94959 invoked by uid 99); 24 Mar 2005 23:10:04 -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 Neal.Haggard@sas.com designates 149.173.6.17 as permitted sender) Received: from merc94.na.sas.com (HELO merc94.na.sas.com) (149.173.6.17) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 24 Mar 2005 15:10:02 -0800 Received: from MERC21.na.sas.com ([10.19.9.171]) by merc94.na.sas.com with InterScan Messaging Security Suite; Thu, 24 Mar 2005 18:10:01 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: Request for suggestions on Resource Bundle keys? Date: Thu, 24 Mar 2005 18:09:58 -0500 Message-ID: <45C713F0D0E1114F81A1944E26AB5B3602528A73@MERC21.na.sas.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Request for suggestions on Resource Bundle keys? thread-index: AcUwxplKVaOAeCsbRV2rtvEXm6HzSw== From: "Neal Haggard" To: "MyFaces Discussion" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I noticed in JSF In Action (Mann) that he had all his resource bundle = keys that he was going to use in his JSF views defined more like = standard variables than standard resource bundle keys. For example: PathNotFound=3DPath {0} not found. Internally, we have tools which will do internationalization for us, but = they rely on suffixes on resource bundle keys (namely .txt if it's = something that should be translated automatically). So I would have to = have: PathNotFound.txt=3DPath {0} not found. Obviously, I can't use this in a value binding expression (i.e. = #{myBundle.PathNotFound.txt}) as it will be looking for a .txt attribute = off the PathNotFound object. =20 I was hoping that maybe I could get away with treating the bundle as a = map, like: #{myBundle['PathNotFound.txt']}, however no dice, I'm = getting a 'Missing' error for keys that are defined that way. As a note, I wrote in a test key using the syntax that is prescribed, = and it will appear properly, so it's not that my resource bundle isn't = being loaded. Any ideas on how to get around this? Thanks, Neal