AnsweredAssumed Answered

Access java properties from .js controller in WCMQS

Question asked by leonardo.celati on Mar 9, 2014
Latest reply on Mar 10, 2014 by leonardo.celati
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…



Outcomes