Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

23.3. Components for internationalization and themes

The next group of components make it easy to build internationalized user interfaces using Seam.
org.jboss.seam.core.locale
The Seam locale. The locale is session scoped.
org.jboss.seam.core.timezone
The Seam timezone. The timezone is session scoped.
org.jboss.seam.core.resourceBundle
The Seam resource bundle. The resource bundle is session scoped. The Seam resource bundle performs a depth-first search for keys in a list of Java resource bundles.
  • resourceBundle.bundleNames — the names of the Java resource bundles to search. Default to messages.
org.jboss.seam.core.localeSelector
Supports selection of the locale either at configuration time, or by the user at runtime.
  • select() — select the specified locale.
  • localeSelector.locale — the actual java.util.Locale.
  • localeSelector.localeString — the string representation of the locale.
  • localeSelector.language — the language for the specified locale.
  • localeSelector.country — the country for the specified locale.
  • localeSelector.variant — the variant for the specified locale.
  • localeSelector.supportedLocales — a list of SelectItems representing the supported locales listed in jsf-config.xml.
  • localeSelector.cookieEnabled — specifies that the locale selection should be persisted via a cookie.
org.jboss.seam.core.timezoneSelector
Supports selection of the timezone either at configuration time, or by the user at runtime.
  • select() — select the specified locale.
  • timezoneSelector.timezone — the actual java.util.TimeZone.
  • timezoneSelector.timeZoneId — the string representation of the timezone.
  • timezoneSelector.cookieEnabled — specifies that the timezone selection should be persisted via a cookie.
org.jboss.seam.core.messages
A map containing internationalized messages rendered from message templates defined in the Seam resource bundle.
org.jboss.seam.theme.themeSelector
Supports selection of the theme either at configuration time, or by the user at runtime.
  • select() — select the specified theme.
  • theme.availableThemes — the list of defined themes.
  • themeSelector.theme — the selected theme.
  • themeSelector.themes — a list of SelectItems representing the defined themes.
  • themeSelector.cookieEnabled — specifies that the theme selection should be persisted via a cookie.
org.jboss.seam.theme.theme
A map containing theme entries.
All of these components are always installed.

 
 
  Published under the terms of the Open Publication License Design by Interspire