I would like to provide a variable translator to TextField depending on the
currency of the user. For example:

       <t:textfield value=*"stockItem.priceAsBigDecimal"* translate=
*"prop:moneyAmountTranslator"* />

In AppModule I have two money translators defined:

    configuration.add("moneyamount_0", *new* MoneyAmountTranslator(
"moneyamount_0", 0, threadLocale, *false*));

    configuration.add("moneyamount_2", *new* MoneyAmountTranslator(
"moneyamount_2", 2, threadLocale, *false*));

However, I can't figure out how to make one available to the translate
parameter of the TextField as a variable. How can
getMoneyAmountTranslator() retrieve one of the above translators? Can they
be injected?

Cheers,
Adonique

Reply via email to