-
Dec 8th, 2012, 03:01 PM
#11
You just have to do this :
You need to add locale support of your country in faces-config.xml and add a file in folder i18n.
you don't need to add a bean for that.
-
Dec 8th, 2012, 03:48 PM
#12
-
Dec 8th, 2012, 05:28 PM
#13
Could you send faces-config.xml and the list of files you have under i18n?
-
Dec 8th, 2012, 05:44 PM
#14
the app is in skunk-works so i'll send you the files separately via IM.
-
Dec 8th, 2012, 05:59 PM
#15
Is your desktop english Locale?
-
Dec 8th, 2012, 06:16 PM
#16
yes i think it's english locale. my desktop is ubuntu linux. any way to be sure?
-
Dec 8th, 2012, 06:18 PM
#17
~/Documents/workspace-sts-3.1.0.RELEASE $ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
-
Dec 9th, 2012, 07:35 AM
#18
You don't have to declare this :
<managed-bean>
<managed-bean-name>localeBean</managed-bean-name>
<managed-bean-class>com.vaulthealth.jsf.util.LocaleBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>applicationBean</managed-bean-name>
<managed-bean-class>com.vaulthealth.jsf.ApplicationBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>patientBean</managed-bean-name>
<managed-bean-class>com.vaulthealth.jsf.PatientBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
-
Dec 9th, 2012, 10:01 AM
#19
interesting...i removed those lines but now i get this:
javax.servlet.ServletException: /templates/layout.xhtml at line 8 and column 63 locale="#{localeBean.locale}" Attribute did not evaluate to a String or Locale: null
javax.faces.webapp.FacesServlet.service(FacesServl et.java:213)
org.primefaces.webapp.filter.FileUploadFilter.doFi lter(FileUploadFilter.java:79)
-
Dec 9th, 2012, 10:34 AM
#20
Under ~.util package please check if your LocaleBean class has these 2 annotations : @ManagedBean and @SessionScoped
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules