myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: [Trinidad] RangeValidator(s)
Date Wed, 16 May 2007 20:30:33 GMT
No, I think the client-side should get either null or undefined
in this case.  You always want to minimize the instances
of floating point equality comparisons;  code like:
  foo == 4.9e-324
is error-prone.

-- Adam


On 5/16/07, Matthias Wessendorf <matzew@apache.org> wrote:
> Hi,
>
> for some reasons, the Long/Double RangeValidtor "renders" for the
> MIN_VALUE / MAX_VALUE null.
>
> I'd like to change that.
> So for instance:
> Double.MIN_VALUE would "render" as 4.9e-324
>
> A check in JAVASCRIPT told me, that 4.9e-324 == Number.MIN_VALUE
>
> Do you agree ?
>
> -Matthias
>
> --
> Matthias Wessendorf
> http://tinyurl.com/fmywh
>
> further stuff:
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>

Mime
View raw message