ICEfaces
  1. ICEfaces
  2. ICE-2888

icefaces resource bundle should not be reconfigurable at application level

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.7Beta1
    • Fix Version/s: None
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      tomcat6
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Problem can go away after removing "<message-bundle>" from faces-config.xml.
      Show
      Problem can go away after removing "<message-bundle>" from faces-config.xml.

      Description

      My web application fails to display ice:selectInputDate component on a browser. Stack trace shows:

      SEVERE: Servlet.service() for servlet Blocking Servlet threw exception
      java.util.MissingResourceException: Can't find bundle for base name ApplicationResources, locale en
      at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
      at java.util.ResourceBundle.getBundleImpl(Unknown Source)
      at java.util.ResourceBundle.getBundle(Unknown Source)
      at com.icesoft.faces.utils.MessageUtils.getResource(MessageUtils.java:109)
      at com.icesoft.faces.utils.MessageUtils.getResource(MessageUtils.java:98)
      at com.icesoft.faces.component.selectinputdate.SelectInputDateRenderer.getMessageWithParamFromResource(SelectInputDateRenderer.java:1014)
      at com.icesoft.faces.component.selectinputdate.SelectInputDateRenderer.encodeEnd(SelectInputDateRenderer.java:235)

      What happens MessageUtils class picks up message bundle name specified in faces-config.xml in line 95:
                     String bundleName = facesContext.getApplication().getMessageBundle();

      The message bundle I set in faces-config.xml is for my own usage - not tempt to be for icefaces. Shouldn't icefaces always go by the own resource bundle file?

      Here's what I got in my faces-config.xml:
         <application>
      .....
              <message-bundle>ApplicationResources</message-bundle>
      ......
          </application>

        Activity

        Hide
        Philip Breau added a comment -

        ICEfaces will use application-level resource bundles in a JSF 1.2 configuration, as per the spec.

        Show
        Philip Breau added a comment - ICEfaces will use application-level resource bundles in a JSF 1.2 configuration, as per the spec.

          People

          • Assignee:
            Unassigned
            Reporter:
            Pink Lady
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: