PatternValidator example

2007-02-28 Thread Andy
Hello, I try to use the PatternValidator but cannot find an example. (I read two archived threads on this list, but these only covered how to define ta PatternValidator in a page spec) I am looking for something like this: input displayName=ognl:'XZY' jwcid=[EMAIL

Re: PatternValidator example

2007-02-28 Thread Dennis Sinelnikov
Hi Andy, Example, using T4: In .page: bean name=pattern class=org.apache.tapestry.form.validator.Pattern set name=pattern value=literal:[ a-zA-Z0-9'-]+/ /bean in .html: input displayName=ognl:'XZY' jwcid=[EMAIL PROTECTED] value=ognl:someObject.XYZ

Re: PatternValidator example

2007-02-28 Thread Shing Hing Man
There is an example on PatternValidator at the end of Chapter 3 of Kent Tong's excellent book Enjoying Web Development with Tapestry. The first 4 chapters are free. You can download it from http://www.agileskills2.org/EWDT/ Shing --- Andy [EMAIL PROTECTED] wrote: Hello, I try to use the