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 #
FAILURE: There is no "aaa" proposal.