Re: Global validator for text inputs

2014-09-05 Thread Stephan Windmüller
On 05.09.2014, Lance Java wrote: > You could create a mixin which uses @BindParameter to set the "validate" > parameter on the Field. > > You could then create a ComponentClassTransformWorker2 which attaches the > mixin to TextField and TextArea by default. Thanks for the suggestion, I will have

Re: Global validator for text inputs

2014-09-05 Thread Lance Java
You could create a mixin which uses @BindParameter to set the "validate" parameter on the Field. You could then create a ComponentClassTransformWorker2 which attaches the mixin to TextField and TextArea by default. See the blog post here for a similar pattern: http://tawus.wordpress.com/2011/08/0

Re: Global validator for text inputs

2014-09-04 Thread Stephan Windmüller
On 04.09.2014 um 14:03, Muhammad Gelbana wrote: >> We already have code which is able to detect all unwanted >> characters. Is it possible to write a global validator which is >> added automatically to each textfield or textarea component? > Check if these pages have an answer to your question > h

Re: Global validator for text inputs

2014-09-04 Thread Muhammad Gelbana
Check if these pages have an answer to your question http://jumpstart.doublenegative.com.au/jumpstart/examples/input/contributingvalidators http://tapestry.apache.org/forms-and-validation.html#FormsandValidation-ValidationMacros *-* *Muhammad Gelbana* http://www.linkedin.com/i