myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Lewandowski <emlewandow...@yahoo.ca>
Subject Re: MyFaces 1.2, f:view, locale management
Date Fri, 31 Aug 2007 16:11:51 GMT

No, I have a public String getLocale() method and no public Locale
getLocale() method.


Mike Kienenberger wrote:
> 
> Do you have a LanguageManager "public Locale getLocale()" method?
> 
> You need to have a "public String getLocale()" method.
> 
> http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSFPage3.html
> 
> 
> On 8/31/07, Eric Lewandowski <emlewandowski@yahoo.ca> wrote:
>>
>> Hi
>>
>> I want to change the locale for all my faces pages.
>> so, I wrote a bean defined as languageManager. This bean store the locale
>> selected by user and can get it.
>>
>> in my pages , I defined a tag f:view :
>> <f:view locale="#{languageManager.locale}">
>> ...
>>
>> When MyFaces evaluates the tag f:view, it calls the constructor of
>> languageManager but never call the getLocale() method. So the evaluation
>> of
>> f:view throws an exception because of null value of
>> languageManager.locale.
>>
>> Can anobody help me ?
>>
>> Configuration : MyFaces 1.2.0
>>                     Trinidad 1.2.1
>>                     Facelets 1.1.11
>>
>> Thanks.
>> --
>> View this message in context:
>> http://www.nabble.com/MyFaces-1.2%2C-f%3Aview%2C-locale-management-tf4360980.html#a12429133
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/MyFaces-1.2%2C-f%3Aview%2C-locale-management-tf4360980.html#a12429421
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message