Hi,

the user provided input from a TextField/TextArea component should be
cleaned from HTML tags. No validation is needed, the requirements are
just "remove the HTML", display the result to the user.

The first variant I tried is a Translator. This solution works but
because there are other possible solutions as well I would hear your
suggestions.

The other variant which comes to my mind is to use a TypeCoercer which
coerces the values to a special type (CleanString or something like
that). But if I use a coerce I maybe miss the possibility to validate
the input field by throwing a ValidationException as I would do in the
Translator.

Any suggestions and solutions I should consider?

Regards,
Kai

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

Reply via email to