changing the digit grouping of your regional settings doesn't help; I've tried that.

another strange behaviour:
 
input="0.0"
output should be "0.00"
pattern= "#0.00"
       -> result is "0"

        -> binding this back results in "0,00" (comma instead of point)
          (ValueJXPathBinding: value= 0,00-- oldvalue=0.0)

changing the pattern to "#0,00"
        -> result is "0"
        -> binding this back results in "0.00"
          (ValueJXPathBinding: value= 0.00-- oldvalue=0.0)

What are we doing wrong?

Regards,
Gunter.        




"Derek Hohls" <[EMAIL PROTECTED]>

27/07/2004 09:42

Please respond to
[EMAIL PROTECTED]

To
<[EMAIL PROTECTED]>
cc
Subject
Re: Woody convertors: date formatting & decimal formatting





Gunter

I am also struggling with this - and also get the
"," in the output that I want stripped out...

Derek

>>> [EMAIL PROTECTED] 2004/07/27 09:16:33 AM >>>
Indeed, my mistake; but still got some decimal formatting that doesn't

work properly:

1)
input=""
output should be "0"
pattern= "#0"
       -> result is ""

2)
input="0.0"
output should be "0.00"
pattern= "#0.00"
       -> result is "0"

3)
input="30000.0"
output should be "30000"
pattern= "#0"
       -> result is "30,000" ( I assume this has to be with the
regional
settings of my machine)

Regards,
Gunter








Bruno Dumon <[EMAIL PROTECTED]>
26/07/2004 20:25
Please respond to
[EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
Re: Woody convertors: date formatting & decimal formatting






On Mon, 2004-07-26 at 17:20, Gunter D'Hondt wrote:
> I've changed the binding into:
>
>
>     <bnd:value id="mydecimal" path="mydecimal/value">
>             <bnd:convertor datatype="decimal" type="formatting">
>               <bnd:patterns>
>                 <bnd:pattern>#0</bnd:pattern>
>               </bnd:patterns>
>             </bnd:convertor>
>     </bnd:value>

The convertor needs to be in the form definition namespace (fd, or wd
for woody)

>
> But still the same output; still I don't understand how the form
> definition convertor for my date field does work without a convertor
> in the binding for it (the only difference is that it's an output
> widget and the decimal is a regular field widget.

The explanation is likely that it isn't working at all. It's simply
impossible to set a string value for a date field or output widget.
Maybe the error is silently logged in the log files.

--
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]                          [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to