It looks like it.
I have a similar use case in a project and it works fine but using 4.0.2.
Jesse Kuhnert wrote:
Hmmm....It does look like it's possibly a bug. If you file a jira
issue I
can look at it.
On 6/6/07, Bhuiyan, Nazmul <[EMAIL PROTECTED]> wrote:
Hi,
Thanks for your prompt answer.
My question was regarding the validation. The weight field accepts empty
filed even I've used 'required' in the binding.
Please see below:
<component id="weight" type="TextField">
<binding name="value" value="Weight" />
<binding name="translator" value="translator:number, omitZero=true,
pattern=#.#"></binding>
<binding name="validators" value="validators:required[The {0} is
missing!],min=0"></binding>
<binding name="displayName" value="literal:Weight"></binding>
</component>
-----Original Message-----
From: Hugo Palma [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 6 June 2007 10:08 p.m.
To: Tapestry users
Subject: Re: T4 question:
Try setting the translator binding to
"translator:number,omitZero=true"
See the section on translators here
http://tapestry.apache.org/tapestry4.1/usersguide/validation.html
Nazmul wrote:
> I'm trying to work through the chapter 3 of the book "Enjoy web
development with
> Tapestry" This book using tapestry4.1.1 and pointed a bug alert:
> "BUG ALERT: In Tapestry 4.1.1 there is a bug in NumberTranslator. It
will
> convert an empty string into 0, not null. This will get pass both the
required
> and the min validators".
>
> How do I enforce the required in validator?
>
> Thanks
>
> naz
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>