dick_hu wrote:
> 
> Now I use the FCKeditor, because of it often has many html tags,so the
> value's length often over the db's words limit.So I want to transform the
> html tags to short string.
> I want to use the "Translator",But I find "ValueEncoder" seems has the
> same feature.
> Which one can I choose? Can AnyOne tell me the difference  between
> "ValueEncoder" and "Translator".
> 

ValueEncoder is for converting between objects and strings to be used in
links, select values, etc. (so computer readable).
Translator is for converting between objects and strings for humans - e.g.
in inputs.

See also JavaDoc:
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ValueEncoder.html
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/Translator.html

-- 
Chris

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/The-difference-between-ValueEncoder-and-Translator-tp4908456p4908962.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to