Mark Lehmacher <mark.lehmacher <at> gmx.de> writes:

> "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.

In addition to the suggestions from Howard and Paul, you can just
avoid using "[". As \w already includes \d, you can simplify your
regex as:

 "validators=validators:required, pattern=^\w+$"

BTW, you don't need to write "\\" to mean "\".

--
Author of an e-Book for learning Tapestry (http://www.agileskills2.org/EWDT)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to