I'm trying to set a error message on a widget using the i18n transformer and
for some strange reason i cannot.
On the forms definition file i'm setting a widget like:
<fd:field id="generic_error" state="output">
<fd:datatype base="string"/>
</fd:field>
On my AppleController java class I'm setting the widget value to:
form.getChild("generic_error").setValue("4202");
On the form template file I'm doing:
<i18n:text><ft:widget id="generic_error"/></i18n:text>
The problem is that it's not displaying the translated error message for
the key 4202, instead it's displaying the string "4202"
Does anyone know how to do this? Am I using the wrong approach for this kind
of validation of the CForms?
any help would be very appreciated.