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

Ken Finnigan commented on SEAMINTL-33:
--------------------------------------

Couple of possible solutions I will try tonight.

Another option is to provide ability for you to:

@Inject
@Bundle("bundleName")
ResourceBundle bundleName;

to get the bundle, and you could then add @Produces to inject and produce the 
same bundle.

> Injections null when Bundles.get(String) is called
> --------------------------------------------------
>
>                 Key: SEAMINTL-33
>                 URL: https://issues.jboss.org/browse/SEAMINTL-33
>             Project: Seam International
>          Issue Type: Bug
>          Components: Messages
>    Affects Versions: 3.0.0.CR2
>            Reporter: Nicklas Karlsson
>            Assignee: Ken Finnigan
>             Fix For: 3.0.0.Final
>
>         Attachments: arquillian.zip, passivation.zip
>
>
> Strange one. I'm trying to @Produce shorthands for my bundles so I have 
> @Injected Bundles bundles but I get a NPE from my
>    @Produces
>    @Named
>    public ResourceBundle getMsg()
>    {
>       return bundles.get("default");
>    }
> The strange thing is that if I put breakpoints in Bundles.size() and 
> Bundles.get(String), the injected Locale and ApplicationBundles are null for 
> get(String) but non-null for the size() invocations!

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues

Reply via email to