Table of Contents


Since 4.0

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.

See the ICEfaces Showcase Live Demo of this component, complete with source code.

Getting Started

To use the icecore:loadBundle tag, first declare the core namespace:

<html ... xmlns:icecore="http://www.icefaces.org/icefaces/core">

Then add the tag to your page markup wiring the action to the bean method:

<h:form id="form"> 
    <icecore:loadBundle var="wizardMessages" basename="com.bla.T.wizard.Messages"/>     

The component can be define anywhere in the document as long as it is defined before the components that use the bundle.

    <icecore:loadBundle var="wizardMessages" basename="com.bla.T.wizard.Messages"/>     
    <h:outputText value="#{wizardMessages.title}"/>     
    <h:commandButton label="#{wizardMessages.nextStep}" ... />     


TagLib Documentation
This section covers attributes involved in the typical use-cases for this component. For reference, the complete taglib documentation for this component is available here.

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.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© Copyright 2018 ICEsoft Technologies Canada Corp.