This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | I18N - calendar component does not have a lang property | ||
---|---|---|---|
Product: | obsolete | Reporter: | bugbridge <bugbridge> |
Component: | visualweb | Assignee: | _ edwingo <edwingo> |
Status: | CLOSED WORKSFORME | ||
Severity: | blocker | CC: | kaa, kfrank, sunlit |
Priority: | P3 | Keywords: | I18N |
Version: | 5.x | ||
Hardware: | Sun | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
bugbridge
2007-01-31 23:22:09 UTC
This is a user error. The user must define the supported locales by the app in the faces-config.xml file. If the locale identified in a request is not defined in faces-config.xml, JSF defaults the locale to server JVM's default locale. The component behaves correctly and there is no need for a lang property. Here is an example of what should go into the faces config file: <application> <locale-config> <default-locale>en</default-locale> <supported-locale>de</supported-locale> <supported-locale>fr</supported-locale> <supported-locale>ja</supported-locale> <supported-locale>zh</supported-locale> </locale-config> </application> Note, if the user is using a Braveheart component (1.4 project), then s/he also needs to add an entry to web.xml file for the theme to use. Woodstock components don't need that entry. For example: <context-param> <param-name>com.sun.webui.theme.SUPPORTED_LOCALES</param-name> <param-value>en,ja</param-value> </context-param> Please verify and close it. Closing. |