Hi!
This was a jira issue "fixed" recently. I'm not sure I understand what
the expected->actual results are that are questionable.
I check the source-code and realized that it is standard for the
NumberTranslater to default to Double(0) if the field is empty. I found
the old version (empty field defaults to null-value) more convenient and
internally extended the NumberTanslater to this "old" (as in Tapestry
4.0.x) behavior as some of our validators rely heavily on that circumstance.
Really strange for the user is that even if the field is shown as empty
by taperstry's NumberTranslator (4.1.x, omitZero=true) the
RequiredValidator lets the field pass as valid as the underlying value
is not empty...
Regards,
Patrick
On 1/8/07, Patrick Klein <[EMAIL PROTECTED]> wrote:
Hi!
After a little testing:
The behaviour of the NumberTranslater is persistent in version 4.1.1.
Switching back to 4.0.2 for now, which is nothing i want to do as i'd
like to use the ajax functionality of tap 4.1.x ...
Regards,
Patrick
> Hi!
>
> I just recognized that the NumberTranslator does not seem to work
> correctly. OmitZero=true results in no value shown in the form-field
> after a rewind but the value "0" is stored inside the corresponding
> Long- (or Integer / BigDecimal / ...) variable. OmitZero=false shows
> the stored "0" in the form-field.
>
> Has anyone recognized this behaviour, too and if yes is there a
> workaround (except writing your own NumberTranslator)? Or is this
> Problem maybe allready known and fixed...?
>
> I'm using this mornings (GMT+1) Tapestry 4.1.2 Snapshot from
> mvn-snapshot.
>
> Regards,
> Patrick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]