Hello,
I have a problem with locale support in trinidad.
I depelop application with Oracle ADF. It must support several languages and
Kazach language too. But the inputDate elements isn't works properly, when I
set value of faces locale to kk or kk_KZ. Popup window has open, but
nothing
:
Hello,
I have a problem with locale support in trinidad.
I depelop application with Oracle ADF. It must support several languages and Kazach language too.
But the inputDate elements isn't works properly, when I set value of faces locale to kk
or kk_KZ. Popup window has open, but nothing
Hi everyone,
If you are familiar with Arabic, could you help confirm an issue raised in:
https://issues.apache.org/jira/browse/TRINIDAD-1958
Specifically, is the following comment in the bug correct?
That is, if I want to represent the value -9 in currency, this is correct:
ar_SA: 9 ?? -
, userData, disabled,
readonly);
encodeInputMonth(inputDate, writer, clientId, userData,
currentLocale, disabled, readonly);
encodeInputYear(inputDate, writer, clientId, userData,
disabled,
readonly);
For that component that is fixed and the code does not check the locale
I'm having trouble using the Tomahawk inputDate for non-US locales. If in
Firefox I set my general.useragent.locale to en-US, all is well. However,
if I set my locale to en-GB, I get a conversion error from the inputDate.
Stepping through the debugger, it appears that when my locale is en-GB
locales. If in
Firefox I set my general.useragent.locale to en-US, all is well.
However,
if I set my locale to en-GB, I get a conversion error from the inputDate.
Stepping through the debugger, it appears that when my locale is en-GB
and
I submit a date of April 15, 2010, the value
No, I've not tried the inputCalendar. In stepping through the debugger, I'm
seeing places where facesContext.getViewRoot().getLocale() is returning the
proper Locale, so I'm at a loss as to why the pattern is staying
dd.MM. instead of MM.dd..
Derry
On Wed, Mar 31, 2010 at 4:27 PM
(inputDate, writer, clientId, userData, disabled,
readonly);
For that component that is fixed and the code does not check the locale
before render them.
regards,
Leonardo Uribe
2010/3/31 Derry Cannon d3r...@gmail.com
No, I've not tried the inputCalendar. In stepping through the debugger,
I'm
() is returning the
proper Locale, so I'm at a loss as to why the pattern is staying
dd.MM. instead of MM.dd..
Derry
On Wed, Mar 31, 2010 at 4:27 PM, Leonardo Uribe lu4...@gmail.com wrote:
Hi
Did you tried with the property popupDateFormat on t:inputCalendar? The
default
Hi Alf,
where do you call
FacesContext.getCurrentInstance().getViewRoot().setLocale(selectedLocale)?
Do you use the f:view locale= attribute?
Refards,
Udo
Alf Felis schrieb:
Hi all,
my assumption was wrong that the session will be invalidated!
But my problem still exist... the locale
Hi all,
my assumption was wrong that the session will be invalidated!
But my problem still exist... the locale will be overwritten.
Any ideas?
Regards,
Alf
-Ursprüngliche Nachricht-
Von: Alf Felis alf.fe...@gmx.de
Gesendet: 20.01.10 15:27:27
An: MyFaces Discussion users
Hi all,
I have a problem with the locale and the error handling.
My application provides the possibility to choose the preferred language.
I set the selected locale with the following code
FacesContext.getCurrentInstance().getViewRoot().setLocale(selectedLocale);
Everything works fine until
Hi again :)
I noticed, that apparently the whole session will be invalidated, because some
other attributes will be lost, too.
Is there any parameter or something else to disable this behaviour?
Regards,
Alf
- original Nachricht
Betreff: [Tobago] Locale changed when handling
Hi Andreas,
did you find an solution?
Thanks,
Anton
2008/12/4 Andreas Niemeyer andreas.nieme...@gutzmann.com
Hi,
I would like to see the displayed week days for german language.
Is there any chance to change this, by setting a locale info or passing an
array?
I assume it should
Hi,
I would like to see the displayed week days for german language.
Is there any chance to change this, by setting a locale info or passing
an array?
I assume it should be possible since the popupDateFormat and
popupTodayString properties can be modified.
Regards,
Andreas
Hi,
I used a while ago the same technique and it seems to be working fine.
Try using: s:loadBundle.
Guy.
From: Julien Martin [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2008 8:32 AM
To: MyFaces Discussion
Subject: PhaseListener: before or after which phase should I set the locale
Try restore view phase which is the first phase of the life cycle.
regard
Bill
On Thu, Jul 10, 2008 at 12:31 AM, Julien Martin [EMAIL PROTECTED] wrote:
Hello,
I use restfaces an I have UrLs such as mydomain.com/fr/book/etc
where /fr/ is the desired locale. I have tried retrieving the locale
, 2008 at 12:31 AM, Julien Martin [EMAIL PROTECTED] wrote:
Hello,
I use restfaces an I have UrLs such as mydomain.com/fr/book/etc
where /fr/ is the desired locale. I have tried retrieving the locale
string
from the URL and setting the locale from a PhaseListener before the
renderResponse
Hello,
I use restfaces an I have UrLs such as mydomain.com/fr/book/etc
where /fr/ is the desired locale. I have tried retrieving the locale string
from the URL and setting the locale from a PhaseListener before the
renderResponse phase but it does not work i.e. when I change the locale
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
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 [EMAIL PROTECTED] wrote:
Hi
I want to change the locale for all my faces pages.
so
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
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
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
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
Can someone explain me why MenuModel isn't working with locale as any
other JSF component?
code snippet from org.apache.myfaces.trinidadinternal.menu.MenuUtils:
...
static void loadBundle(String resBundle, ThreadLocalString key)
{
FacesContext facesContext = FacesContext.getCurrentInstance
That's extremely wrong. There shouldn't be any code
looking at requestLocale. File an issue and I'll fix the code ASAP.
-- Adam
On 8/18/07, Luka Surija [EMAIL PROTECTED] wrote:
Can someone explain me why MenuModel isn't working with locale as any
other JSF component?
code snippet from
Hi,
The t:schedule works great, except for the fact that the date in the header
does not use the ViewRoot locale. It always seems to use a default en. In my
test my entire page renders in Dutch except for the date which states:
Monday 14 May, 2007. I've changed the dateformat
locale. It always seems to use a default en.
In my
test my entire page renders in Dutch except for the date which states:
Monday 14 May, 2007. I've changed the dateformat with the
headerDateFormat
attribute.
Am I missing something or does the t:schedule not take the locale into
account when
Cagatay
On 5/14/07, Ricardo Ramírez [EMAIL PROTECTED] wrote:
On Mon, 2007-05-14 at 22:26 +1200, Joost Schouten wrote:
Hi,
The t:schedule works great, except for the fact that the date in the
header
does not use the ViewRoot locale. It always seems to use a default en.
In my
test my
Gotta love waking up to a fixed problem ;-)
Thanks guys,
Joost
From: Cagatay Civici [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 15, 2007 2:39 AM
To: MyFaces Discussion
Subject: Re: t:schedule date header and locale
Hi,
It's fixed now, You can get
-Original Message-
From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 24, 2006 1:29 AM
To: MyFaces Discussion
Subject: Re: Locale problem with MyFaces Portlet for Liferay
Hi Stephan,
I looked at the wiki entry and it was very clear and straightforward
Hi Stephan,
I looked at the wiki entry and it was very clear and straightforward
but unfortunately I have not been able to solve the locale problem
yet. When I don't add the portlet-ejb.jar to the WEB-INF/lib directory
of my portlet .war file it throws a ClassNotFoundException. When I
added
Hi guys,
I have written a simple blank JSF portlet for Liferay. It supports 2
locales: en and de. But when I change the locale of the user, the
portlet doesn't fetch the appropriate locale and instead only fetches
the default locale.
The whole portlet with its war file ready to be deployed can
Oh I forgot to ask my question: does anybody know what's wrong with
this portlet?
Regards,
Behi
On 8/22/06, Behrang Saeedzadeh [EMAIL PROTECTED] wrote:
Hi guys,
I have written a simple blank JSF portlet for Liferay. It supports 2
locales: en and de. But when I change the locale of the user
Subject: Re: Locale problem with MyFaces Portlet for Liferay
Oh I forgot to ask my question: does anybody know what's wrong with
this portlet?
Regards,
Behi
On 8/22/06, Behrang Saeedzadeh [EMAIL PROTECTED] wrote:
Hi guys,
I have written a simple blank JSF portlet for Liferay
Hi Stephan,
Thanks for the replay. Could you please provide me a little bit more
information? Should I overload something in my Portlet class? I guess
VIIBPortalUser is a custom class for your application, I don't know
how can I workaround the locale problem within my application. I would
: Tuesday, August 22, 2006 8:35 PM
To: MyFaces Discussion
Subject: Re: Locale problem with MyFaces Portlet for Liferay
Hi Stephan,
Thanks for the replay. Could you please provide me a little bit more
information? Should I overload something in my Portlet class? I guess
VIIBPortalUser is a custom
Is that how it's supposed to work or something that's unavoidable?
If it's supposed to work like that, how does one keep the chosen locale when redirecting?
On 5/25/06, Martin Marinschek [EMAIL PROTECTED] wrote:
Are you using redirect? On a redirect, the locale is lost...regards,MartinOn 5/26/06
the chosen locale when redirecting?
On 5/25/06, Martin Marinschek [EMAIL PROTECTED]
wrote:
Are you using redirect? On a redirect, the locale is lost...regards,MartinOn 5/26/06, Jan Zach
[EMAIL PROTECTED] wrote: Hi, I've a multilingual web site. When a session is being established I'm checking
Hello!
Please I need your help. I have troubles for simple operations with Map.
I have a method taking as parameters a map: MapQName, Serializable props
And in this method I am doing this:
//I check if props is null and it is not and I print what there is in my
props
if(props==null)
= FacesContext.getCurrentInstance();
// set locale for JSF framework usage
Locale loc = new Locale(this.lang);
fc.getViewRoot().setLocale(loc);
}
But the lang cannot be get like this. How could I resolve my problem?
Thanks
Hi!
I got into troubles with the method getDisplayLanguage from
java.util.locale.
The result of this method in my program is that my available languages are
displayed in French (anglais, français). I suppose because my Windows is in
French. But is there a way to return the English version of
: Locale
Hi!
I got into troubles with the method getDisplayLanguage
from
java.util.locale.
The result of this method in my program is that my
available
languages are displayed in French (anglais, français). I
suppose because my Windows is in French. But is there a
way
to return
: Frank Felix Debatin [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 31 mai 2006 11:55
À : 'MyFaces Discussion'; [EMAIL PROTECTED]
Objet : RE: Locale
Sophie,
just use getDisplayLanguage(Locale.US), for example
Locale.FR.getDisplayLanguage(Locale.US) should return
French.
Frank Felix
] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 31, 2006 3:15 PM
To: 'Frank Felix Debatin'; 'MyFaces Discussion'
Subject: RE: Locale
Thanks a lot Frank,
Finally I found as well that I can getLanguage instead of
getDisplay and check the result but your solution is
better.
Another question: I am
Are you using redirect? On a redirect, the locale is lost...
regards,
Martin
On 5/26/06, Jan Zach [EMAIL PROTECTED] wrote:
Hi,
I've a multilingual web site. When a session is being established I'm checking
the requsted locale in the request and set it into the view root. I've also
locale
No , I use JSF navigation.
Regards
Jan
__
Od: [EMAIL PROTECTED]
Komu: MyFaces Discussion users@myfaces.apache.org
CC:
Datum: 26.05.2006 08:45
Předmět: Re: spontaneous locale change in view root
Are you using redirect
Hi,
I've a multilingual web site. When a session is being established I'm checking
the requsted locale in the request and set it into the view root. I've also
locale switching buttons on the page to select locale explicitly. Everything
works nicely but... in fact there are two sites in one
Hi,
I am receiving following error message when I configurated my
application to use myface implementation 1.1.1.
INFO: Reading config /WEB-INF/faces-config.xml
Feb 2, 2006 5:53:05 AM org.apache.myfaces.util.LocaleUtils toLocale
SEVERE: Locale name null or empty, ignoring
Same error message
Look MYFACES-656 http://issues.apache.org/jira/browse/MYFACES-656 in
myfaces' bug database (jira)
Nikita Shah wrote:
Hi
Am having a problem in displaying the date of curent locale in jsf
tags. I think by default the locale EN_US is taken. But i want it to
be currentLocale.
Please guide
Hi AdrienThanks a lot for your reply, I did follow that link and got a workaround for it too...~NikitaAdrien FOURES [EMAIL PROTECTED] wrote: Look MYFACES-656 in myfaces' bug database (jira)Nikita Shah wrote: Hi Am having a problem in displaying the date of curent locale in jsf tags. I
Hi Am having a problem in displaying the date of curent locale in jsf tags. I think by default the locale EN_US is taken. But i want it to be currentLocale. Please guide me if I am wrong. And also please help me in getting the current date according to the locale. The following is jsp page
Hello,
I have the following in my faces-config.xml file:
locale-config
default-localefr/default-locale
supported-localeen/supported-locale
supported-localefr/supported-locale
/locale-config
and would like the default-locale fr to be set once for my
application on startup. After that I
Hi Thomas,
i don't know what the problem with datatable and verbatim is, may be
worth to investigate, but to enable users to change the locale
independent from the preferences settings in there browsers, you should
provide a bean with a locale property.
add the attribute locale to the f:view tag
Hi all,
I'm a newbie and have the following problem: We have in all pages
commandLinks to enable the users change the Locale. The backing-Bean-methods
look like e.g.:
public String at() {
FacesContext context = FacesContext.getCurrentInstance();
context.getViewRoot().setLocale
Hello,
I found a solution on my own. Probably someone else could find it
useful:
Define a PhaseListener, which is called on PhaseId.RENDER_RESPONSE.
At the beforePhase you can call the PortalUtil-class of liferay to get
the current user and retrieve the Locale of this user. (I wrapped
Liferay use LanguageUtil.get() to set the language.
Myfaces doesn't use that for sure.
--- Strittmatter, Stephan
[EMAIL PROTECTED] wrote:
Hello together,
I try to implement a portlet for Lifray based on
MyFaces. It has to
support different languages, which is working fine
in the
When a user click Help link, a locale sensitive help page will pop up. If I use Resource Bundle, adding a property in existing messages.properties, the whole help page is just one property. However, the property name/value is for one line only.
name = value
The help page, like other HTML page
Hi,
I'm trying to change the locale for the current user like this:
JSP:
h:commandLink immediate=true action=#{Home.germanLocal}
h:graphicImage value=/german_flag.gif/
/h:commandLink
PageBean:
public void germanLocal()
{
FacesContext.getCurrentInstance().getViewRoot
Hi,
you need to specifiy the locale to a bean in f:view tag and change the
value there also.
Jatinder Singh wrote:
Hi,
I'm trying to change the locale for the current user like this:
JSP:
h:commandLink immediate=true action=#{Home.germanLocal}
h:graphicImage value=/german_flag.gif
Hi,
Thanks for setting me in the right direction. It works!
-Jatinder
-Original Message-
From: Volker Weber [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 20, 2005 11:31 AM
To: MyFaces Discussion
Subject: Re: Change Locale
Hi,
you need to specifiy the locale to a bean in f:view
Title: Message
Sorry
for asking so much questions but I'll have to present my webapp very soon and I
need the multi-language to works fine.
Has
anybody any idea ? Why the locale is reset to the default one ? Could it comes
from a redirect/ instruction in my faces-config.xml
?
Ty for
your
If you set the locale in the UIViewRoot manually, I don't know if it
will be passed on to the next UIViewRoot.
One solution for you might be putting the users locale in the session
(e.g. the key locale or user.locale if your have a user object) and
use the locale attribute f:view locale
Thx Udo but look at the NB of my first message --- NB : I'm trying not to use
the locale parameter of the f:view tag
This solution works (I've tried it) but not so clean in my opinion.
The use of
FacesContext.getCurrentInstance().getFacesContext().getViewRoot().setLocale(l)
should work
I suggest you take a look at the list archives for Maintain locale
across views.
I had a similar issue and it seems the locale is not maintained
across views when a redirect/ is used.
In the end I set f:view locale=#{visit.locale}, where visit is a
session scoped bean.
Gianni
Sorry
a look at the list archives for Maintain locale
across views.
I had a similar issue and it seems the locale is not maintained
across views when a redirect/ is used.
In the end I set f:view locale=#{visit.locale}, where visit is a
session scoped bean.
Gianni
Sorry for asking so much
OK thx Gianni.
So if I sum up things :
2 solutions to dynamically change your application locale :
*1- If you use the server STATE_SAVING_METHOD with somes /redirect
instructions :
Create a bean to save the locale choice
This bean must be in session scope or request + saveState
Then in each
Another solution provided by Martin :
-Message d'origine-
De : Martin Marinschek [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 26 août 2005 16:37
À : MyFaces Discussion
Objet : Re: TR : Dynamic Locale change
The solution would be quite similar to what was done in a collaborative effort
{
...
FacesUtil.setLocale(selectedLocale);
...
}
...
}
FacesUtil
{
...
public static void
setLocale(Locale l) {
FacesContext.getCurrentInstance().getFacesContext().getViewRoot().setLocale(l);
}
...
}
It works fine when the
action is executed (the language change), but as soonas I navigate
I'm starting out with JSF and I'd appreciate some clarification
regarding internationalization:
I'm using a select menu and backing bean to call setLocale() on the
current view, this works fine and I can change the locale of the view
in question. But when I navigate to another view
Hi,
I'm using a select menu and backing bean to call setLocale() on the
current view, this works fine and I can change the locale of the view
in question. But when I navigate to another view the locale reverts
back to the browser default.
Is this correct behavior?
AFAIK yes.
Do I need
On 7/11/05, Daniel Zwink [EMAIL PROTECTED] wrote:
Hi,
I'm using a select menu and backing bean to call setLocale() on the
current view, this works fine and I can change the locale of the view
in question. But when I navigate to another view the locale reverts
back to the browser default
I tried with the RI and was still getting the same issue then I
realised it may be something to do with the fact I was using
redirect/ in the navigation rule.
If I take out the redirect/ then the locale is maintained across
views, with redirect it's not.
Thanks
Gianni
On 11/lug/05, at 18
On 7/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I tried with the RI and was still getting the same issue then I
realised it may be something to do with the fact I was using
redirect/ in the navigation rule.
If I take out the redirect/ then the locale is maintained across
views
We use a PhaseListener. Locale switching stores the locale the JSTL way, and then on each request this code is executed:
package be.peopleware.jsf_I;
import java.util.Locale;
import java.util.Map;
import javax.faces.FacesException;
import javax.faces.component.UIViewRoot;
import
I've noticed the following Locale issue in MyFaces (1.0.8) not seen in
Sun's RI (1.1_01):
Unicode character escape sequences (e.g. \u9078\u629e) for Japanese
characters (contained in a properties file) render as question marks
when escape=false in an outputText component. When escape=true
I have been wondering for a while why when I use the currency converter,
it outputs some strange currency symbol and I ran some tests and it
looks to me like MyFaces isn't initializing the Locale properly.
This is what I see: ¤98.20
When I use:
h:outputText value=#{bucket.revenue
78 matches
Mail list logo