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