Use message bundle in Java class with Seam

前端 未结 4 602
萌比男神i
萌比男神i 2020-12-17 06:31

I want to use my message bundle (messages_fr.properties) in a Java class with seam.

In a jsf file, all work fine like this:

#{msg.newCustom

4条回答
  •  情深已故
    2020-12-17 07:16

    String msg = org.jboss.seam.international.Messages.instance().get("key") worked for me!

    I had the same problem using an entity bean.

提交回复
热议问题