MyFaces 1.1.5, Tomcat 5.5
I currently use the following way to retrieve resource bundles:
FacesContext cont = FacesContext.getCurrentInstance();
UIViewRoot viewRoot = cont.getViewRoot();
Locale loc = viewRoot.getLocale();
labelsResource = ResourceBundle.getBundle(labels, loc);
This code is part
Hi,
I also had the same problem. Using s:loadBundle from the myfaces sandbox
solved this issue.
Guy
From: Marcel Brückner [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2008 12:15 PM
To: users@myfaces.apache.org
Subject: retrieving resource bundles in backing bean
MyFaces 1.1.5
[EMAIL PROTECTED] wrote:
Hi,
I also had the same problem. Using s:loadBundle from the myfaces sandbox
solved this issue.
Guy
From: Marcel Brückner [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2008 12:15 PM
To: users@myfaces.apache.org
Subject: retrieving resource bundles
bundles.
It seems like the values containing resource bundles are empty after PPR.
When page loads the resources are loaded properly.
Thanks,
Guy.
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache
Hi All,
I am having a little problem doing PPR with resource bundles.
It seems like the values containing resource bundles are empty after PPR.
When page loads the resources are loaded properly.
Thanks,
Guy.
Is it possible to use multiple i18n resource bundles with JSF? I'd like to
have a messages.properties for labels, messages and such and an
errors.properties for validation errors. I'd be happy to move to JSF 1.2 if
that's a feature not present in 1.1.
Thanks,
Matt
--
View this message
an exception is thrown so standard http error 500 will work fine
(web.xml error page tag)
message bundle should be design time why do you need to display
friendly messages to coders... detailed facelets error should be
preferred
2006/11/27, Paola Attadio [EMAIL PROTECTED]:
Hi All,
I'm using
Thanks and Regards,
Paola Attadio
On 11/28/06, ::SammyRulez:: [EMAIL PROTECTED] wrote:
an exception is thrown so standard http error 500 will work fine
(web.xml error page tag)
message bundle should be design time why do you need to display
friendly messages to coders... detailed facelets
Hi All,
I'm using MyFaces 1.1.4 and Facelets 1.1.11.
In a page I declare a resource bundle with f:loadbundle
basename=message var=bundle. It works very well. But, if the
resource bundle can't find a key, it throw an exception. Is it
possible to configure a default friendly message?
Best
scope. I suspect that
the component and the page share the same bean space. So the problem I
have is, how can I have unique resource bundles in my components?
Best regards,
Niklas
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
with the request scope. I suspect that the component and the page share the same bean space. So the problem I have is, how can I have unique resource bundles in my components?
Best regards,Niklas
11 matches
Mail list logo