Hi guys,
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:
<h2>#{msg.newCustomer}</h2>
But in my Java class, I tried to do this:
statusMessages.addToControlFromResourceBundle("refArbor", "#{messages['error_refArborDoesntExist']}");
or this:
statusMessages.addToControlFromResourceBundle("refArbor", "error_refArborDoesntExist");
or again this:
statusMessages.addToControlFromResourceBundle("refArbor", "#{msg.error_refArborDoesntExist}");
But the message showned is:
error_refArborDoesntExist
And not the real message.
How can I use my bundle is a Java class ?
Thanks.