Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Actually the loadBundle component was made transient from JSF 2.0.</p> <p><a href="http://grepcode.com/file/repository.jboss.org/maven2/javax.faces/jsf-impl/1.2_04-p02/com/sun/faces/taglib/jsf_core/LoadBundleTag.java" rel="nofollow">Source Code JSF 1.2</a></p> <p><a href="http://www.docjar.com/html/api/com/sun/faces/taglib/jsf_core/LoadBundleTag.java.html" rel="nofollow">Source Code JSF 2.0</a></p> <p>Since you are also not using Icefaces 2.0. You cannot make use of this either. <a href="http://jira.icesoft.org/browse/ICE-5268" rel="nofollow">ICEFACES JIRA</a></p> <p>So the only way I can think of is creating your own messageBean and retriving the messages.</p> <p>You can do something like this:</p> <pre><code>public class MessageBean implements Serializable { transient private static ResourceBundle bundle; transient private static Map map; protected static ClassLoader getCurrentClassLoader(Object defaultObject) { ClassLoader loader = Thread.currentThread().getContextClassLoader(); if (loader == null) { loader = defaultObject.getClass().getClassLoader(); } return loader; } MessageBean() { bundle = ResourceBundle.getBundle("LanguageChances", java.util.Locale.getDefault(), getCurrentClassLoader(null)); map = new HashMap&lt;String, Object&gt;(); Enumeration&lt;String&gt; keys = bundle.getKeys(); while (keys.hasMoreElements()) { String key = keys.nextElement(); Object value = bundle.getObject(key); map.put(key, value); } } public Map getMap(){ return map; } } </code></pre> <p>And use something like this on your page to retrieve the messages:</p> <pre><code>&lt;c:forEach items="#{messageBean.map}" var="entry"&gt; &lt;h:outputText value="#{entry.key}"/&gt; &lt;/c:forEach&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload