Bug with xxforms:format="format-number()"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug with xxforms:format="format-number()"

Larry T. Chen
Hi All,

I'm trying to use  the format-number() function in xforms:output as in
<xforms:output ref="foo" xxforms:format="format-number(.,'$#,##0.00')"/>
It appears that the function does not take effect on initial load of the
form; it only gets applied when the form is refreshed by some XForms event.
For example, when the form loads up, the output field shows 0, then if I
edit another field which causes the fields to be refreshed, then it
shows $0.00.
Anybody else seeing this problem?

Larry







--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Bug with xxforms:format="format-number()"

Erik Bruchez
Administrator
Larry,

I reproduced this and fixed it:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=305685&group_id=168&atid=350207

-Erik

Larry T. Chen wrote:

> Hi All,
>
> I'm trying to use  the format-number() function in xforms:output as in
> <xforms:output ref="foo" xxforms:format="format-number(.,'$#,##0.00')"/>
> It appears that the function does not take effect on initial load of the
> form; it only gets applied when the form is refreshed by some XForms event.
> For example, when the form loads up, the output field shows 0, then if I
> edit another field which causes the fields to be refreshed, then it
> shows $0.00.
> Anybody else seeing this problem?
>
> Larry
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws