There should already be a translator for BigDecimal. If it's really some other type you can just create one in your AppModule and it will just work. See
https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=blob;f=tapestry-core/src/main/java/org/apache/tapestry5/modules/TapestryModule.java;h=da8043ceca5571bcc20661f967a1275b2c93d97c;hb=HEAD#l883 On Wed, Sep 18, 2013 at 11:55 AM, Lenny Primak <lpri...@hope.nyc.ny.us>wrote: > Translator isn't a Prop: binging, do you can't use it like you are doing > here. > You need to create a translator that checks the type and does what you > need to do depending on the type. > > On Sep 18, 2013, at 12:37 PM, George Christman <gchrist...@cardaddy.com> > wrote: > > > Hello, I have a textfield placed within a loop. My object contains the > > property type of the field "bigdecimal". I'm trying to dynamically set > the > > translate attribute, but it fails with the following exception. > > > > *Render queue error in BeginRender[employee/TimeSheet:textfield]: Failure > > reading parameter 'translate' of component employee/TimeSheet:textfield: > > Unknown translator type 'field.type'.* > > > > Code example > > > > > > <t:Loop source="fields" value="field" > > encoder="encoder"> > > <div class="col-xs-15"><div><t:textfield > > value="field.propertyValue" translate="field.type"/></div></div> > > </t:Loop> > > > > public String getType() { > > return "bigdecimal"; > > } > > > > Does anybody know how to dynamically set this attribute. I've tried a few > > different binding expressions without success. > > > > translate="prop:field.type" etc > > > > Thanks, > > George > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >