Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-10021

JSF internationalization doesn't work for bundles declared in faces-config.xml or <f:loadBundle>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.3.0.M5
    • 3.3.0.M4
    • jsf
    • None

    Description

      EXECUTE: Create JSF 2 KickStart Project.
      EXECUTE: Replace faces-config.xml by:

      <?xml version="1.0" encoding="UTF-8"?>
      <faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"
      	xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
      	<navigation-rule>
      		<from-view-id>/pages/inputname.inc</from-view-id>
      		<navigation-case>
      			<from-outcome>greeting</from-outcome>
      			<to-view-id>/pages/greeting.xhtml</to-view-id>
      		</navigation-case>
      	</navigation-rule>
      	<application>
      		<locale-config>
      			<default-locale>en</default-locale>
      			<supported-locale>de</supported-locale>
      		</locale-config>
      		<resource-bundle>
      			<base-name>resources</base-name>
      			<var>msgs</var>
      		</resource-bundle>
      	</application>
      </faces-config>
      

      EXECUTE: Add resources_de.properties to JavaSource:

      prompt=Your Name\:
      greeting=Hallo
      aaa=ass
      

      EXECUTE: Open greeting.xhtml. Move the mouse over the "#

      {msgs.greeting}

      FAILURE: There is no resources_de bundle in the shown tooltiip.
      EXECUTE: Add <f:loadBundle basename="resources" var="a"/> and try Ctrl+Space at #

      {a.|}

      FAILURE: There is no "aaa" proposal.

      Attachments

        Activity

          People

            scabanovich Viacheslav Kabanovich (Inactive)
            alexeykazakov Alexey Kazakov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: