In beta-5, due shortly, you will be able to define your pattern validator as a managed <bean>, and then reference the bean in your list as $name.
<bean name="pattern" type="....Pattern"> <set property="pattern"> literal: ^[\\w\\d]+$ </set> </bean> <component ... <binding name="validators" value="validators:required,minLength=5,$pattern"/> ... On 8/26/05, Mark Lehmacher <[EMAIL PROTECTED]> wrote: > Hello list, > > I run into issues when I want to use several (newstyle) validators on a > TextField. I want to use the T4 way of specifying multiple validators. > > My binding looks like this: > > "validators=validators:required, pattern=^[\\w\\d]+$" > > Problem is that > org.apache.tapestry.form.validator.ValidatorFactoryImpl.buildValidatorList > is not able to parse a list of validators from this because my regex-pattern > contains a [ character. > > I know I can use the good old T3 bean way of setting up my pattern > validator, but how do I then combine it with the required validator so my > field is both required and validated against my pattern? > > > -- > 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail > +++ GMX - die erste Adresse für Mail, Message, More +++ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Jakarta Tapestry Creator, Jakarta HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]