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]