Hi
Thank you for reading my message.
I have a problem , I need to load some of my resource string from String bundle By string bundle i mean the .properties file that we use to make application i18n-ed . Now i need to load some of my key from bundle file in one of my jsf page backing bean.

for example :
in jsf i write :
<.... text="#{bundle.user_name}" />

now i want to access those keys from my java source files.
i need to access the bundle in right locale when i try to use it.

for example if locale is French i should load the key from bundle_fr.properties .
I defined this bundle file both in my jsf page using
<f:loadBundle basename="mypackage.Bundle" var="bundle" />
and i use it in all jsf tags by that bundle variable.

now i need same access in java backing beans.

can some one  help me ?

Thank you

Reply via email to