retrieving resource bundles in backing bean

2008-07-10 Thread Marcel Brückner
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

RE: retrieving resource bundles in backing bean

2008-07-10 Thread Guy Bashan
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

Re: retrieving resource bundles in backing bean

2008-07-10 Thread Richard Yee
[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

Re: PPR with s:pprPanelGroup and resource bundles

2008-05-23 Thread Gerald Müllan
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

PPR with s:pprPanelGroup and resource bundles

2008-05-22 Thread Guy Bashan
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 resource bundles with JSF?

2007-01-03 Thread mraible
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

Re: Resource Bundles

2006-11-28 Thread ::SammyRulez::
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

Re: Resource Bundles

2006-11-28 Thread Paola Attadio
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

Resource Bundles

2006-11-27 Thread Paola Attadio
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

Re: Resource bundles

2006-11-07 Thread Martin Marinschek
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

Resource bundles

2006-11-06 Thread Niklas Ekman
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