Hm - i dont get it ( sorry ). How can i handle the language of the viewRoot in my backingbean?
Like i said - i am searching for the pendant or a method or something, which give me the power to set the locale parameter of the viewRoot, so the language is managable per backing bean variable. The jsp way it works ( set locale parameter to an el expression -> bean lookup for language ) - but you want it the other way - i dont know how to do. I know there are differences - but there must be a way, i dont want to get the message bundles and its locales from a backing bean, the bundles should stay at the html page - the locale is managed from the viewRoot which takes the locale parameter and its value from a session backingBean, is this not possible? Torsten Am Mittwoch, den 18.10.2006, 16:03 +0200 schrieb Hermod Opstvedt: > Hi > > As I said - You handle this in you backing beans. Remember there is a > difference between html and jsp > > Hermod > > > -----Opprinnelig melding----- > Fra: Torsten Krah [mailto:[EMAIL PROTECTED] > Sendt: 18. oktober 2006 15:41 > Til: [email protected] > Emne: RE: Clay - how to set locale Parameter for f:view in html/xml views? > > But this makes the assumption that the browsers preferences are used ( i > dont want to make views for every language, one view for all - which > changes lang according to a property ). > But i want to use a locale which is "fixed" until a property changes - > this must be bound to the rootView ( f:view ). > > In JSP thats no problem, but where to est this in xml/html views? > > Torsten > > Am Mittwoch, den 18.10.2006, 12:58 +0200 schrieb > [EMAIL PROTECTED]: > > Hi > > > > In html/xml views, this is handled by you in your backing beans, and when > using resourcebundles by the message tag > > > > Hermod > > > > -----Original Message----- > > From: Torsten Krah [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 18, 2006 12:54 PM > > To: [email protected] > > Subject: Clay - how to set locale Parameter for f:view in html/xml > > views? > > > > > > Is there a way to set the locale of the viewRoot? > > > > In the jsp: > > > > <f:view locale="#{languageBean.currentLanguage}"> > > ... > > </f:view> > > > > does the job. > > > > But where to do this in clay html/xml views? > > > > Torsten > > > > > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > * > > > > This email with attachments is solely for the use of the individual or > > entity to whom it is addressed. Please also be aware that the DnB NOR > Group > > cannot accept any payment orders or other legally binding correspondence > with > > customers as a part of an email. > > > > This email message has been virus checked by the anti virus programs used > > in the DnB NOR Group. > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > * > > >
