[seam-issues] [JBoss JIRA] Commented: (SEAMINTL-25) AvailableLocales.locales always has zero elements when configuration follows the documentation
Sebastian Sachtleben (JIRA)
jira-events at lists.jboss.org
Sun Feb 20 19:54:13 EST 2011
[ https://issues.jboss.org/browse/SEAMINTL-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583496#comment-12583496 ]
Sebastian Sachtleben commented on SEAMINTL-25:
----------------------------------------------
Ok I have tested with another webapp and the bug is fixed in current snapshot.
Just change the seam-beans.xml to:
<beans xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:s="urn:java:ee"
xmlns:lc="urn:java:org.jboss.seam.international.locale"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://docs.jboss.org/cdi/beans_1_0.xsd">
<lc:LocaleConfiguration>
<lc:supportedLocaleKeys>
<s:value>en</s:value>
<s:value>fr</s:value>
</lc:supportedLocaleKeys>
</lc:LocaleConfiguration>
</beans>
> AvailableLocales.locales always has zero elements when configuration follows the documentation
> ----------------------------------------------------------------------------------------------
>
> Key: SEAMINTL-25
> URL: https://issues.jboss.org/browse/SEAMINTL-25
> Project: Seam International
> Issue Type: Bug
> Components: Locales
> Affects Versions: 3.0.0.Beta2
> Environment: JBAS6.0.0.Final
> Reporter: Leiv Hellebo
> Assignee: Ken Finnigan
> Fix For: 3.0.0.CR1
>
> Attachments: NoLocale.java, seamintl-nolocales.war
>
>
> AvailableLocales has @Produces List<Locale> locales, but the list is always empty
> Stepping through the code in debug mode shows that no locales is added because the if-test of line 55 (!supportedLocaleKeys.isUnsatisfied()) is never true
> (and a side note: the log says "WELD-000604 interface org.jboss.seam.international.locale.SupportedLocaleKeys is not declared @Target(METHOD, FIELD, PARAMETER, TYPE). Weld will use this annotation, however this may make the application unportable." otherwise nothing in the logs)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list