Return-Path: Delivered-To: apmail-incubator-myfaces-user-archive@www.apache.org Received: (qmail 20414 invoked from network); 18 Feb 2005 18:10:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Feb 2005 18:10:36 -0000 Received: (qmail 76767 invoked by uid 500); 18 Feb 2005 18:10:35 -0000 Delivered-To: apmail-incubator-myfaces-user-archive@incubator.apache.org Received: (qmail 76731 invoked by uid 500); 18 Feb 2005 18:10:35 -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 76718 invoked by uid 99); 18 Feb 2005 18:10:35 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: 199.185.220.224 is neither permitted nor denied by domain of duong.batien@gmail.com) Received: from outbound05.telus.net (HELO priv-edtnes40.telusplanet.net) (199.185.220.224) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 18 Feb 2005 10:10:33 -0800 Received: from gmail.com ([142.179.180.163]) by priv-edtnes40.telusplanet.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050218181030.NUZC1079.priv-edtnes40.telusplanet.net@gmail.com> for ; Fri, 18 Feb 2005 11:10:30 -0700 Message-ID: <42162F98.4070406@gmail.com> Date: Fri, 18 Feb 2005 11:10:32 -0700 From: Duong BaTien User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316 X-Accept-Language: en-us, en MIME-Version: 1.0 To: MyFaces Discussion Subject: Re: tiles+internationalization References: <000001c515ce$1af35c90$cc4ac5d5@bsaftpz5nze3xv> In-Reply-To: <000001c515ce$1af35c90$cc4ac5d5@bsaftpz5nze3xv> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Gabor Beres wrote: > Hi > > > > I have a problem about how to internationalize a myfaces webapp, using > the JspTilesViewHandlerImpl. > > Using this nice tool, i have only one and it is located in my > template page. (inserting header, body, footer etc...) > > > > It never get explicitly called, so i'm a little bit unsure about how > to put a managed bean locale property in (user > would choose its preffered language) > > > > Thanks for help > > You just follow the standard approach using MessageBundle.properties file. But this is only a small and half part of the story. With Tiles, the whole fragments can be replaced with different languages. This means some extra information may be available in 1 language, but not in the other. I was not able to do the second half with JspTilesViewHandlerImpl and waiting for Tiles implementation under Struts-Shale. The first half is demonstrable under http://www.dbgroups.com or http://myb2cb2b.com Hope this may help. If anyone has it done for the second half, please let me know. BaTien DBGROUPS > ______________________________________________________________ > Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes > a FreeStarttol. > Probald ki most! http://www.freestart.hu >