Yet again, mourn the passing of Spindle, which would warn you that
        <set name="patternString" value="[a-zA-Z]"/>
has an invalid OGNL expression for value.

You want to pass a string, so use quotes:
        <set name="patternString" value="'[a-zA-Z]'"/>

Cheers,
Nick.


Pratibha Gopalam wrote:
Hello,

Has anybody used PatternValidator with Tapestry 4.0? I would like to validate an user input against a pattern. I tried using the PatternValidator like below

<bean name="patternValidator" class="org.apache.tapestry.valid.PatternValidator">
       <set name="clientScriptingEnabled" value="true"/>
       <set name="required" value="true"/>
       <set name="patternString" value="[a-zA-Z]"/>
   </bean>

but got exceptions saying patternString/pattern property not found in PatternValidator.

Can anybody help me here?

thanks,
Pratibha



---------------------------------------------------------------------
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]

Reply via email to