Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 49A849F73 for ; Wed, 4 Apr 2012 16:20:07 +0000 (UTC) Received: (qmail 64022 invoked by uid 500); 4 Apr 2012 16:20:06 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 63974 invoked by uid 500); 4 Apr 2012 16:20:06 -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 63966 invoked by uid 99); 4 Apr 2012 16:20:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 16:20:06 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of maxtorzito@gmail.com designates 209.85.214.181 as permitted sender) Received: from [209.85.214.181] (HELO mail-ob0-f181.google.com) (209.85.214.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2012 16:19:59 +0000 Received: by obqv19 with SMTP id v19so574076obq.12 for ; Wed, 04 Apr 2012 09:19:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OGoDoEBihHNrksbQ2/5UePKQ45tYRui8ERIu4jY10Q4=; b=AHz9Vay47WuUhv8APHrjQmDZykO3g+HPpgSDRL379v0OM47JHBSPHx6t96cmjJtZaV f4ihQ4gtTF4R+dtE52PlHrPeomNBIofTu5sqHPRxVze8Vs1q3FjQsz73ZmO3tuzY+mgS bQcCtxBflKJYof7OZFBqm3ygnrk9eQ6xiMvF51CiVhGdHFi7imvGSFDRh5Ts2Dd/2J/V jnUlLJBXkc6hv8D7Jxk+uCnT/wK6T32IeSXac3K7KdQzGjz9WwMyykSOFr812aAPH9i2 5ucKCjc39hxOPVlV0oUY1hUB7sFJ7YZia4z6t+p6DlJn+r/+KJ83t1UBdIr/2nSPB/qz 9kJw== MIME-Version: 1.0 Received: by 10.182.127.20 with SMTP id nc20mr25383526obb.66.1333556378575; Wed, 04 Apr 2012 09:19:38 -0700 (PDT) Received: by 10.182.43.67 with HTTP; Wed, 4 Apr 2012 09:19:38 -0700 (PDT) In-Reply-To: References: Date: Wed, 4 Apr 2012 11:19:38 -0500 Message-ID: Subject: Re: CODI Messages + properties file From: =?ISO-8859-1?Q?Jos=E9_Luis_Cetina?= To: MyFaces Discussion Content-Type: multipart/alternative; boundary=14dae93b63443ba25704bcdcca47 --14dae93b63443ba25704bcdcca47 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I found a solution, creating my own MessageResolver, thanks, i will share later. El 4 de abril de 2012 10:57, Jos=E9 Luis Cetina escri= bi=F3: > I have 2 resource bundle: > > > my.package.i18n.messages > prop_general > > > > my.package2.i18n.messages > prop_users > > > > and in my class: > @Inject > private MessageContext messageContext; > > String messageText =3D messageContext.message().text("msgKey").toText(); > > How CODI know where resource-bundle has to use? > > > > El 4 de abril de 2012 10:27, Jos=E9 Luis Cetina esc= ribi=F3: > > My JSF app use this: >> >> >> my.package.i18n.messages >> prop_general >> >> >> In my xhtml page i use >> >> #{prop_general.mykey} >> >> >> but i dont know how i can use this with CODI Messages, >> >> I see this example: >> >> String messageText =3D messageContext.message().text("msgKey").toText(); >> >> but how CODI get my property file? and where i get the >> object messageContext ?? >> i think the tutorial is not specific about this >> >> >> 2012/4/4 Gerhard Petracek >> >>> hi jose, >>> >>> in a jsf application: >>> just configure your std. jsf application message bundle. >>> >>> regards, >>> gerhard >>> >>> >>> >>> http://www.irian.at >>> >>> Your JSF/JavaEE powerhouse - >>> JavaEE Consulting, Development and >>> Courses in English and German >>> >>> Professional Support for Apache MyFaces >>> >>> >>> 2012/4/4 Jos=E9 Luis Cetina >>> >>> > Hi im new with CODI Messages Module, im reading this page: >>> > https://cwiki.apache.org/EXTCDI/message-usage.html >>> > >>> > but i cant find a way to use codi msgs with properties file, it is >>> > possible?. >>> > >>> > Normally i use properties file where the use can change their msgs bu= t >>> here >>> > in CODI. >>> > >>> > >>> > >>> > >>> > -- >>> > ------------------------------------------------------------------- >>> > *SCJA. Jos=E9 Luis Cetina* >>> > ------------------------------------------------------------------- >>> > >>> >> >> >> >> -- >> ------------------------------------------------------------------- >> *SCJA. Jos=E9 Luis Cetina* >> ------------------------------------------------------------------- >> >> > > > -- > ------------------------------------------------------------------- > *SCJA. Jos=E9 Luis Cetina* > ------------------------------------------------------------------- > > --=20 ------------------------------------------------------------------- *SCJA. Jos=E9 Luis Cetina* ------------------------------------------------------------------- --14dae93b63443ba25704bcdcca47--