The default binding prefix for the translate parameter is "translate:", not
"prop:".

Also, a prop binding of "field.type" will call yourPage.getField().getType()

Tapestry provides translators for Byte, Short, Integer, Long, Float,
Double, BigInteger and BigDecimal which can all be referenced by the class'
simpleName.

So you should be able to do:
<t:textfield value="field.propertyValue" translate="bigdecimal"/>

If you want to create lookup a translator programmatically, you can do:

TML
-----
<t:textfield value="field.propertyValue" translate="prop:fieldTranslator"/>

Java
-----
@Inject ComponentResources resources;
@Inject FieldTranslatorSource fts;

public FieldTranslator getFieldTranslator () {
    return fts.createTranslator(resources, "bigdecimal");
}

Reply via email to