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 <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to