You might be able to override the StringTranslator but I have never tried that.
On Fri, Oct 25, 2013 at 7:34 AM, Hendrik Grewe <hendrik.gr...@udo.edu>wrote: > Hello! > > I am looking for an easy way to get all existing text input fields in my > webapp validated before submission. > > Currently some people were able to submit text with e.g ASCII > control-characters and other (by xml spec [1]) disallowed characters. > > As I want to generate valid xml files from those input I currently have > to sanitize every string (through stripping non valid chars) while > marshalling the XML file. > > Now the User should be unable to submit disallowed characters at all. > > Is there another way instead of adding a t:validator attribute to all > existing text inputs in all existing template files and adding a > (global?) Validator for xml specific character ranges? > > Thank you in advance > > Hendrik > > [1] http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >