try replacing
value="\\d{5}(-\\d{4})?"
with
value="literal:\\d{5}(-\\d{4})?"
See if that works.
-Mike
On 3/30/06, Matt Raible <[EMAIL PROTECTED]> wrote:
> This worked in 3.0.3:
>
> <bean name="zipValidator"
> class="org.apache.tapestry.valid.PatternValidator">
> <set name="patternString" value="\\d{5}(-\\d{4})?"/>
> <set name="required" value="true"/>
> <set name="patternNotMatchedMessage" value="message:errors.zip"/>
> <set name="clientScriptingEnabled" value="true"/>
> </bean>
>
> But this doesn't work in 4.0:
>
> Unable to read OGNL expression '<parsed OGNL expression>' of
> [EMAIL PROTECTED]: Error initializing property
> patternString of bean 'zipValidator' (of component signup): Unable to
> parse OGNL expression '\\d{5}(-\\d{4})?': Malformed OGNL expression:
> \\d{5}(-\\d{4})?
>
> Any idea how to fix this? How did the regular expression syntax change?
>
> Thanks,
>
> Matt
>
> ---------------------------------------------------------------------
> 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]