[jbosstools-issues] [JBoss JIRA] (JBIDE-10021) JSF internationalization doesn't work for bundles declared in faces-confog.xml or <f:loadBundle>
Viacheslav Kabanovich (Commented) (JIRA)
jira-events at lists.jboss.org
Wed Oct 26 15:11:45 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-10021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637746#comment-12637746 ]
Viacheslav Kabanovich commented on JBIDE-10021:
-----------------------------------------------
Since ModelPlugin is installed as jar file, method FilePathHelper.isCaseSensitive() fails.
> JSF internationalization doesn't work for bundles declared in faces-confog.xml or <f:loadBundle>
> ------------------------------------------------------------------------------------------------
>
> Key: JBIDE-10021
> URL: https://issues.jboss.org/browse/JBIDE-10021
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: JSF
> Affects Versions: 3.3.0.M4
> Reporter: Alexey Kazakov
> Assignee: Viacheslav Kabanovich
> Fix For: 3.3.0.Beta1
>
>
> EXECUTE: Create JSF 2 KickStart Project.
> EXECUTE: Replace faces-config.xml by:
> {code}
> <?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>
> {code}
> EXECUTE: Add resources_de.properties to JavaSource:
> {code}
> prompt=Your Name\:
> greeting=Hallo
> aaa=ass
> {code}
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list