Reputation: 1
I haves a small problem.
I created a simple front-end in JSF technology. I want to ensure internationalization so that the application is available in two languages.
I have separate files for translating texts, e.g. x.x=something
And now, typing #{msg ["x.x"]} for the http://java.sun.com/jsf/html or other standard component, e.g.
<h:form>
#{msg["x.x"]}
</h:form>
everything is OK, the browser displays "something" for me.
But when I want to use the Prime Faces component (http://primefaces.org/ui), e.g.
<p:panelmenu>
<p:submenu label="SomeLabel"}>
<p:menuitem value=#{msg["x.x"]} action="#{y.y}"/>
</p:submenu>
</p:panelmenu>
it does not work anymore.
Anyone have an idea or knowledge how to solve it?
Upvotes: 0
Views: 319
Reputation: 822
Could ou try this code ? The double quotes should be placed around the value.
<p:panelmenu>
<p:submenu label="SomeLabel"}>
<p:menuitem value="#{msg['x.x']}" action="#{y.y}"/>
</p:submenu>
</p:panelmenu>
Upvotes: 1