Hello,

I'm just starting with seam and managed to set up my project integrating ADF 
faces with facelets, MyFaces and Seam. Everything works so far but now I ran 
into a problem using the resource bundle in a session bean.
I am using the default messages.properties and it works in my pages using EL 
#{messages.hello}

Now I want to use the message directly in my session bean and tried to inject 
it as described in the reference doc:

@In("#{messages['hello']}") private String hello;

But it doesn't get injected, the string is still null.
Even tried

@In("#{messages.hello}") private String hello;

which gives the same result.
When I inject the messages Map

@In(create=true) private Map<String, String> messages;

a NullPointerException is thrown as soon as I try to access the map by

private String hello = messages.get("hello");


Does anyone have a hint for me?

Thanks,
johnnybe

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953147#3953147

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953147

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to