cancel
Showing results for 
Search instead for 
Did you mean: 

Access java properties from .js controller in WCMQS

leonardo_celati
Champ in-the-making
Champ in-the-making
In my WCMQS application I am in need to access a localized property from within the component javascript controller.

I added a custom property to the existing messages property file in the web application:

common_it.properties
myproperty=x

common_en.properties
myproperty=y

Then, this is just a guess, obviously not working.

mycomponent.get.js

var myprop = msg['myproperty']; // <– just a guess
// various operations…



2 REPLIES 2

mitpatoliya
Star Collaborator
Star Collaborator
You can try this  msg.get("myproperty");

It seems to work, but I am only getting the same locale, even if the browser is set to different language.