|
List Info
Thread: MyFaces 1.2, f:view, locale management
|
|
| MyFaces 1.2, f:view, locale management |
  United States |
2007-08-31 10:57:48 |
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.
|
|
| Re: MyFaces 1.2, f:view, locale
management |

|
2007-08-31 11:05:54 |
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/JSFPa
ge3.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.
>
>
|
|
| Re: MyFaces 1.2, f:view, locale
management |
  United States |
2007-08-31 11:11:51 |
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/JSFPa
ge3.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.
|
|
| Re: MyFaces 1.2, f:view, locale
management |
  United States |
2007-08-31 12:29:03 |
OK. The problem seems to be in MyFaces 1.2 or Trinidad
1.2.1
I downgraded the version of third party uses to MyFaces
1.1.5 and Trinidad
1.0.2 and it works !
Eric Lewandowski 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
#a12430770
Sent from the MyFaces - Users mailing list archive at
Nabble.com.
|
|
| Re: MyFaces 1.2, f:view, locale
management |

|
2007-08-31 14:00:32 |
Hi Eric,
please file an issue on our issue-tracker.
regards,
Martin
On 8/31/07, Eric Lewandowski <emlewandowski yahoo.ca> wrote:
>
> OK. The problem seems to be in MyFaces 1.2 or Trinidad
1.2.1
>
> I downgraded the version of third party uses to MyFaces
1.1.5 and Trinidad
> 1.0.2 and it works !
>
>
>
> Eric Lewandowski 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
#a12430770
> Sent from the MyFaces - Users mailing list archive at
Nabble.com.
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
|
|
| Re: MyFaces 1.2, f:view, locale
management |
  United States |
2007-08-31 14:40:22 |
That's done !
Regards,
Eric
Martin Marinschek wrote:
>
> Hi Eric,
>
> please file an issue on our issue-tracker.
>
> regards,
>
> Martin
>
> On 8/31/07, Eric Lewandowski <emlewandowski yahoo.ca> wrote:
>>
>> OK. The problem seems to be in MyFaces 1.2 or
Trinidad 1.2.1
>>
>> I downgraded the version of third party uses to
MyFaces 1.1.5 and
>> Trinidad
>> 1.0.2 and it works !
>>
>>
>>
>> Eric Lewandowski 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
#a12430770
>> Sent from the MyFaces - Users mailing list archive
at Nabble.com.
>>
>>
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
--
View this message in context: http://www.nabble.com
/MyFaces-1.2%2C-f%3Aview%2C-locale-management-tf4360980.html
#a12432837
Sent from the MyFaces - Users mailing list archive at
Nabble.com.
|
|
[1-6]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|