You can use the icecore:loadBundle tag to load a resource bundle to be used for locale specific messages. Unlike the standard h:loadBundle component, the icecore:loadBundle is completely dynamic, meaning that if any of its attributes changethere will be no need to reload the page, session or application.
To use the icecore:loadBundle tag, first declare the core namespace:
Then add the tag to your page markup wiring the action to the bean method:
The component can be define anywhere in the document as long as it is defined before the components that use the bundle.
var Use this attribute to specify the name of the EL variable that will be used to referenced the defined bundle. This attribute can be dynamically redefined, so a value binding will work as well.
basename Use this attribute to specify the fully qualified name of the ResourceBundle class that will be instantiated in order to serve up the localised message. If the class is not found a resource bundle properties file is looked up instead. See more about how resource bundles work: http://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html . This attribute can be dynamically redefined, so a value binding will work as well.
© Copyright 2018 ICEsoft Technologies Canada Corp.