:-) i think i don't express my question accurately. i use PatternValidator to
validate fax number, the fax number is optional, that is , user don't need to
input the value, but if he/she inputed something, it must match the pattern.
Wicket doesn't has a required property for PatternValidator (and all other
validators), so when i keep the fax number field blank, the validation failed
too, it's not my original idea.
======= 2005-05-01 15:24:08 您在来信中写道:=======
>On 5/1/05, 叶卫国 <[EMAIL PROTECTED]> wrote:
>> Say that my form has a field for fax, it's not required, but when user input
>> something, it must be a valid fax number.
>>
>> what can i do?
>>
>Basically you've two options: client-side and server-side validation.
>Wicket offers a solution for both. For client-side validation please
>see my previous mail. For server side valdation please see the
>forminput example.
>
>Juergen
>N?S^甸?X?????"?jg??㈥?x?b??郓jw`?⒎*.????+y?介沓??砗x????(?^槽⒎?{
>"?jg?V捕???.郸V???Z?????'y拳??o?m?峨??)?+-Z'$z郜z?槽,㈥???薅mο?-彩.?????-躇b藏???峨
N?S^甸?X?????"?jg??㈥?x?b??郓jw`?⒎*.????+y?介沓??砗x????(?^槽⒎?{
"?jg?V捕???.郸V???Z?????'y拳??o�