PatternValidator example
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 PROTECTED] value=ognl:someObject.XYZ validators=validators:required/ Except that I want to use the PatternValidator... Can anybody pleasy copy and paste? Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PatternValidator example
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 validators={ beans.pattern }/ hth, Dennis Andy wrote: 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 PROTECTED] value=ognl:someObject.XYZ validators=validators:required/ Except that I want to use the PatternValidator... Can anybody pleasy copy and paste? Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PatternValidator example
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 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 PROTECTED] value=ognl:someObject.XYZ validators=validators:required/ Except that I want to use the PatternValidator... Can anybody pleasy copy and paste? Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Home page : http://uk.geocities.com/matmsh/index.html ___ New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]