Re: uberValidator for all text input fields

2013-10-30 Thread Hendrik Grewe
Barry Books: > You might be able to override the StringTranslator but I have never tried > that. That is exactly what I ended with. To validate all string input for XML I wrote an XMLStringTranslator which throws a ValidationException if disallowed characters where found. Also it does replace all

Re: uberValidator for all text input fields

2013-10-25 Thread Lance Java
You could add an implicit mixin to every textfield using a ClassTransformWorker2. See Taha's blog post here http://tawus.wordpress.com/2011/08/01/tapestry-mixins-classtransformations/

Re: uberValidator for all text input fields

2013-10-25 Thread Barry Books
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 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

uberValidator for all text input fields

2013-10-25 Thread Hendrik Grewe
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