Hi,
There is one bug in Orbeon, that's been there for quite a while. I couldn't find if anyone has reported this yet, so I made repeatable example, to demonstrate this behavior. Problem is with date type binding, that adds calendar icon, to the referenced input field. After version 3.5, there were some modifications, to how Orbeon handles xs:date type and a new type was implemented, that had previous xs:date bahavior - xforms:date. Now, if a input field that is referenced to an element having an attribute of type xforms:date (<xforms:bind type="xforms:date" .... />) is placed in xforms:repeat and this attribute contains ISO formated date, date is formated output correctly with attached calendar icon. But if I insert another duplicate element with the same values, date is not formated at all and no calendar icon is attached, but entering wrong date (like 2007-11-44) in this new field will still cause a validation error. This looks like xforms:date type is somehow wrongly applied to newly inserted elements. Everything works just fine if I change type binding to a xs:date, but then every date field must be filled in and that's not desired in our application. Working example (tested in sandbox) of this behavior is attached to this mail. Just press "Insert Book" button, to see it for yourself. Thanks, Jurgis -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws insert-date.xhtml (4K) Download Attachment |
Administrator
|
Jurgis,
Thanks, I reproduce the problem. I entered and fixed the following bug: http://forge.objectweb.org/tracker/index.php?func=detail&aid=307948&group_id=168&atid=350207 Luckily, this was an easy fix. It will make it in the next automatic build. -Erik On Nov 28, 2007, at 12:10 PM, Jurģis Lukss wrote: > Hi, > > There is one bug in Orbeon, that's been there for quite a while. I > couldn't find if anyone has reported this yet, so I made repeatable > example, to demonstrate this behavior. > > Problem is with date type binding, that adds calendar icon, to the > referenced input field. After version 3.5, there were some > modifications, to how Orbeon handles xs:date type and a new type was > implemented, that had previous xs:date bahavior - xforms:date. Now, > if a input field that is referenced to an element having an > attribute of type xforms:date (<xforms:bind type="xforms:date" .... / > >) is placed in xforms:repeat and this attribute contains ISO > formated date, date is formated output correctly with attached > calendar icon. But if I insert another duplicate element with the > same values, date is not formated at all and no calendar icon is > attached, but entering wrong date (like 2007-11-44) in this new > field will still cause a validation error. > > This looks like xforms:date type is somehow wrongly applied to newly > inserted elements. Everything works just fine if I change type > binding to a xs:date, but then every date field must be filled in > and that's not desired in our application. > > Working example (tested in sandbox) of this behavior is attached to > this mail. Just press "Insert Book" button, to see it for yourself. > > > Thanks, > > Jurgis > <insert-date.xhtml> > -- > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |