Currently, I am updating my application from T5.1 to T5.2. 

I encountered a problem with a component that extends TextField. My
component just trims the input before processing it, but FieldTranslator
does not seems to be set any longer by the framework.

public class TextInput extends TextField {
    ...
    @Parameter(required = true, allowNull = false, defaultPrefix =
BindingConstants.TRANSLATE)
    private FieldTranslator translate;
    ....

    @Override
    protected void processSubmission(final String elementName) {
        ....
        // translate is null here
        ...
    }
}

The component in the tml is just:
<t:textinput t:id="id" t:validate="required" name="name" value="bean.name"
/>

That setting just worked in t5.1. The field translate was set as described
in the doc: "If not specified, a value will usually be generated based on
the type of the value parameter."

Does anyone has a suggestion, why this could happen? I count find any hints,
googling for the problem.
Thanks in advice.
Jan
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/FieldTranslator-not-tp3349621p3349621.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to