Theme
Localized

Localized allows you to include large content blocks based on the View Locale or provided Locale with fallbacks to default content.
It's not recommended to use Localized for small messages as labels or headers. There you should use resource bundles.

Files should be put in the WEB-INF/pfe-localized folder.
Files used in this demo can be found in our GitHub repo.

Files should be named {name}, {name}_{language} or {name}_{language}_{country}. Language and country should match those is the set view locale or the provided locale. See also Locale documentation.

Components and more
Documentation pe:localized
Attributes (move mouse over the names to see data types)
Name Description
id Unique identifier of the component in a namingContainer.
rendered Boolean value to specify the rendering of the component, when set to false component will not be rendered.
name Name of the content file, relative to /WEB-INF/pfe-localized/ and optional folder (attribute). If `null`, content is expected in facets.
folder Folder of the content file, relative to /WEB-INF/pfe-localized/ (optional, if `null` root will be used).
locale String or java.util.Locale representing user locale. Default is a locale specified in view root.
escape Boolean value to specify if the content needs to be escaped. Escaping is done before Markdown is applied. Default is true.
evalEl Boolean value to specify if the content needs to EL evaluated. Default is false.
markdown Boolean value to specify if Markdown needs to be applied on the content. Default is false.
PrimeFaces Extensions Showcase - © 2011-2021,PrimeFaces: 11.0.0,PrimeFaces Extensions: 11.0.3,JSF: Apache MyFaces JSF-2.3 Core API 2.3.9,Server: jetty/9.4.36.v20210114,Build time: 2022-04-17 14:55
occured!