[jbosstools-issues] [JBoss JIRA] (JBIDE-10021) JSF internationalization doesn't work for bundles declared in faces-confog.xml or <f:loadBundle>

Alexey Kazakov (Commented) (JIRA) jira-events at lists.jboss.org
Wed Oct 26 12:02:45 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-10021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637661#comment-12637661 ] 

Alexey Kazakov commented on JBIDE-10021:
----------------------------------------

{code}
Tests run: 65, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 226.359 sec <<< FAILURE!
testJstJspLongResourceBundlePropertyNamesInTagAttributeValue(org.jboss.tools.jsf.jsp.ca.test.CAJsfMessagesProposalsTest)  Time elapsed: 1.907 sec  <<< FAILURE!
junit.framework.AssertionFailedError: The proposal to apply not found.
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at org.jboss.tools.jsf.jsp.ca.test.CAJsfMessagesProposalsTest.doTestLongResourceBundlePropertyNames(CAJsfMessagesProposalsTest.java:76)
	at org.jboss.tools.jsf.jsp.ca.test.CAJsfMessagesProposalsTest.testJstJspLongResourceBundlePropertyNamesInTagAttributeValue(CAJsfMessagesProposalsTest.java:85)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:243)
	at junit.framework.TestSuite.run(TestSuite.java:238)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.extensions.TestSetup.run(TestSetup.java:27)
	at junit.framework.TestSuite.runTest(TestSuite.java:243)
	at junit.framework.TestSuite.run(TestSuite.java:238)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:72)
	at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication$1.run(AbstractUITestApplication.java:35)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:31)
	at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:114)
	at org.eclipse.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:37)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)


Results :

Failed tests: 
  testJstJspLongResourceBundlePropertyNamesInTagAttributeValue(org.jboss.tools.jsf.jsp.ca.test.CAJsfMessagesProposalsTest)

Tests run: 65, Failures: 1, Errors: 0, Skipped: 0
{code}
                
> 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: Alexey Kazakov
>             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