Re: Textfield validation problem

2006-10-14 Thread Ryan Holmes
Sure, sounds like you want a numeric-only string. Tapestry has a Pattern validator, but I don't know if you can specify the pattern inside your 'validators:' value. I always set up pattern validators as beans and then reference them in the 'validators:' value, like so: class="org.apac

Re: Textfield validation problem

2006-10-14 Thread Jabbar
Ryan, Hello again. Is it possible to use a regular expression with a textfield? I don't want to use it to read a number, but a string. Thanks On 14/10/06, Ryan Holmes <[EMAIL PROTECTED]> wrote: Change this: to this: The 'omitZero' property in org.apache.tapestry.form.translator.NumberTra

Re: Textfield validation problem

2006-10-14 Thread Ryan Holmes
Change this: to this: value="translator:number,pattern=#.#,omitZero=false"/> The 'omitZero' property in org.apache.tapestry.form.translator.NumberTranslator is true by default. Paul Ferraro (who I believe contributed much of the translation and validation system for Tap 4.0) argues tha

Re: Textfield validation problem

2006-10-14 Thread Jabbar
Oops. The textfield component definition is On 14/10/06, Jabbar <[EMAIL PROTECTED]> wrote: Hello again, I have another problem. It concerns the textfield the defi

Textfield validation problem

2006-10-14 Thread Jabbar
Hello again, I have another problem. It concerns the textfield the definition is when value is numeric 0 then the textfield also shows a blank. I don't understand this! Anybody got any ideas? -- Thank